Configuration reference

The environment variables that configure the flowwork engine and the flowctl client.

flowwork needs almost no configuration — the binary sets up its database, key, and default workspace on first run. The variables below cover the cases where you want to tune behaviour.

Engine

VariableDefaultPurpose
FLOWWORK_LICENSE_KEYYour license key. Required to start the engine.
FLOWWORK_PORT9010HTTP port for the API + health endpoints.
POLLER_INTERVAL_MS(engine default)How often the scheduler looks for ready work.
LOG_LEVELinfodebug / info / warn / error (structured JSON logs).
FLOWWORK_CONNECTOR_ALLOW_PROCESSfalseAllow spawning stdio MCP/CLI connectors (process adapters). Remote-HTTP connectors don’t need this.
FLOWWORK_CONNECTOR_DEBUGfalseVerbose connector diagnostics — launch command (secrets masked), JSON-RPC wire, child stderr, schema-validation failures.

There are also ENGINE_* and SCRIPT_* tuning knobs for the executor and the script runtime; the defaults are sensible — reach for them only when profiling a specific bottleneck.

flowctl

flowctl is configured by flags or environment variables:

VariableFlagDefaultPurpose
FLOWCTL_SERVER--serverhttp://localhost:9010/apiEngine base URL (include /api).
FLOWCTL_WORKSPACE-w, --workspace1Workspace id.
FLOWCTL_USER-u, --user1User id.

Add -o json for machine-readable output and -q to print only the resulting id (handy in $(...)).

Connector credentials are encrypted automatically

The engine generates and persists its own encryption key for connector credentials on first run — you don’t supply or manage one. Credentials you set via flowctl instance create are stored encrypted and are never returned by the API.

Next: flowctl CLI reference.