Skip to content

Configuration Reference

Every setting is an environment variable with the CIAREN_ prefix. You can set it in the shell, in a .env file in the directory you start Ciaren from, or (for a few) as a ciaren serve flag. Advanced Setup explains which source wins.

  • Booleans are true or false. Lists, such as CIAREN_CORS_ORIGINS, are JSON.
  • UI marks the settings you can also edit on the Settings page. A saved override there takes precedence over the variable until you reset it.
  • ciaren info prints the resolved values (secrets are shown only as set or unset). ciaren check validates them.

Server and storage

VariableDefaultDescription
CIAREN_ENVIRONMENTdevelopmentEnvironment label. production makes ciaren db reset refuse without --force
CIAREN_DEBUGfalseExtra debug behavior
CIAREN_LOG_FORMATautoauto (color on a terminal, else plain), text, or json
CIAREN_DATABASE_URLsqlite+aiosqlite:///./ciaren.dbAsync database URL. See Database and data directory
CIAREN_DATA_DIR.dataDirectory for uploads, run outputs, and previews
CIAREN_FRONTEND_DISTNonePath to a built frontend that the backend serves. By default Ciaren serves the copy bundled in the wheel, or frontend/dist in a source checkout
CIAREN_DEFAULT_ENGINEpolarsDataframe engine for runs that do not pick one: polars or pandas. UI
CIAREN_EXECUTION_MODEthreadHow compute is offloaded: thread or process. See Execution tuning. UI
CIAREN_RUN_TIMEOUT_SECONDS0Abandon a run after this many seconds (0 means no limit). UI
CIAREN_MAX_UPLOAD_SIZE_MB100Maximum upload size in MB. UI
CIAREN_DATASET_RETENTION_DAYS30Days to keep the files of a soft-deleted dataset before they are purged. UI
CIAREN_SEED_DEMOtrueSeed the Demo project on first start
CIAREN_SEED_RUN_FLOWSfalseRun the newly seeded demo flows once

Security

VariableDefaultDescription
CIAREN_API_TOKENNoneBearer token required for /api/* requests. Send it as Authorization: Bearer <token> or X-Ciaren-Token
CIAREN_WEBHOOK_SECRETNoneEnables POST /api/flows/{id}/trigger, authenticated with X-Ciaren-Secret. See Webhook Trigger
CIAREN_CORS_ORIGINS["http://localhost:5173"]Allowed CORS origins. The CSRF origin guard also trusts them
CIAREN_TRUSTED_HOSTS[]Extra hostnames the CSRF origin guard trusts beyond localhost. See production deployment
CIAREN_PYTHON_TRANSFORM_STRICTfalseStricter static checks for Python Transform scripts
CIAREN_CONNECTOR_BLOCK_PRIVATE_HOSTSfalseRefuse connector endpoints that resolve to private or internal addresses
CIAREN_STORAGE_ALLOWED_ROOTS[]Confine Local Storage roots and SQLite or DuckDB files to these directories. Empty (the default) allows any folder
CIAREN_SECRET_ENV_ALLOWLIST[]Environment variables (or PREFIX* patterns) that an env: secret reference may name. Empty (the default) allows any variable except Ciaren's own CIAREN_* variables, which are always refused
CIAREN_SECRET_FILE_DIRS[]Folders that file: secret references may read. Defaults to <DATA_DIR>/secrets and /run/secrets, and is always enforced

See the security model for what each guard protects.

Scheduler and notifications

VariableDefaultDescription
CIAREN_SCHEDULER_ENABLEDtrueRun the background scheduler
CIAREN_SCHEDULER_POLL_INTERVAL_SECONDS30How often the scheduler looks for due schedules. UI
CIAREN_SCHEDULER_MAX_CONCURRENT_RUNS1Maximum simultaneous scheduled runs. UI
CIAREN_SCHEDULER_MAX_CONSECUTIVE_FAILURES5Failed runs before a schedule disables itself (0 means never). UI
CIAREN_NOTIFY_WEBHOOK_URLunsetPOST a JSON alert here when a run fails or a schedule auto-disables. See Webhook Trigger
CIAREN_NOTIFY_WEBHOOK_SECRETunsetSent as X-Ciaren-Secret so the receiver can verify the sender

Machine learning

VariableDefaultDescription
CIAREN_ML_ENABLEDtrueEnable the ML routes and nodes. Set false to disable them
CIAREN_MLFLOW_TRACKING_URI./mlrunsMLflow tracking URI. The Docker image sets /data/mlruns
CIAREN_MLFLOW_REGISTRY_URINoneMLflow registry URI. Defaults to the tracking URI
CIAREN_ML_ARTIFACT_DIRml_artifactsLocal model artifact folder, under DATA_DIR when relative
CIAREN_ML_MAX_MODEL_SIZE_MB500Largest model artifact the guardrails accept. UI
CIAREN_ML_MAX_TRAINING_ROWS5000000Most rows accepted for one training job. UI
CIAREN_ML_MAX_FEATURE_COLUMNS500Most feature columns accepted for one training job. UI
CIAREN_ML_MAX_HYPERPARAMETER_VALUE100000Largest value for compute-scaling hyperparameters such as n_estimators or max_iter

Plugins and marketplace

VariableDefaultDescription
CIAREN_PLUGINS_DIRNoneExtra plugin folders to scan (os.pathsep-separated), in addition to ~/.ciaren/plugins. See Writing a plugin
CIAREN_REQUIRE_TRUSTED_PLUGINSfalseRequire trusted signatures for marketplace and UI installs
CIAREN_PLUGIN_PERMISSION_ENFORCEMENToffoff, warn (log ungranted actions), or enforce (block them). Not a sandbox: see Plugin Security
CIAREN_MARKETPLACE_INDEXbundled catalogPath to a local marketplace index JSON for Explore. none disables it
CIAREN_MARKETPLACE_LICENSE_ISSUER_KEYSunsetRegisters a TokenLicenseProvider per issuer key, to validate plugin license tokens at startup

Flow assistant

<PROVIDER> is one of OPENAI, ANTHROPIC, DEEPSEEK, OPENCODE, GEMINI, or BEDROCK. Run the flow assistant on a server explains key sources and limits, and providers and models lists the models.

VariableDefaultDescription
CIAREN_ASSISTANT_ENABLEDtrueSet false and restart to turn the assistant off on the server
CIAREN_ASSISTANT_PROVIDERoffServer-managed provider: openai, anthropic, deepseek, opencode, gemini, bedrock, or off. A key selected on Connections → Assistant API keys takes precedence
CIAREN_ASSISTANT_<PROVIDER>_MODELprovider defaultModel for that provider. See providers and models
CIAREN_ASSISTANT_<PROVIDER>_EFFORTdefaultReasoning effort. OpenAI, Anthropic, DeepSeek, and Gemini have one
CIAREN_ASSISTANT_<PROVIDER>_KEY_SOURCEenvWhere the server reads the key: env (CIAREN_ASSISTANT_<PROVIDER>_API_KEY) or file (a file in CIAREN_ASSISTANT_SECRET_DIR)
CIAREN_ASSISTANT_SECRET_DIR/run/ciaren-assistant-secretsFolder of read-only key files named after the provider
CIAREN_ASSISTANT_TURNS_PER_HOUR60Provider calls per rolling hour and process
CIAREN_ASSISTANT_TOKENS_PER_HOURunsetOptional cap on provider input and output tokens per rolling hour

Keys saved on the Connections page live in the OS keychain, not in these variables.