XTM One configuration
Every environment variable XTM One reads at startup, on the platform and on the worker, with its default and what it does, generated from the source code.
- Environment variables → Platform and worker: at startup
- Settings screens → Database: saved
- Database → Platform and worker: read when used
- Environment variables → Database: overrides and locks
XTM One reads its infrastructure from environment variables when it starts: its URLs, its database, Redis, file storage, the providers of its models, its limits. Set each one on the platform and on the worker, with the same value, then restart both. Sign-in, the integrations and most security options are set from the Settings screens instead and kept in the database. Where a variable and a field of Settings cover the same option, the variable wins and the field is shown locked.
The first administrator comes from ADMIN_EMAIL and ADMIN_PASSWORD, set again at every start. SECRET_KEY signs the sessions and encrypts the secrets stored in the database: generate it once and never change it.
Every environment variable XTM One reads, on the platform and on the worker: set the same values on both. Sign-in and many security options are set in Administration > Settings instead, integrations in Tools & Integrations, and both are stored in the database.
Security
| Variable | Required | Default | Description |
|---|---|---|---|
SECRET_KEY | Yes | JWT signing + Fernet encryption key. Generate with python -c "import secrets; print(secrets.token_urlsafe(48))". Never change after deployment. | |
ADMIN_EMAIL | admin@filigran.io | Default admin account email. Created or updated on every startup: the account is also made an administrator and re-enabled each time, so it stays a way back into the platform. | |
ADMIN_PASSWORD | Yes | Default admin account password. Reset to this value on every startup. At most 72 bytes (what bcrypt stores); a longer value is refused at startup. | |
ADMIN_TOKEN | Programmatic API token for the admin (must start with fcp-, min 32 chars). Like every bcrypt-hashed key, only its first 72 bytes are checked. | ||
FORWARDED_ALLOW_IPS | 127.0.0.1 | Proxy addresses allowed to set X-Forwarded-Proto / X-Forwarded-For, as an IP, CIDR or comma-separated list. Set this behind a TLS-terminating proxy: without it the platform sees every request as plain HTTP from the proxy's address, which records the proxy's address in the audit log for every user, makes the A2A endpoints refuse every request (403 https required), makes /runners/enroll, /mcp/oauth/register and /mcp/oauth/token log an unconfirmed-transport warning (they refuse too only under CREDENTIAL_TRANSPORT_STRICT), and collapses per-IP rate limiting into one shared bucket. Name the proxy as the platform container sees it (see Client address and protocol behind the proxy). Hostnames are not resolved and a CIDR needs its host bits at zero (10.42.0.0/16, not 10.42.0.1/16): uvicorn keeps any other entry as a literal that matches no peer, and the platform names such entries in a startup warning. uvicorn reads it from the platform container's environment when the platform starts, so it is not a Settings > Access and security field and a change needs a restart; the shipped docker-compose.yml passes it to the platform container. When audited requests come through a peer it does not name, the platform logs a warning naming that peer and the security audit reports it (see Client addresses in the audit trail). Prefer it over TRUST_PROXY_HEADERS; avoid *, which lets any caller choose its own scope["client"]; it means "every peer" only as the whole value. | |
TRUST_PROXY_HEADERS | false | When true, the platform takes the client address from the leftmost X-Forwarded-For value and the scheme from X-Forwarded-Proto, from any peer and ahead of FORWARDED_ALLOW_IPS. Behind a proxy that appends to X-Forwarded-For that value is whatever the client sent, so a caller can choose its rate-limit bucket and the address the audit trail records: enable it only behind a proxy that overwrites the header and is the only thing that reaches the platform, and prefer FORWARDED_ALLOW_IPS. While it is on the platform logs a warning at startup (or when it is switched on in Settings > Access and security) and the security audit warns that forwarded headers are trusted from any peer. Switching to FORWARDED_ALLOW_IPS: UPGRADING.md and Client address and protocol behind the proxy. The shipped docker-compose.yml does not pass the variable to the platform container. Also in Settings > Access and security (Trust proxy headers); the variable, when set, wins and locks the field. | |
RATE_LIMIT_IPV6_PREFIX | 128 | Prefix length the per-IP rate limits (login, forgot and reset password, invitation registration, MFA verification, A2A pre-authentication, MCP OAuth registration, authorization and token, the public chat widget, Content Security Policy violation reports) key a native IPv6 client on. 128 keeps one bucket per address. 64 is opt-in: it stops a client drawing a fresh bucket from every address of the /64 it is handed, but every device of one /64 - a corporate IPv6 LAN, for example - then shares one budget. From 32 to 128; any other value stops the platform at startup. The key in use is logged once at startup, and the security audit reports an info finding recommending 64 while the value is above 64. IPv4 clients (IPv4-mapped included) are always keyed per address, and the audit trail, the access log and the webhook diagnostics always record the full address. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
CLIENT_IP_STRICT | false | Opt-in: key, log and store every client address (the X-Forwarded-For hop under TRUST_PROXY_HEADERS, the peer otherwise) in its canonical form - port, brackets and IPv6 zone index dropped, an IPv4-mapped address read as IPv4, IPv6 lowercase and compressed - so one client is one rate-limit key whatever the proxy wrote; behind a proxy that writes IP:port under TRUST_PROXY_HEADERS, every connection is otherwise its own bucket. false uses an address as it was read, as in earlier releases. Either way a value that is not an IP address is ignored, with a warning logged once, and an address longer than the audit trail's 45 characters is stored in canonical form. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
CREDENTIAL_TRANSPORT_STRICT | false | Opt-in. By default /runners/enroll, /mcp/oauth/register and /mcp/oauth/token serve a request whose transport the platform cannot confirm encrypted, with the answers of earlier releases, and log it once per route (... served over unconfirmed transport ...). true refuses such a request the way the A2A endpoints do, before reading it or issuing anything: /runners/enroll answers 403 {"detail": "https required"}, /mcp/oauth/register answers 400 {"error": "invalid_client_metadata", "error_description": "https required"} (RFC 7591), /mcp/oauth/token answers 400 {"error": "invalid_request", "error_description": "https required"}. Real loopback stays exempt under DEBUG or A2A_ALLOW_INSECURE_LOOPBACK, and so do the end-to-end suite's TEST_ONLY_INSECURE_TRANSPORT_PEERS. Behind a TLS-terminating proxy, set FORWARDED_ALLOW_IPS first and check the warning no longer appears. The security audit reports network.credential_transport_strict_off while it is off - a warning while the platform is served over plain HTTP (BASE_URL not https, DEBUG off) and an active runner or a registered MCP OAuth client holds credentials those routes issued, information otherwise - and network.credential_transport_strict_on (pass) when it is on. Also in Settings > Access and security (Require HTTPS for runner enrollment and MCP tokens); the variable, when set, wins and locks the field. | |
A2A_ALLOW_INSECURE_LOOPBACK | false | Testing only. Count a plain HTTP request from real loopback (127.0.0.1, ::1) as encrypted, so the A2A endpoints accept it: what lets a deployment federated with itself reach its own agent card without terminating TLS. Only the real socket peer counts: a request carrying X-Forwarded-For is never exempt. Never set it behind a reverse proxy on the same host, where every request arrives from loopback. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
A2A_CLIENT_DEV_TRUSTED_ORIGINS | Local development only. Comma-separated origins (scheme://host[:port]) that outbound A2A requests may reach over plain HTTP and at addresses the destination guard otherwise refuses (loopback, private networks), to exercise the outbound half against a second deployment on the same machine. Every other destination stays refused, a listed origin is still pinned, and cloud metadata addresses stay refused even when listed. A malformed entry stops the platform at startup, and a configured list is logged at WARNING on every boot (and when it is saved in Settings > Access and security). Also in Settings > Access and security; the variable, when set, wins and locks the field. | ||
OAUTH_TOKEN_URL_STRICT | false | Opt-in strict checks on OAuth token URLs. Every OAuth token request (authorization-code exchange and token refresh, for integrations and MCP servers) checks its token URL, both when the URL is saved and before each request, and every address its host resolves to. By default only a cloud-metadata address (169.254.169.254 and the other instance-metadata endpoints) and a URL no request can be sent to (no host, an unreadable URL, port or host, a scheme other than http, https, ws or wss) are refused, so every token URL that worked before keeps working, loopback included. Set to true to also refuse token URLs on loopback, link-local, unspecified, reserved and multicast addresses, and any scheme other than http or https; private networks stay allowed, so an on-prem identity provider keeps working. A refusal names the setting that lifts it. Before turning it on, point every token URL on loopback at another address of the identity provider (a private-network address or a Docker service name such as http://keycloak:8080), or list its origin in OAUTH_TOKEN_DEV_TRUSTED_ORIGINS on a development machine. Upgrading: no action required; the strict mode is opt-in. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
OAUTH_TOKEN_DEV_TRUSTED_ORIGINS | Local development only. With the strict checks on (OAUTH_TOKEN_URL_STRICT), comma-separated origins (scheme://host[:port]) whose OAuth token URL may resolve to a loopback address. Listing an origin lifts the loopback refusal for that origin only; link-local and metadata addresses stay refused. No effect while the strict checks are off, which accept loopback token URLs anyway. A malformed entry stops the platform at startup, and a configured list is logged at WARNING on every boot (and when it is saved in Settings > Access and security), or at INFO as having no effect when OAUTH_TOKEN_URL_STRICT=false is set. Also in Settings > Access and security; the variable, when set, wins and locks the field. | ||
MCP_SERVER_URL_POLICY | permissive | Which addresses a remote MCP server (sse, streamable_http) may be reached at. Checked when its URL is saved (the form, the agent builder, every import: a 422) and on the address every connection to it actually opens - the connectivity test, tool calls, the authorization probe and OAuth discovery and registration included - with no second DNS lookup, each redirect hop checked again. permissive refuses only cloud metadata addresses (169.254.169.254 and the other instance-metadata endpoints), so every MCP server that worked before keeps working, one on localhost included. private_networks also refuses loopback, link-local, unspecified, reserved and multicast addresses; private networks stay allowed, so an on-prem MCP server keeps working. public_only refuses every address that is not globally routable: reach an on-prem server through a relay group instead, whose relay checks its own allow-list. A cloud metadata address is refused in every mode, and a URL must be http or https with a host. A refusal answers one generic message (the address and its class go to the backend log only). A server routed through a relay group is judged only on what its URL spells. Behind an outbound proxy (HTTP_PROXY / HTTPS_PROXY, NO_PROXY applied), permissive keeps sending through it after refusing a URL that is, or resolves from the platform to, a metadata address; the stricter modes never use the proxy and connect directly, since the address connected to is what they judge. A server already saved at a refused address stops connecting until its URL changes or its origin is listed in MCP_SERVER_TRUSTED_ORIGINS; saving it without changing its URL, transport or relay group still works. A blank value is unset (docker-compose.yml forwards it to the platform and the worker). Upgrading: no action required; the stricter modes are opt-in. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
MCP_SERVER_TRUSTED_ORIGINS | Under MCP_SERVER_URL_POLICY=private_networks or public_only, comma-separated origins (scheme://host[:port]) a remote MCP server may be reached at whatever address they resolve to - an internal MCP server you vouch for. Matched on the origin: http://mcp.internal:8080 covers every path on that service and nothing on another port, scheme or host. Cloud metadata addresses stay refused for a listed origin. No effect under permissive, which accepts those addresses anyway. A malformed entry stops the platform at startup. Also in Settings > Access and security; the variable, when set, wins and locks the field. | ||
CONTENT_SECURITY_POLICY_MODE | report-only | Content-Security-Policy on every HTML page the platform serves. report-only blocks nothing: browsers report what the policy would have blocked to /api/v1/csp-report, where the reports are counted and logged; the security audit lists the violations of the last 7 days. enforce sends the same policy as Content-Security-Policy, so browsers block what it does not allow. off sends no policy. Any other value fails startup. See Security headers. | |
CONTENT_SECURITY_POLICY_FRAME_ANCESTORS | Origins, besides the platform itself and the platforms registered with it (only when PLATFORM_REGISTRATION_TOKEN is a value of your own, and at most 20 of them), allowed to show the platform's pages in an iframe once the policy is enforced (an intranet portal, for instance). Comma-separated CSP sources: https://portal.example.com, https://*.example.com. A malformed entry fails startup; one that admits every site (*, https:, https://*) is accepted but logged as a warning at startup. See Security headers. | ||
SECRET_VAULT_<NAME>_TYPE | Declares a secret vault named <name> (hashicorp, aws, gcp, azure or onepassword) in the environment, for a deployment managed as code. Vaults are otherwise connected and granted in Settings > Access and security > Secret vaults, with no variable and no restart. Its other settings are SECRET_VAULT_<NAME>_<SETTING> (ADDRESS, AUTH_METHOD, TOKEN_FILE, REGION, WRITERS, PATHS, ...). Read once at startup, on the platform and the worker; listed read-only in Settings. See Secret vaults. | ||
SECRET_VAULT_CACHE_SECONDS | 300 | How long a value read from a vault is kept in memory, per process, for a vault with no cache duration of its own: a secret rotated in the vault is used once this time has passed, or at once when an integration's service refuses the cached value. 0 reads the vault on every use. See Secret vaults. | |
SECRET_VAULT_TRUSTED_ORIGINS | Comma-separated origins (scheme://host[:port]) that a vault connected in Settings > Access and security > Secret vaults may reach on a loopback address: an on-host vault. Such a vault's address is otherwise refused on loopback, link-local, reserved and cloud metadata addresses, checked when it is saved, tested and on every connection; private networks are allowed. Link-local and metadata addresses stay refused for a listed origin. Environment only, never a Settings field. A malformed entry stops the platform at startup. See Secret vaults. |
URLs
| Variable | Required | Default | Description |
|---|---|---|---|
BASE_URL | Yes | ``http://localhost:4000 (Docker Compose) | Public URL of the platform. Used for OAuth/SAML callbacks and email links, and as the issuer of the tokens XTM One signs for OpenCTI, OpenAEV and OpenCRQ - set the same value on the worker. Includes the path prefix when BASE_PATH is set (https://intranet.example.com/xtm-one). Left unset outside Docker Compose, it falls back to http://localhost:8100; unset or empty, it is warned about at startup unless DEBUG=true. |
FRONTEND_URL | Yes | http://localhost:4000 | Public URL of the frontend. Usually same as BASE_URL. |
XTM_AUTH_ACCEPTED_AUDIENCES | Comma-separated URLs the connected platforms reach XTM One on when they differ from BASE_URL (http://xtm-one:4000 in Docker Compose), accepted as the audience of their tokens. An entry that is not an http(s) URL, or that carries credentials, a query or a fragment, fails startup. See Public and internal URLs. | ||
BASE_PATH | URL path prefix when a reverse proxy serves the platform somewhere other than the root of its host: /xtm-one for https://intranet.example.com/xtm-one/. Works whether the proxy forwards the prefix or strips it (an X-Forwarded-Prefix header naming the prefix marks a stripped request). BASE_URL and FRONTEND_URL must include the same prefix. A plain path of ASCII letters, digits, -, _, ., ~ (no percent-encoding); a prefix colliding with a namespace the platform serves itself (/api, /v1, /mcp, /xtm, /a2a, /office, /metrics, /assets, /.well-known) or with the name of one of its static files (/favicon.ico, /logos, /robots.txt, ...) is refused at startup; one that is also the address of a platform page (/tools, /agents, ...) is refused unless BASE_PATH_MODE declares the proxy. See Serving under a path prefix. | ||
BASE_PATH_MODE | auto | What the reverse proxy does with BASE_PATH. auto infers the shape of every request (the X-Forwarded-Prefix header, then the path) and refuses a BASE_PATH that is also a platform page, which the inference cannot resolve behind a stripping proxy. forwarded declares that the proxy keeps the prefix; stripped declares that it removes it and sends X-Forwarded-Prefix (Traefik's StripPrefix does, nginx needs proxy_set_header X-Forwarded-Prefix /xtm-one;). Either declaration lifts the refusal. |
Platform mode
| Variable | Required | Default | Description |
|---|---|---|---|
PLATFORM_MODE | xtm_one | xtm_one is the open standalone platform. Set ai_disabled to start with AI switched off — see Running without AI. | |
PLATFORM_REGISTRATION_TOKEN | Shared secret OpenCTI, OpenAEV and OpenCRQ present (Authorization: Bearer) to register with XTM One - registration is also their heartbeat - and to unregister. Must match across services. Generate one with python -c "import secrets; print(secrets.token_urlsafe(32))". Unset, every registration is refused. docker-compose.yml falls back to the published value xtm-default-registration-token, accepted only so the platforms already registered stay connected - it cannot register a new platform, change a registered platform's URL, rename one, change what one declares or unregister one - and logged as a warning at startup and reported as a critical finding by the security audit (Settings → Security) until you set your own; meanwhile the Filigran license certificate is withheld from registration answers. After 10 failed attempts in a minute, a client is refused (HTTP 429) until the minute ends. See Upgrade and XTM Suite integration. | ||
ENTERPRISE_LICENSE | Enterprise license PEM. Can also be configured from Settings UI. Set it on the platform and on the worker: a worker without it runs its background AI on the licensed verdict the platform publishes, and logs a warning once. | ||
AI_UNAVAILABLE_HOLD_MAX_SECONDS | ``604800 (one week) | How long background AI work that comes due while AI is unavailable (Community Edition, or AI switched off) is held before it is failed with the reason. Held work (a delayed or queued assignment run, a run resumed from a human-review pause, a background task that had not started, the pending runs of an evaluation) is shown as Held, is never charged, and runs by itself within about five minutes of AI being available again. The same bound applies to a due assignment run or background task held while the quota store cannot be reached and quotas fail closed. 0 fails such work at its start instead of holding it. | |
PLATFORM_NAME | Mode default | Display name override. DB value takes precedence. | |
PLATFORM_LOGO | Mode default | Logo override (data URI). DB value takes precedence. | |
BRAND_ASSETS_EXTRA_DIRS | A comma-separated list of folders, inside the container, holding more brand asset packs for the built-in templates (one folder per pack, with its manifest.json next to its files), read after the packs the image ships. Set it when your deployment mounts packs of its own. A template whose pack no folder holds any more keeps the assets it was seeded with until the pack is back. Empty by default. |
Database
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL | Built from DB_PASSWORD`` | Full asyncpg connection string. Override when using external PostgreSQL. | |
DB_PASSWORD | Yes | Password for the bundled PostgreSQL container. | |
DB_POOL_SIZE | 15 | Connections per worker process. | |
DB_MAX_OVERFLOW | 10 | Extra connections allowed beyond pool size. | |
DB_POOL_TIMEOUT | 30 | Seconds a request waits for a free pooled connection. | |
DB_POOL_RECYCLE | 1800 | Seconds after which a pooled connection is replaced, so connections a firewall or proxy dropped silently are not reused. | |
DB_CONNECT_TIMEOUT | 10 | Seconds allowed to open one connection. | |
DB_CONNECT_RETRY_SECONDS | 15 | How long a new connection keeps being retried while PostgreSQL refuses or drops it (restart, failover, a Service briefly without a ready endpoint). Requests and LLM trace writes wait instead of failing; past it requests get a 503 with Retry-After instead of a 500. A timed-out connect is never retried. 0 disables. | |
MIGRATION_LOCK_TIMEOUT_SECONDS | 300 | Longest wait for a lock by a statement of the database migrations at startup. Past it the migration is retried, then startup fails with an error instead of waiting forever. It replaces a lock_timeout set on the database role or the database (ALTER ROLE ... SET) for the migration connection, a tighter one included; 0 keeps that one, or no limit when none is set. | |
MIGRATION_STATEMENT_TIMEOUT_SECONDS | 1800 | Longest run of a statement of the database migrations at startup. Past it the migration is retried once, then startup fails with an error naming this setting. Raise it if an upgrade of a very large database fails on a statement timeout. Like the lock timeout, it replaces a statement_timeout set on the role or the database; 0 keeps that one. | |
STARTUP_WATCHDOG_SECONDS | 300 | When the platform has not completed its startup after this many seconds, it logs an error naming the step in progress and the database sessions blocking the migration, then repeats it at the same interval. After the same delay, the worker's wait for the database migration turns into an error when no platform process is migrating the database. 0 disables. | |
PG_MAX_CONNECTIONS | 200 | PostgreSQL max_connections (Docker Compose managed only). |
Redis
| Variable | Required | Default | Description |
|---|---|---|---|
REDIS_URL | redis://redis:6379 | Redis connection string. Override for external Redis. | |
REDIS_PASSWORD | Redis password (if required). | ||
REDIS_MODE | standalone | standalone or sentinel. | |
REDIS_SENTINEL_HOSTS | Comma-separated Sentinel addresses (host:port). | ||
REDIS_SENTINEL_SERVICE | mymaster | Sentinel service name. | |
REDIS_SENTINEL_PASSWORD | Password of the Sentinel nodes, separate from the Redis password. | ||
REDIS_USERNAME | Redis ACL user. In standalone mode it can also be part of REDIS_URL. | ||
REDIS_DB | 0 | The number of the Redis database to use, in sentinel mode only (in standalone mode, put it at the end of REDIS_URL, as in redis://redis:6379/2). 0, the default, keeps the Redis default database. | |
REDIS_SSL | false | TLS to Redis in Sentinel mode. In standalone mode use a rediss:// URL instead. | |
REDIS_SSL_CA_CERTS | The path, inside the container, of the CA bundle that verifies the certificates of Redis and its Sentinels when REDIS_SSL is true. Unset, the system's certificate authorities are used. | ||
REDIS_SSL_CERT_REQS | required | Certificate check: required, optional or none. | |
REDIS_MAX_CONNECTIONS | 50 | Connections in the shared pool of each process. | |
REDIS_MAXMEMORY | See docker-compose.yml`` | The memory cap of the Redis container that the product's own docker-compose.yml starts, such as 512mb (256mb when unset). Past it, Redis evicts the least recently used keys. The platform does not read it; size a Redis you run yourself in its own configuration. |
File storage (S3 / Silo)
| Variable | Required | Default | Description |
|---|---|---|---|
S3_ACCESS_KEY | Yes | S3 / Silo access key. | |
S3_SECRET_KEY | Yes | S3 / Silo secret key. | |
S3_ENDPOINT | minio:9000 | S3-compatible endpoint. | |
S3_BUCKET | copilot-files | Bucket name. | |
S3_USE_SSL | false | Enable TLS for S3 connections. | |
S3_REJECT_UNAUTHORIZED | true | Whether the certificate of the S3 endpoint is verified when S3_USE_SSL is true (on by default). Set it to false only for an endpoint with a self-signed certificate. | |
S3_REGION | AWS region (required for AWS S3). | ||
S3_USE_AWS_ROLE | false | Take AWS credentials from the pod or instance role (EKS IRSA or Pod Identity, ECS task role, EC2 instance profile) instead of S3_ACCESS_KEY / S3_SECRET_KEY, which are then ignored. The role needs s3:GetObject, s3:PutObject and s3:DeleteObject on the bucket objects, s3:ListBucket for the bucket check, s3:GetBucketLocation when S3_REGION is empty, and s3:CreateBucket if the platform creates the bucket. Presigned URLs carry the role session token, so they expire with that session (1 hour by default on EKS) even when S3_PRESIGNED_EXPIRY is longer. |
AI providers
| Variable | Required | Default | Description |
|---|---|---|---|
LLM_PROVIDER_<NAME>_API_KEY | API key for the named provider. Re-applied on every startup (env wins). The provider shows an Env badge in Settings → AI Models; removing the variable and restarting is what removes it (deleting it from the UI, where that is allowed, only lasts until the next restart). | ||
LLM_PROVIDER_<NAME>_MODELS | Comma-separated list of models to expose. Either pinned or an editable baseline, depending on LLM_PROVIDER_MODELS_EDITABLE. When unset, the provider's stored model list is never touched by the startup seed, except for filigran_gateway: when no other provider offers a chat model (and, with LLM_PROVIDER_MODELS_EDITABLE=true or BYOLLM_ACTIVATED=true, the gateway has no model list yet), startup lists the gateway's chat models and uses them as the list. From then on the list is refreshed on every startup, even once another provider offers chat models, until an administrator edits it (possible with either of those two variables). A model the gateway stops listing leaves the list, but agents and users that picked it keep their choice. If the gateway does not answer, the stored list is kept. A provider that lists no model chats on its built-in chat model only while no configured provider lists one: next to providers whose models are listed, it takes no chat and no failover. A key set for the image, video, speech or music models alone (DEFAULT_*_PROVIDER below) therefore needs no model list. | ||
LLM_PROVIDER_MODELS_EDITABLE | false | false: the *_MODELS list is the catalog — it overwrites the provider's models on every startup, the Models editor is hidden for env-seeded providers and the API refuses model changes on them (403). true: the *_MODELS list is a baseline — seeded on first startup, then only its changes are applied on later restarts (models added to the variable are added, models removed from it are removed, every other edit made in Settings → AI Models is kept), and administrators can curate the models of env-seeded providers from the UI. The API key stays env-managed and the provider still cannot be deleted from the UI. | |
MODELS_ENV_PROVIDING_ONLY | false | When true, all LLM provider management from the UI/API is disabled (add, edit, rename, delete return 403); providers are defined only through LLM_PROVIDER_* variables. Overrides LLM_PROVIDER_MODELS_EDITABLE, and is itself overridden by BYOLLM_ACTIVATED. | |
BYOLLM_ACTIVATED | false | Bring your own LLM — the administrator owns the LLM configuration. When true: administrators add and manage providers and their keys from Settings → AI Models (implies LLM_PROVIDER_MODELS_EDITABLE=true, overrides MODELS_ENV_PROVIDING_ONLY=true with a startup warning naming both), and every DEFAULT_* value furnishes an install once — applied at startup only to an install that has no LLM configuration of its own yet, and inert from the first thing an administrator stores, so no restart can take a choice back (including the choice to leave a field empty). The matching controls stay editable with no Env badge, embedding and image defaults included. Provider API keys stay environment-managed either way. | |
DEFAULT_MODEL | First configured | Platform-wide default model. Re-applied on every startup when a configured provider still offers it (a warning is logged otherwise and the current default is kept). Under BYOLLM_ACTIVATED=true it only furnishes an install that has no LLM configuration yet. | |
DEFAULT_IMAGE_PROVIDER | Provider type images are generated with (openai, gemini, elevenlabs, custom_openai, litellm). Re-applied on every startup with DEFAULT_IMAGE_MODEL, and Settings → AI Models → Image Generation shows an Env badge. | ||
DEFAULT_IMAGE_MODEL | The provider's built-in model | Image model (for example gpt-image-2). Set alone, only the model is re-applied, on whichever provider serves it. | |
DEFAULT_IMAGE_PROVIDER_BASE_URL | Base URL of a custom_openai or litellm image endpoint, composed with that provider's API key. | ||
DEFAULT_SPEECH_PROVIDER | Provider type that reads answers aloud in the chat and narrates Video Studio videos (openai, gemini, elevenlabs, azure_openai, litellm, ...). Same rules as DEFAULT_VIDEO_PROVIDER; locks Settings → AI Models → Speech Generation, voice included. When unset, a voice generator such as ElevenLabs speaks first, else the first provider with a built-in speech model. | ||
DEFAULT_SPEECH_MODEL | The provider's built-in model | Speech model of DEFAULT_SPEECH_PROVIDER (for example tts-1-hd or gpt-4o-mini-tts on openai). | |
DEFAULT_SPEECH_VOICE | The model's first voice | Voice id or name of DEFAULT_SPEECH_PROVIDER (an ElevenLabs voice id, alloy on OpenAI, ...). People can still choose their own voice where the chat offers it. | |
DEFAULT_MUSIC_PROVIDER | Provider type the Video Studio composes AI music with (gemini, elevenlabs, filigran_gateway). Same rules as DEFAULT_VIDEO_PROVIDER; locks Settings → AI Models → Music Generation. When unset, the first provider with a built-in music model composes. | ||
DEFAULT_MUSIC_MODEL | The provider's built-in model | Music model of DEFAULT_MUSIC_PROVIDER (for example lyria-3.5 on gemini; name it on filigran_gateway, which has no built-in model). | |
DEFAULT_DECISION_PROVIDER | Provider type serving the decision model agents use to act on the host page of an embedded chat (openai, openrouter, ollama, filigran_gateway, custom_openai, and lmstudio once an LM Studio integration feeds it). Requires DEFAULT_DECISION_MODEL; locks Settings → AI Models → Decision Model. Without DEFAULT_DECISION_MODEL, or with another provider type, it is logged at startup and ignored, and the section stays editable. When unset, agents cannot act on the host page until an administrator picks a decision model. | ||
DEFAULT_DECISION_MODEL | Decision model of DEFAULT_DECISION_PROVIDER. Decision models are seldom listed by their provider, so the id is used as written. | ||
ANTHROPIC_THINKING_REPLAY_ENABLED | false | Hands the thinking blocks of the current tool round back to the Anthropic models that think by default (Claude Sonnet 5, Opus 5, Fable 5, Mythos), so a tool round resumes with the reasoning that asked for the tools. A turn's blocks are re-sent unmodified only while the system prompt, the tools and the earlier messages are exactly those they were produced under; any change (a tool group loaded mid-run, an older tool result cleared, a compaction) sends the turn without them, as when the setting is off. A request the API refuses over them is sent again without them, so the setting never fails a turn. Every LLM generation whose request carries earlier thinking records what was re-sent and why not in its thinking_replay trace metadata, with the setting off too - compare a period with the setting on against one with it off before enabling it for good. | |
DEFAULT_EMBEDDING_PROVIDER | The first configured of OpenAI, Gemini, Azure OpenAI, Mistral, Bedrock and Ollama | Provider type knowledge bases and memory are embedded with. Re-applied on every startup with DEFAULT_EMBEDDING_MODEL, and Settings → AI Models → Embedding becomes read-only. | |
DEFAULT_EMBEDDING_MODEL | The provider's built-in model | The embedding model the platform uses, instead of the one detected from the configured provider, usually with DEFAULT_EMBEDDING_PROVIDER. It is applied again on every startup, and the embedding control of Settings > AI and models > Models becomes read-only. | |
DEFAULT_EMBEDDING_PROVIDER_BASE_URL | Base URL of a custom_openai, litellm or tei embedding endpoint, composed with that provider's API key. | ||
DEFAULT_EMBEDDING_DIMENSIONS | The model's own size | Smaller vector size, for models that support it (for example 1536 instead of 3072). | |
DEFAULT_ROUTING_MODEL | The default model | Model that decides mandatory handovers between agents. Locks its control in Settings → AI Models. | |
DEFAULT_FALLBACK_MODEL | Model tried first when the main model keeps failing (rate limit, overload). Locks its control in Settings → AI Models. | ||
DEFAULT_REASONING_EFFORT | Default reasoning effort of reasoning models: low, medium, high or max. Locks its control in Settings → AI Models. | ||
DEFAULT_GENERAL_ASSISTANT_MODEL | Agent default | Chat model of the General Assistant. Locks its control in Settings → General Assistant. | |
PROMPT_CACHING_ENABLED | true | Anthropic prompt caching: the repeated start of each request (tools, instructions, earlier messages) is billed at the cache rate. | |
PROMPT_CACHE_TTL | 5m | How long a cached prefix lives: 5m or 1h (twice the write cost, worth it for conversations with long pauses, such as approvals or channels). |
Performance
| Variable | Required | Default | Description |
|---|---|---|---|
WEB_WORKERS | 2 | Uvicorn worker processes. Production: 2 × CPU cores + 1. | |
MAX_REQUESTS | 10000 | Requests a web worker receives before it is replaced (0 = never), plus up to MAX_REQUESTS_JITTER (default half of it). A worker past its quota keeps serving until no agent turn runs in it, so a recycle never cuts a chat turn; the pod stays up and the replacement starts at once. The replacement skips the migrations and the seeding already applied since the container started, and holds the requests it receives while it starts (see Health probes). | |
MAX_REQUESTS_DEFER_SECONDS | 14400 | How long a worker past its MAX_REQUESTS quota waits for the agent turns running in it (chat turns, wakes after background work, channel messages) before it recycles anyway. 0 recycles at the quota, cutting the turns still running after GRACEFUL_TIMEOUT. | |
GRACEFUL_TIMEOUT | 120 | Seconds a stopping web worker (a recycle, a deployment, a scale-in) gives the requests and agent turns it runs to finish. A chat turn still running then is cut: it stores a reply naming what stopped it and the tool calls it had completed, and the conversation offers to resume it. | |
WORKER_CONCURRENCY | 20 | Concurrent queued jobs (document processing and indexing) per worker container. Agent runs are bounded separately by MAX_CONCURRENT_RUNS and MAX_CONCURRENT_SUB_AGENT_TASKS. | |
WORKER_JOB_TIMEOUT | 600 | Longest run, in seconds, of a queued worker job. Document processing has its own, longer bound. | |
WORKER_SHUTDOWN_GRACE_PERIOD | 20 | Seconds a stopping worker gives its in-flight jobs to finish. Keep it about 10 seconds below the container's kill deadline (terminationGracePeriodSeconds in Kubernetes, stop_grace_period in Docker Compose, both 30 seconds by default). 0 cancels them at once. | |
APP_MAX_CONCURRENCY | 200 | Requests one platform process handles at once. Above it, requests get a fast 429 instead of queuing; health probes are exempt. 0 disables it. | |
CHANNEL_MAX_CONCURRENT_PROCESSING | 10 | Incoming channel messages (Slack, Teams, WhatsApp, Telegram, Discord, Google Chat) one platform process answers at once; the others wait their turn. Keep it well below DB_POOL_SIZE + DB_MAX_OVERFLOW. | |
STALE_ASSIGNMENT_WARN_SECONDS | 600 | A run still active after this long logs a warning. 0 disables the warning. | |
STALE_ASSIGNMENT_RUN_SECONDS | 900 | A run nobody is working on any more (its worker or platform process stopped) is failed after this long, and what it held is released. | |
MAX_CONCURRENT_RUNS | 10 | Max parallel assignment executions. | |
MAX_CONCURRENT_SUB_AGENT_TASKS | 5 | Max parallel sub-agent tasks. | |
SUB_AGENT_LEASE_SECONDS | 900 | The lease a background task (a sub-agent delegation) runs under, renewed every third of it. At least three times the longest tool call of an agent turn, so a single long call (a wait, a CI poll, a large read) never costs the task its attempt; a worker that died is recovered after that long. 0 uses ORCHESTRATION_LEASE_SECONDS. | |
MAX_CONCURRENT_AUTONOMOUS_RUNS | 12 | Dedicated slots for autonomous attack-path runs, separate from the assignment/sub-agent pool so dozens can run in parallel without starving normal execution. 0 shares the pool. | |
AUTONOMOUS_BURST_MAX_CYCLES | 8 | Max decision cycles an autonomous run chains back-to-back before briefly yielding, so a multi-step engagement doesn't stall between cycles. | |
AUTONOMOUS_BURST_BUDGET_SECONDS | 180 | Wall-clock budget for that back-to-back burst (whichever limit is reached first triggers the yield). | |
AUTONOMOUS_WAITING_INPUT_RECHECK_SECONDS | 300 | How often a run waiting on operator input re-checks for an answer or stop. Each unanswered re-check doubles the next interval, up to AUTONOMOUS_WAITING_INPUT_RECHECK_MAX_SECONDS. 0 waits purely for the operator's reply. | |
AUTONOMOUS_WAITING_INPUT_RECHECK_MAX_SECONDS | 3600 | Longest interval between two re-checks of a run waiting on operator input. An operator answer still resumes the run at once. | |
AUTONOMOUS_CANCEL_POLL_SECONDS | 2 | How often the worker re-checks whether an in-flight run was stopped, so an operator Stop aborts the running agent within seconds instead of after the current decision cycle finishes. 0 falls back to the slower lease-heartbeat detection. | |
WORKER_TERMINATION_GRACE_SECONDS | 0 | The worker pod's terminationGracePeriodSeconds (Docker Compose: its stop_grace_period), as its deployment sets it. With WORKER_STARTUP_SECONDS, how long a render the worker hands back when it is stopped waits for the next worker: first in the queue, it is failed only once neither its old worker nor a new one could have taken it. It also bounds how long a stopping worker waits for its renders to finish (VIDEO_STUDIO_RENDER_DRAIN_SECONDS). 0 = not given: 30 s, the Kubernetes default. Never less than 3 minutes together. docker-compose.yml sets 1260 for its workers. | |
WORKER_STARTUP_SECONDS | 0 | How long a new worker pod may take to start: its startup probe's initialDelaySeconds plus failureThreshold x periodSeconds, with the image pull if it is slow. 0 = not given: 570 s, so a deployment that sets neither lets a render wait 10 minutes. A render that waited longer fails naming the workers alive and why none took it; rendering it again at the same quality within a day resumes the same render from the frames it kept. | |
AGENT_CHECK_FILE_RETENTION_DAYS | 7 | How long, in days, the pictures a tool makes for an AI agent to check its own work (frames and region crops of a video, contact sheets, slide captures, page renders) are kept after they were made (7 by default). A picture a video uses is kept. Also in Settings > Usage and quotas > Storage & retention, as Check pictures; the variable, when set, wins and locks the field. 0 keeps them forever. | |
FILE_RETENTION_AGENT_WORKING_DAYS | 60 | How long, in days, the scratch files AI agents write while they work are kept after their last use: a download, a preview, a read by an agent or an attachment (60 by default). Also in Settings > Usage and quotas > Storage & retention, as Agent working files; the variable, when set, wins and locks the field (the same for every FILE_RETENTION_* variable). An hourly sweep deletes the content of a file past it, unless an open work item, a workset, an active shared state, a presentation, a report or a video still uses it; the file stays in its conversation or run as a deleted card, and its download answers 410 Gone. 0 keeps the files forever; the most is 3650. | |
FILE_RETENTION_AGENT_DOWNLOAD_DAYS | 60 | How long, in days, the files AI agents hand to people to download are kept after their last use (60 by default). Also in Settings > Usage and quotas > Storage & retention, as Agent deliverables. The sweep, what keeps a file and the deleted card are those of FILE_RETENTION_AGENT_WORKING_DAYS. 0 keeps the files forever; the most is 3650. | |
FILE_RETENTION_AGENT_DAYS | 0 | How long, in days, the other files AI agents, tools and MCP servers return are kept after they were made, used or not. Also in Settings > Usage and quotas > Storage & retention, as Other agent files. 0, the default, keeps them forever; set it to free storage on a busy platform. The sweep, what keeps a file and the deleted card are those of FILE_RETENTION_AGENT_WORKING_DAYS. | |
FILE_RETENTION_CHAT_DAYS | 0 | How long, in days, the files people attach in a conversation are kept after they were uploaded. Also in Settings > Usage and quotas > Storage & retention, as Chat uploads. 0, the default, keeps them forever; set it when your data policy limits how long uploaded documents may be stored. The sweep, what keeps a file and the deleted card are those of FILE_RETENTION_AGENT_WORKING_DAYS. | |
FILE_RETENTION_CHANNEL_DAYS | 0 | How long, in days, the files received from Teams, Outlook and the other channels are kept after they arrived. Also in Settings > Usage and quotas > Storage & retention, as Channel files. 0, the default, keeps them forever. The sweep, what keeps a file and the deleted card are those of FILE_RETENTION_AGENT_WORKING_DAYS. |
Document text extraction
| Variable | Required | Default | Description |
|---|---|---|---|
STRICT_BINARY_TEXT_EXTRACTION | false | A legacy Word .doc, an Outlook .msg or an .xls that cannot be parsed has no dedicated extractor and is read as text, which keeps it searchable in knowledge bases (the result may carry some noise; a warning is logged once per process). true extracts such files to nothing, so a knowledge base sync also removes the ones it had indexed. Zip archives and unreadable PDFs are never indexed as text. |
Agent run budget
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_LOOP_MAX_COST_USD | 0 | Hard ceiling, in USD, on the model spend of one run. Requires pricing for the model in the platform's price table (seeded automatically for known models); with no price known, cost is not enforced (a warning is logged) and the other limits still apply. Tokens a model reports only in its total - a provider that returns no input / output split, or reasoning tokens left out of the output count - are charged at the higher of the model's input and output prices, so cost is never under-counted (a provider that returns no split at all logs one warning per run). 0 = unlimited. | |
AGENT_LOOP_MAX_TOTAL_TOKENS | 0 | Hard ceiling on the tokens one run may consume. 0 = unlimited. | |
AGENT_LOOP_MAX_TOOL_CALLS | 0 | Ceiling on the number of tool calls one run may make: once it is reached, the next model call is refused. Bounds parallel tool use, which the internal iteration limit cannot, but one model response that asks for more calls than are left still runs in full unless AGENT_LOOP_MAX_TOOL_CALLS_STRICT is on. 0 = unlimited. | |
AGENT_LOOP_MAX_TOOL_CALLS_STRICT | false | How a tool-call ceiling treats one model response that asks for more calls than the run has left (a parallel batch crossing AGENT_LOOP_MAX_TOOL_CALLS, or an agent's or flow's own tool-call limit). false runs the whole batch, as before, logs a warning and records the overshoot on the run's trace. true runs only the calls that still fit and answers the others "Not executed", so the ceiling is exact. Either way the next model call is refused and the run writes its final answer. | |
AGENT_LOOP_MAX_DURATION_SECONDS | 0 | Hard ceiling on the wall-clock duration of one run. Combined with the assignment's own timeout — the tighter of the two applies. 0 = unlimited. | |
AGENT_LOOP_BUDGET_FINAL_ANSWER_RESERVE | 0.1 | Fraction of the cost and token budgets reserved for the run's closing answer, so an exhausted budget still yields a written result instead of a raw digest of tool output. Clamped to 0–0.5. | |
AGENT_LOOP_BUDGET_FALLBACK_ENABLED | false | When the cost budget can no longer pay for the next model call, continue the run on the platform's fallback model (Settings → AI Models → Fallback Model / DEFAULT_FALLBACK_MODEL) instead of stopping. One downgrade per run. Only cost qualifies — a cheaper model buys no extra tokens, tool calls, or time. An individual agent or flow may turn this on for itself even when it is off here: it cannot raise the cost ceiling, so it is not a privileged change. |
Write coalescing
| Variable | Required | Default | Description |
|---|---|---|---|
SELF_VERIFICATION_LOOP | true | Merge several updates of one calendar event (or edits of one Teams message) asked in the same agent step into one provider call. false sends one call per update, as before. The same flag refuses a send (mail, Teams message) whose recipients and body match one the run or the same agent already sent in the last 10 minutes, naming the earlier call; the agent passes allow_duplicate: true to send it anyway (audited). After a calendar, mail, chat, work item or presentation write, the agent also reads the object back as the system now shows it, with a list of anomalies of the run (the same object written several times, repeated sends to the same recipients within 2 minutes, a near-identical message, an invitation overlapping another event). |
Long runs
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_LOOP_AUTO_EXTEND_ITERATIONS | true | Lets a run still making progress at its Max iterations continue in stretches of the same size, up to 1000 rounds. false makes Max iterations a hard cap again, and a chat message's time limit follows it as before. |
Agent waits
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_MAXIMUM_WAIT_TIME | unset (300 from Settings) | Longest single wait, in seconds. Clamped to 1-3600. Unset = the value saved in Settings. | |
AGENT_MAXIMUM_TOTAL_WAIT_TIME | unset (1800 from Settings) | Total seconds one run may spend in wait. Clamped to 1-86400. Unset = the value saved in Settings. |
Stuck-loop breaker and vision budget
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_LOOP_IDENTICAL_CALL_WARN_AFTER | 3 | Identical (tool, arguments) calls in one turn before the model is told to stop and change approach. 0 disables the warning only; the refusal bound below still applies. Set both identical bounds to 0 to disable the identical-call breaker. A warning bound at or past its refusal bound never fires (the call is refused without a nudge) and is reported at startup. | |
AGENT_LOOP_IDENTICAL_CALL_REFUSE_AFTER | 5 | Identical calls before the call is refused outright. 0 = warn only, never refuse. | |
AGENT_LOOP_SIMILAR_CALL_WARN_AFTER | 6 | Near-identical calls — the same file or URL read again with different max_chars or options — before the warning. A call that names a paging position (offset, cursor, page, ...; start only as a number, a date never) not read before on that target is a page, not a repeat: pages are counted apart and warned at three times this value. A re-call whose earlier answer the platform itself cleared from the context is a fresh ask, never a repeat. 0 disables the warning only; set both similar bounds to 0 to disable the similar-call breaker. | |
AGENT_LOOP_SIMILAR_CALL_REFUSE_AFTER | 10 | Near-identical calls before the refusal; pages of one target are refused at three times this value. 0 = never refuse. | |
AGENT_LOOP_STEP_BUDGET_NUDGE_FRACTION | 0.6 | Fraction of a run's step budget (between 0 and 1) at which the model is told which tools consumed its steps and asked to finish or report. 0 disables. | |
AGENT_LOOP_READ_WINDOWS_PER_FILE | 4 | How many text windows read_file_content serves for one file in one turn, per view (the source, or the mode="extract_structured" rendering of an HTML, JSON, JSON Lines or CSV file). Past it the call is answered with an explicit error saying the file's window budget is spent for this turn (the file stays attached) and naming the ways forward (the rendered view, or code_interpreter, where conversation files are mounted under attachments/), never another window. Images are never counted. 0 = no cap; a negative value is refused at startup. | |
AGENT_LOOP_VISION_VIEWS_PER_TURN | 10 | How many distinct images may reach the model as vision blocks in one turn per 25 steps of its step budget, whatever tool attached them (read_file_content, a browser screenshot, a rendered figure, a generated image). The budget follows the steps: an agent whose maximum iterations is 100, or a run its progress extended to 100, may look at four times as many images, so a long visual job (a video, a deck) keeps its sight while it has steps. Enforced by the loop where every tool result is appended: past the cap the result keeps its text and loses its pixels, with an explicit "vision budget exhausted" note naming the files and the notes the agent saved. 0 = no cap; the same file is still shown at most once per turn (a second read returns the saved notes). |
Nova prompt-safety engine
| Variable | Required | Default | Description |
|---|---|---|---|
NOVA_EVALUATION_CONCURRENCY | 4 | How many provider calls one evaluation runs at once: its llm: conditions, and the semantics: pattern embeddings not kept yet. The same calls are made and give the same verdicts whatever the value; 1 makes them one after another, for a provider that rate-limits parallel calls. Between 1 and 32; any other value fails startup. | |
NOVA_LLM_MAX_CONDITIONS | 0 | The most distinct llm: conditions one evaluation asks. 0 asks every condition. A ceiling bounds the model calls per screened message, at the cost of detection: the conditions past it are not asked (those of block rules are kept first), so a rule resting on one cannot fire through that tier. The platform log warns once per rule set with how many conditions go unasked, and the Security Audit reports the control agents.nova_llm_every_condition as off. A negative value fails startup. |
Agentic quota
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_FAILURE_QUOTA_REFUND_ENABLED | true | Master switch for the failure pool. On by default — spending an action on a run the platform failed to deliver is the wrong default, and the pool is what keeps that from becoming free unlimited retries. Set it to false to deduct an action for every failure, like a success. | |
AGENT_FAILURE_QUOTA_POOL | 5 | Failures credited back per agent, per user, per pool window. The N+1th failure in the same window spends its action normally. 0 closes the pool without touching the switch above. |
Logging
| Variable | Required | Default | Description |
|---|---|---|---|
LOG_LEVEL | info | debug, info, warning, error, critical. | |
LOG_FORMAT | json | json (structured) or console (human-readable). When unset, defaults to json in production or console when DEBUG=true. |
Email (SMTP)
| Variable | Required | Default | Description |
|---|---|---|---|
SMTP_HOSTNAME | SMTP server hostname. | ||
SMTP_PORT | 587 | SMTP port. | |
SMTP_USERNAME | SMTP authentication username. | ||
SMTP_PASSWORD | SMTP authentication password. | ||
SMTP_FROM | SMTP_USERNAME | Sender address for outgoing emails. | |
SMTP_FROM_NAME | The sender name of the emails XTM One sends (invitations, password resets, notifications). Set it to your own, such as "Grand Meridian XTM One". | ||
SMTP_STARTTLS | true | Connect in plain text, then upgrade with STARTTLS (port 587). | |
SMTP_USE_TLS | false | Encrypt from the first byte (implicit TLS, port 465). Wins over SMTP_STARTTLS when both are set. | |
MODEL_ANNOUNCEMENT_EMAILS_DISABLED | false | Set it to true to turn off every model announcement email on the platform: those sent when a deployment changes the models of the environment (MODEL_CATALOG_EMAILS_ENABLED) and those an administrator sends from the User announcements panel of Settings alike. false by default. While it is on, announcements still queued are closed without being sent, Settings no longer offers to email the users (the test email included) and says why, and model changes are still recorded: once it is off again, the next startup with MODEL_CATALOG_EMAILS_ENABLED and SMTP sends the latest change skipped meanwhile. | |
MODEL_CATALOG_EMAILS_ENABLED | false | Email the platform's users when a boot (or switching AI on) finds the env-managed model catalog changed: DEFAULT_MODEL moved, an LLM_PROVIDER_<P>_MODELS list gained or lost a model, or a capability the environment pins (DEFAULT_IMAGE_*, DEFAULT_VIDEO_*, DEFAULT_SPEECH_*, DEFAULT_MUSIC_*, DEFAULT_DECISION_*) became available or moved to another model. One email per change names the new default model, the models now available, the ones retired, and each capability with what it does and its model ("Video generation is now available", "New AI capabilities in your ENABLED_FEATURES=VIDEO_STUDIO), the one feature that uses them; turning it on announces them. While it is off, the speech model is announced for reading answers aloud only, with no word of the Video Studio. Needs SMTP. Whether a change goes out is decided by the boot that records it, from its own configuration, so a pod still running the previous environment during a rolling deploy cannot drop it: a change recorded while this is off (or without SMTP) is sent by a later boot that has both, within 7 days, as long as nobody was emailed about it and it still describes the live catalog. What became of each change (queued, skipped and why, sent to how many) is logged at WARNING. A change waits until the env catalog has stayed unchanged for MODEL_CATALOG_EMAILS_SETTLE_MINUTES, so the changes of successive deploys reach the users as one email. Emails go out in English from the scheduler, a batch per minute, oldest change first, never twice to the same person: an email whose delivery could not be confirmed (the connection dropped mid-send, a worker stopped) is not retried. Announcements an administrator sends from Settings > AI Models do not depend on this switch, only on MODEL_ANNOUNCEMENT_EMAILS_DISABLED (see Emailing users about model changes). | |
MODEL_CATALOG_EMAILS_RECIPIENTS | all | all (every active user) or admins, for the changes a boot finds. Announcements sent from Settings go to every active user. The bootstrap ADMIN_EMAIL account is never emailed. | |
MODEL_CATALOG_EMAILS_BATCH_SIZE | 20 | Emails sent per scheduler tick (one a minute); the rest follows on the next ticks. Keep it under your mail server's sending limit: a hosted mailbox allowing 200 emails an hour needs 3 or less. | |
MODEL_CATALOG_EMAILS_SETTLE_MINUTES | 30 | How long, in minutes (0 to 1440), the env-managed model catalog must stay unchanged before the change a boot found is emailed. Every env change deployed before then (a corrected rollout, a second release, a rolling restart with new values) is added to the same email and restarts the wait, and a change reverted meanwhile is never sent. 0 sends from the next scheduler tick. Announcements sent from Settings are never held. | |
MODEL_CATALOG_CHANGES_WINDOW_HOURS | 24 | How far back, in hours (1 to 168), the model list saves an administrator has not emailed yet are combined into the model changes Settings > AI Models offers to email. Every save is kept; a model added then retired within the window (or the reverse) cancels out, and a change the live catalog no longer holds is left out. |
Observability
| Variable | Required | Default | Description |
|---|---|---|---|
LANGFUSE_HOST | https://cloud.langfuse.com | Langfuse server URL. | |
LANGFUSE_PUBLIC_KEY | Langfuse public key. | ||
LANGFUSE_SECRET_KEY | Langfuse secret key. | ||
PROMETHEUS_ENABLED | false | Enable Prometheus metrics endpoint. | |
PROMETHEUS_BEARER_TOKEN | Bearer token for metrics endpoint (min 16 chars). | ||
TRACING_STORE_PROVIDER | postgres | Where traces are stored, postgres (the default) or clickhouse. With clickhouse, traces are written to ClickHouse and still to PostgreSQL, and the Traces screens read them from ClickHouse; any other value is read as postgres. | |
CLICKHOUSE_DATABASE | default | The ClickHouse database that holds the trace tables, which the platform creates there if they do not exist (default by default). | |
CLICKHOUSE_SECURE | false | Set it to true to reach ClickHouse over HTTPS instead of HTTP. Off by default. | |
CLICKHOUSE_CONNECT_TIMEOUT_SECONDS | 5 | The timeout, in seconds, of each request to ClickHouse (5 by default). |
Usage telemetry
| Variable | Required | Default | Description |
|---|---|---|---|
TELEMETRY_ENABLED | true | Anonymous usage telemetry to Filigran. false turns it off: the platform makes no connection to the collector, not even the startup check. Read at startup. | |
TELEMETRY_ENDPOINT | Filigran's collector (its staging one with DEBUG=trueorPLATFORM_MODE=dev) | OTLP/HTTP endpoint (.../v1/metrics) the metrics are sent to, your own collector for example. | |
TELEMETRY_TAGS | Comma-separated deployment tags (saas,eu-west) sent with every metric. Trimmed, lowercased, deduplicated and sorted before they are sent. |
Security switches
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_TOOLS_STRICT_ADMIN_ACCESS | false | Keep every agent tool of an admin - the agent builder, the agent trace inspection and the work-items delegation, in chat and on the XTM One MCP server - to the admin's own, group-shared and company-managed objects, like every other caller: the agents, assignments, runs, traces, evaluations, knowledge bases, skills and other entities a tool looks up, lists or binds. The admin role still counts where a tool checks a permission (a company-managed object, an admin-only setting). By default an admin's agent reaches everything, as the admin does in the UI and through the REST API; the Security Audit reports the default while an agent carries one of these tools, chat is on (the General Assistant offers the agent builder in every conversation) or the XTM One MCP server is enabled. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
DISABLE_CODE_INTERPRETER | ``true (xtm_one mode) | Disable code interpreter at infra level. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
DISABLE_CUSTOM_TOOLS | ``true (xtm_one mode) | Disable custom tools at infra level. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
CUSTOM_TOOL_SANDBOX | auto | Custom tool execution mode: auto, docker, subprocess, opensandbox. opensandbox delegates to an OpenSandbox-managed container (also used by the code interpreter) and requires the OpenSandbox connection variables below. | |
DISABLE_SANDBOX_QUOTA_USAGE | false | Opt out of per-user sandbox usage counting (quota_usage rows with usage_type="sandbox", alongside the existing LLM-proxy/agentic usage). Counted by default; set true for self-hosted/on-prem deployments that manage their own sandbox infrastructure independently of hosted usage-based billing. Restart required to take effect. | |
INTEGRATION_NOTIFICATIONS_REQUIRE_VERIFICATION | false | Refuse every Slack event on /api/v1/integrations/notifications/slack and every Microsoft Graph change notification the platform cannot authenticate, those of the Teams bot's private and shared channels on /api/channels/teams/graph-notifications included. By default a Slack integration with no usable signing secret keeps receiving its events without a verified signature, and a Graph subscription recorded without a clientState keeps working, each with a warning in the log and a Security Audit finding. A delivery that a stored Slack signing secret or a Graph clientState does not prove never reaches what that secret or clientState protects, whatever the setting. The same setting limits what the admin OAuth app's webhook (/api/hooks/providers/<provider>) and the LinkedIn notification URL deliver to the admin app's integrations the agent owner may use (for a GitHub App event, those recording its installation or, recording none, whose own token sees it), and drops a LinkedIn notification when no LinkedIn client secret is configured; by default they reach what they reached before, with a warning and a Security Audit finding. That webhook accepts, without a check, a delivery for a provider whose OAuth default holds no webhook secret, and by default one for a provider with no OAuth default (with the setting on, such a provider reaches nothing); both are reported the same way. For the Teams bot's private and shared channels, a notification that does not carry the subscription id and the random secret (clientState) XTM One recorded for its channel is still acted on by default whenever earlier releases acted on it, with a warning and a Security Audit finding, and the subscriptions created before 2026-07-02 (whose secret anyone who knows the team id can compute) are kept and renewed; with the setting on, such a notification is refused, the maintenance pass replaces those subscriptions and the ones whose secret can no longer be decrypted (if Microsoft Graph refuses to create a replacement, that channel's follow-ups stop until a later pass creates it), and what a refused notification held back is read back from Microsoft Graph, up to four hours back. Nothing to set on upgrade. See Real-time Slack, Microsoft Graph or LinkedIn events do not arrive and Microsoft Teams. Also in Settings > Access and security (Require verified integration notifications); the variable, when set, wins and locks the field. | |
WORK_ITEM_NOTIFY_TEST_RECIPIENTS | empty | The targets, comma-separated, a test work item may name for its end notification: an address (payload.notify.user), a Teams chat id (payload.notify.chat_id) or team_id/channel_id (a Teams channel). A test work item is one whose correlation key starts with retest: or test:, or whose title starts with Notify retest. Any other recipient is refused when the item is created or updated, so a platform retest never messages a real person. The sending account's own chat (chat_id 48:notes) is always allowed. Empty: a test item may only notify that own chat. | |
WORK_ITEM_DEPLOYMENT_REPOSITORIES | XTM-One-Platform/xtm-one | The repositories (owner/name, comma-separated) whose deployments the platform observes. A work item may wait on the deployment of a change (blocked_on_refs kind deployment) only in one of them, since such a wait is released when a running build carries the merge. A deployment wait on any other repository is refused when the item is saved, with the alternatives: a workflow_run wait on that repository's release workflow, or a reason with a start date for the re-check. | |
WORK_ITEM_STALE_REF_WAIT_DAYS | 7 | How many days a blocked work item waiting on pull requests, issues, deployments or workflow runs may stay quiet before it is shown as stale ("needs a look"). An item whose start date is ahead is never stale on inactivity, and one waiting on a deployment the platform does not observe always is. 0 treats such a wait like any blocked item (the 24 h window). | |
PROMPT_GUARD_SCANNED_TOOLS | empty | The tools whose results the connected prompt guard screens, comma-separated: a tool's registered name for a built-in, integration or MCP tool (for example web_fetch,search_jira_issues), and custom:<id> for a custom tool, with the custom tool's id - it stays screened when its owner renames it. While a company-managed Nova integration is connected, the guard evaluates what a listed tool returns to an agent - the text the agent reads, followed by the text of the files the result attaches (images excluded) - and records each rule match in the audit log (Security alert, surface tool_result, with the tool, the rules and their action). The result itself is left exactly as it is, and the evaluation runs beside the agent, which does not wait for it. Empty by default: no tool result is screened, and an agent run does what it did before the setting existed. Also in Settings > Access and security (Tools screened by the prompt guard), where the tools are picked from a list; the variable, when set, wins and locks the field. | |
PROMPT_GUARD_BLOCK_TOOL_RESULTS | false | With PROMPT_GUARD_SCANNED_TOOLS set, withhold a screened tool result that a block rule matches: the agent reads a short refusal naming the tool instead, without the files the result carried, and the result is not reused for an identical call. The agent then waits for the guard's verdict on each screened result before it continues (at most 20 seconds each, the results of one parallel batch evaluated together, four at a time in each platform or worker process); a guard that fails or runs out of time lets the result through. Off, a match is recorded and the result reaches the agent as it is; the security audit reports that log-only mode while a guard is connected. Also in Settings > Access and security (Withhold tool results a guard rule blocks); the variable, when set, wins and locks the field. | |
PUBLIC_WIDGET_STRICT_RENDERING | false | Public chat widget: show only the images the platform serves in an answer (any other image becomes a link the visitor can open, so the visitor's browser never fetches a URL an answer chose), open every link of an answer in a new tab, and render answers without inline styles, presentational markup (align, bgcolor, <font>, ...), SVG or MathML, with links of the http, https, mailto and tel schemes only. By default answers render as they always did: an image from any http(s) host is shown, an HTML link without a target opens in the page, and inline styles, presentational markup, SVG / MathML drawings and links of any other scheme (msteams:, sms:, ...) are kept. Script is removed in both modes: script elements, event handlers, javascript: / vbscript: / data: URLs, frames, forms and embedded objects. Links that launch a Windows program with a public exploitation history (ms-msdt:, search-ms:, ms-officecmd:, ms-appinstaller:, ...) are removed in both modes too, their text kept, as they are in the Office add-in; app links (slack:, msteams:, ...) and the Office document links (ms-word:, ms-excel:, ...) keep working. The security audit (Settings → Security) reports the default while a widget is enabled. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
PUBLIC_WIDGET_UPLOAD_RETENTION_DAYS | 7 | Public chat widget visitor uploads (see Visitor uploads on the public chat widget): the files a visitor attached are deleted once their conversation has had no message for this many days; a file uploaded and never sent with a message is deleted after a day, and the files of a deleted conversation within the hour. A value below 1 is read as 1: the retention cannot be switched off. | |
SVG_STRICT_RENDERING | false | SVGs a model is shown (a chat upload, a user-message image, a tool result such as an agent reading back the diagram it drew): refuse, instead of rendering, an SVG that declares an XML entity or references anything outside itself - a file path, an http(s) URL or another document, in an <image>, <feImage> or <use> or a url(...) in an attribute. By default such an SVG renders with that reference dropped - what resvg drew there on its own, as it follows only references inside the document - and an internal entity (an Adobe Illustrator export declares its namespaces this way) is expanded within a bound. Nothing is fetched or read from disk in either mode, and a nested SVG embedded as a data: URI (draw.io icons) is checked under the same rules. The security audit (Settings → Security) reports the default. | |
PROMPT_GUARD_BLOCK_GENERAL_ASSISTANT | false | While a prompt guard (the Nova integration) is connected, a General Assistant message is evaluated before the model is called and every rule match is written to the audit log (security_alert, source: nova_guard, surface: chat_message, chat_surface: general_assistant). By default the message is answered even when a block rule matched (the entry records rule_action: block, action: allowed): the General Assistant was not guarded before, so nothing it answers today is refused on upgrade. Set true to refuse such a message with the guard's message, as agent chat always does. The security audit reports which of the two applies while a guard is connected. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
PROMPT_GUARD_BLOCK_PUBLIC_WIDGET | false | The same for a public chat widget visitor's message (chat_surface: public_widget). A visitor has no account, so the entry is written as the guard (system:nova_guard) and attached to the admin account the widget acts as (ADMIN_EMAIL). With true, a refused message reaches no model and its agentic action is given back. | |
PROMPT_GUARD_MODEL_OUTPUT | off | Evaluate the model's answer with the connected prompt guard (the Nova integration): off, log or block. Covered: the final answer of every top-level agent turn (web chat, the REST chat API, channel bots, the chat embedded in OpenCTI / OpenAEV, A2A, the MCP agent endpoints, the LLM proxy, the browser extension, background tasks, flows), the General Assistant's (a transfer's included) and the public widget's. Not covered: a consult's or a transfer's inner answer (its parent's answer is), evaluation runs, the OpenAEV autonomous run's cycles after the first, and assignment runs, whose result reaches their owner and which act on the outside world through write tools. off evaluates nothing. log returns every answer unchanged and at once, and evaluates it in the background (at most 4 at a time per process and 64 pending, 20 seconds each, the first 20,000 characters); a match is written to the audit log (security_alert, surface: model_output, action: allowed). block evaluates an answer before it is delivered and replaces one a block rule matches with a withheld notice (action: block), where the answer is delivered whole: the REST chat API, channel bots, A2A, the MCP endpoints, the LLM proxy, the browser extension, background tasks, the widget's non-streaming endpoint and a transfer from the General Assistant. A streamed answer (web chat, the streaming chat embedded in OpenCTI / OpenAEV, the widget's stream) has already been shown when it is complete, so in block it is evaluated and audited after delivery as in log, with streamed: true, and never withheld. An evaluation that fails or runs out of time delivers the answer. With no guard connected nothing is evaluated whatever the value. Write-tool arguments (an email body, a ticket comment) are not evaluated. The security audit reports the value while a guard is connected. Also in Settings > Access and security; the variable, when set, wins and locks the field. |
XTM Hub registration
| Variable | Required | Default | Description |
|---|---|---|---|
XTM_HUB_DEFAULT_URL | https://hub.filigran.io | The XTM Hub this platform registers with by default, like OpenCTI's XTM__XTMHUB_URL and OpenAEV's OPENAEV_XTM_HUB_URL. It is the XTM Hub URL proposed in Settings > Parameters, the one automatic registration uses, the XTM Hub the product switcher and the home dashboard link to, and the address of an XTM Hub integration that names none. An absolute http(s) URL without credentials, query or fragment; anything else refuses to start. A registration token is only sent to it over https, or to an XTM Hub on this machine. |
XTM Hub sign-in gate
| Variable | Required | Default | Description |
|---|---|---|---|
XTM_HUB_ADMIN_GROUP | The role, in this instance's XTM Hub claim, that means administrator. Matched exactly, including case. Setting it enables the gate; empty leaves OIDC behaving exactly as it does without this feature. |
MCP OAuth
| Variable | Required | Default | Description |
|---|---|---|---|
MCP_DCR_ENABLED | true | Inbound. Allow external MCP clients to self-register against this platform (POST /mcp/oauth/register, RFC 7591). The endpoint is unauthenticated by specification, so it is protected by a per-IP rate limit and a bounded client table rather than a login. Set false to turn registration off entirely (the endpoint then returns 403). A confidential client receives its client_secret in the answer, so under CREDENTIAL_TRANSPORT_STRICT a registration the platform cannot confirm arrived over HTTPS is refused first (400 {"error": "invalid_client_metadata", "error_description": "https required"}). Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
MCP_DCR_MAX_CLIENTS | 500 | Inbound. Upper bound on dynamically registered clients. At the cap the oldest registrations are evicted; RFC 7591 clients re-register transparently. Values below 1 are clamped to 1. | |
MCP_DCR_RATE_LIMIT | 5 | Inbound. Registrations per hour from one client IP at POST /mcp/oauth/register. A hosted client (claude.ai, ChatGPT) registers one client per fresh connection, always from its provider's addresses: raise it when many people connect from such a client and it does not use a client metadata document. Values below 1 are clamped to 1. | |
MCP_CIMD_ENABLED | true | Inbound. Accept OAuth Client ID Metadata Documents (MCP 2025-11-25): a client names its own HTTPS metadata document as its client_id instead of registering, which is what claude.ai, Claude Code and VS Code use when the platform advertises it (client_id_metadata_document_supported). The platform fetches the document from a public address only (the outbound URL policy, connecting to the address it checked), with no redirect, within 5 seconds and 16 KiB in all, at most 20 fetches per client IP, 10 per host and 60 for the whole platform per minute (refused while Redis is unavailable), and caches it for its Cache-Control max-age (5 minutes to 1 hour, 1 hour by default); a known client is served from its cached entry for up to 24 hours more when a refetch cannot be made. Why a document was refused is logged, not shown to the caller. Only public clients with a client_name whose redirect URIs are HTTPS or loopback are accepted, and a person still signs in and consents on a page naming the client by its host. The refresh tokens of one authorization stop after 90 days, and sooner once its document is refused. Set false to refuse them: such a client then needs dynamic registration or an API key, and its tokens stop refreshing. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
MCP_OUTBOUND_DCR_ENABLED | true | Outbound. Let the platform register itself with a remote MCP server that advertises a registration endpoint, so remote servers can be connected without pre-provisioned credentials. Set false to require every outbound OAuth client to be provisioned by hand — connecting a remote server then needs an explicitly configured client ID. Also in Settings > Access and security; the variable, when set, wins and locks the field. |
Code interpreter sandbox workspace
| Variable | Required | Default | Description |
|---|---|---|---|
CODE_INTERPRETER_WORKSPACE_ENABLED | true | Keep a workspace per conversation and run, offer session=true, to_workspace_path and the sandbox_* / materialize_repository tools. false brings back the stateless code interpreter of earlier releases (no workspace, no tool or argument added). | |
CODE_INTERPRETER_WORKSPACE_QUOTA_MB | 2048 | Size limit of one workspace, in MiB. A call that would go past it saves nothing it wrote under workspace/ and says so. | |
CODE_INTERPRETER_WORKSPACE_MAX_FILES | 20000 | Files one workspace may hold. | |
CODE_INTERPRETER_WORKSPACE_IDLE_TTL_HOURS | 168 | A workspace unused for this long is deleted by the hourly sweep. Archiving or deleting a conversation deletes its workspace at once. | |
CODE_INTERPRETER_RUN_WORKSPACE_IDLE_TTL_HOURS | 24 | An assignment run's workspace is deleted as soon as the run ends (completed, failed, skipped or cancelled). One whose run has not ended is deleted after this long unused, unless the run waits on a person (then CODE_INTERPRETER_WORKSPACE_IDLE_TTL_HOURS applies). | |
CODE_INTERPRETER_WORKSPACE_MANIFEST_ENTRIES | 40 | Files the code_interpreter description and the resume note list; the rest are counted. | |
CODE_INTERPRETER_WORKSPACE_CACHE_MB | 2048 | Local sandbox only: what each backend process keeps of the workspace contents it downloaded, under the system temporary directory, least recently used first out. 0 disables the cache (every call downloads what it mounts). | |
CODE_INTERPRETER_KERNEL_IDLE_SECONDS | 900 | A session=true kernel unused for this long stops (minimum 30). On OpenSandbox it is also the kernel container's lifetime, renewed by every call. | |
CODE_INTERPRETER_KERNEL_MAX_PER_PROCESS | 8 | Local sandbox only: kernels one backend process keeps, the least recently used stopped first. | |
CODE_INTERPRETER_COMMAND_MAX_SECONDS | 1800 | OpenSandbox only: the longest a check run by sandbox_run_command may take; a check's own timeout in .xtm-one/checks.toml is capped by it. The command's container is discarded after a timeout. | |
CODE_INTERPRETER_COMMAND_ALLOW_ARGV | false | OpenSandbox only: let sandbox_run_command run an argv the checkout did not declare in .xtm-one/checks.toml. Off: only declared checks run, and a refusal lists them. The container has no network and no credential either way. | |
CODE_INTERPRETER_PACKAGE_ALLOWLIST | empty | Packages code_interpreter(packages=[...]) may install into a workspace, comma-separated distribution names. Empty: installs are off and the argument is not offered. The server installs wheels only, checked against the index's sha256, and runs no install script; a package the sandboxed code imports can import modules the sandbox blocks to the code itself, so list only packages you trust. The security audit reports a non-empty list. | |
CODE_INTERPRETER_PACKAGE_INDEX_URL | PyPI | The package index installs read: a PEP 691 or PEP 503 "simple" index, such as a PyPI mirror or proxy. |
OpenSandbox
| Variable | Required | Default | Description |
|---|---|---|---|
OPENSANDBOX_DOMAIN | Yes | localhost:8090 | Host (and optional port) of the OpenSandbox service. The default isn't enforced at startup — a production deployment that forgets to set this won't fail loudly, it will just try to reach localhost:8090 and fail to connect. |
OPENSANDBOX_PROTOCOL | http | Protocol used to reach OpenSandbox (http or https). | |
OPENSANDBOX_API_KEY | Yes | API key for authenticating to OpenSandbox. docker-compose.yml gives the same value to the opensandbox service as its own key: unset, that server (v0.2.1 and later) refuses to start. | |
OPENSANDBOX_IMAGES | python:sandbox-python:0.4,nodejs:sandbox-nodejs:0.4 | Per-key container image, as comma-separated key:image pairs (split on the first : per entry, so a registry:port-qualified image survives intact). Overrides merge on top of the defaults, so overriding one key leaves the other on its default. | |
OPENSANDBOX_K8S_POOL_NAMES | Per-key Kubernetes Pool binding, as comma-separated key:pool-name pairs, e.g. python:my-python-pool,nodejs:my-js-pool. A Pool's warm pods run one fixed image, so one name can't back both sandbox kinds — a key missing from the mapping (or the whole variable unset) cold-starts for that key. | ||
OPENSANDBOX_K8S_NAMESPACE | The namespace the OpenSandbox server creates its sandboxes and Pool pods in. Set, the worker reaps it every minute, and at once after a pooled create timed out: it deletes the Pool pods that ended (Failed, Succeeded, Evicted) or stayed not Running and ready past OPENSANDBOX_POOL_STUCK_SECONDS, which a Pool counts toward its warm buffer and never replaces, and the BatchSandbox objects past their expireTime. The platform's service account needs pods and batchsandboxes.sandbox.opensandbox.io get, list and delete in that namespace; without them, or outside a cluster, the reaper logs one line and does nothing. Deleted objects are counted by xtmone_sandbox_pool_reaped_total{kind, reason}. | ||
OPENSANDBOX_POOL_STUCK_SECONDS | 600 | How long a Pool pod may stay Pending, Unknown or Running but not ready before the reaper deletes it (minimum 60). Keep it above the server's sandbox_create_timeout_seconds. | |
OPENSANDBOX_NETWORK_ALLOW | Comma-separated list of domains/IPs to allow as egress from every OpenSandbox container. Empty means all egress is denied. In a JavaScript custom tool, a fetch to a host outside the list is refused at once with the egress-policy message, and a fetch to a listed host fails after 10 s when the host does not accept the connection. | ||
SANDBOX_REGISTRY_MIRROR_URL | The address of a read-only npm and PyPI mirror, such as http://registry-mirror:8080, through which the checks and services an agent runs in its workspace (sandbox_run_command, sandbox_start_service) install their packages. Set, its host joins the egress those containers may reach, and npm, Yarn, corepack, pip and uv install from its /npm/ and /pypi/simple/ paths; the code interpreter and custom tools never use it. Keep registry.npmjs.org, pypi.org and files.pythonhosted.org out of OPENSANDBOX_NETWORK_ALLOW, so the mirror stays the only route to the registries. An address that is not http or https, or that carries a user, a password, a query or a fragment, stops the platform at startup. Empty by default: those containers stay offline and install only the packages their images hold. | ||
SANDBOX_CPU | 1 | CPU requested for each OpenSandbox container (code interpreter + custom tools). Passed through as-is to the OpenSandbox SDK's resource argument on the cold-start path. When OPENSANDBOX_K8S_POOL_NAMES binds that sandbox kind to a k8s Pool, it does not size the container — the Pool manifest's own resources.requests governs warm-pod sizing instead, so there's no sync requirement between the two - see dev-docs/opensandbox-pool-management.md. It also sets OMP_NUM_THREADS, OPENBLAS_NUM_THREADS and MKL_NUM_THREADS in every OpenSandbox container to this value rounded up to a whole CPU (at least 1), so numerical libraries such as numpy start one thread per allocated CPU, not one per host core. | |
SANDBOX_RAM | 128Mi | Memory requested for each OpenSandbox container. Same cold-start-only pass-through as SANDBOX_CPU. Both take a bare value for every image key or a per-key list in the OPENSANDBOX_IMAGES convention (128Mi,python-dev:2Gi: the entry without a key is the default), so the dev images of sandbox_run_command (python-dev, nodejs-dev, built by backend/sandbox/build-dev-image.sh with the repository's locked dependencies) can be sized for a test suite without resizing every sandbox. The code interpreter and the custom Python tools read the python key, the custom JavaScript tools the nodejs key. | |
OPENSANDBOX_USE_SERVER_PROXY | false | Route sandbox traffic through the OpenSandbox server instead of connecting directly to each sandbox's endpoint. Useful for any deployment topology where this process can reach the OpenSandbox server but not the individual sandbox endpoints it hands back — e.g. a process on the host against a containerized server, which advertises endpoints via a hostname like host.docker.internal that only resolves from inside containers, or a production/k8s deployment where sandbox pods aren't directly routable from this process but the server's service is. | |
CONTAINER_ENGINE_SOCKET | /var/run/docker.sock | Container engine API socket mounted into the opensandbox service, which starts the sandbox containers through it. Under rootless Podman, $XDG_RUNTIME_DIR/podman/podman.sock (enable podman.socket). The service runs with SELinux labeling disabled (security_opt: label=disable), which an SELinux host needs for it to use the socket, and which leaves it unconfined by SELinux there; it has no effect on a host without SELinux. |
Webhook delivery
| Variable | Required | Default | Description |
|---|---|---|---|
ASSIGNMENT_QUEUE_ENABLED | true | Per-assignment webhook (POST /api/hooks/assignments/{id}) only: queue its deliveries that arrive while the assignment is busy. Integration events follow INTEGRATION_EVENT_QUEUE_ENABLED instead. Set false only to restore the legacy behaviour, where such a delivery was discarded and still answered 200. | |
INTEGRATION_EVENT_QUEUE_ENABLED | false | Pushed integration events - a Slack event, a Microsoft Graph or LinkedIn notification, a provider or agent webhook - that arrive while every slot of their assignment is taken. false: the overlap guard skips them, as it always did (a Slack message is still fetched by the poller). true: they are queued, past the queue cap with a warning if need be, and start as slots free. Polled events (email, Teams and Slack messages) are always queued, whatever this says - see below. | |
ASSIGNMENT_EVENT_DEDUP_WINDOW_SECONDS | 600 | One run per inbound event on an agent. A second event-triggered run with the same dedup key (a mail's Message-ID, a calendar event and its modification instant, a provider event id) on the same agent within this many seconds is recorded as a skipped run (skipped: duplicate of run <id>, counted in the assignment's filtered events) instead of starting, across the agent's assignments and across delivery paths (a Graph notification and the poll behind it, two mailboxes the mail reached, a delegated pick-up naming the Message-ID). The same window covers an agent account of the same agent on a mailbox the mail reached: whichever of the assignment and the agent account takes the mail first answers it, the other leaves it (the assignment run is recorded as skipped: duplicate of run the agent account <id>, the agent account's activity as already_handled). An assignment's trigger_config.dedup_window_seconds overrides it; 0 turns the dedup off for it. Scheduled runs are not affected. | |
MAIL_SEND_GUARD_WINDOW_SECONDS | 300 | One answer per conversation from a mailbox an agent sends through, the last line behind the dedup above. Before a Microsoft mail tool sends (send_microsoft_email, send_microsoft_draft, a reply draft sent, reply_microsoft_email_in_thread with send=true), it takes a short lock on the conversation for the sending mailbox and looks for a message that mailbox (any agent, any run) already sent in that conversation within this many seconds: its own record of the last send, then the mailbox's Sent Items. Found, the send is refused and the tool answer names the earlier message (when it was sent, its subject, its recipients, its id and link); the agent can pass force_duplicate=true when a second message is really wanted. A message from someone else that arrived in the conversation after the earlier send lets the new send go out (it answers that message); an automatic reply (an out-of-office answer, told by its Auto-Submitted / X-Autoreply / Precedence: auto_reply headers or its "Automatic reply:" subject) does not. A new email's conversation is its subject (reply and forward prefixes dropped) and its To / Cc addresses. 0 turns the guard off. | |
INTEGRATION_EVENT_GRAPH_SUBSCRIPTIONS_ENABLED | true | Deliver Microsoft integration-event assignments (new email, Teams messages, replies and chat messages, calendar changes, email flag changes) through Microsoft Graph change notifications posted to BASE_URL/api/v1/integrations/notifications/microsoft, within seconds instead of on the 5-minute poll. Only effective when BASE_URL is a public https URL (not localhost, a private address or a .local / .internal / .lan host). The scheduler creates each subscription with a random clientState, renews it before it expires and deletes it when the assignment no longer needs it; an assignment whose subscription cannot be created, or lapses, is polled as before, and picks up from the last notified event. false deletes the subscriptions on the next pass and polls everything. | |
ASSIGNMENT_MAX_CONCURRENT_RUNS | 10 | Runs of one assignment started from its queue at once (webhook deliveries, polled and pushed integration events), clamped to 1-50. An assignment's trigger_config.max_concurrent_runs overrides it. To keep up, the cap must exceed deliveries per second times the seconds a run holds its slot: 30 deliveries a minute of 6-22 s runs keep 8 in flight on average. 1 restores one run at a time. | |
ASSIGNMENT_DISPATCH_MAX_PENDING_RUNS | 0 | Queued runs promoted and still waiting for a worker, across the platform. The drain stops there, so a promoted run starts within a reconciler cycle and one busy assignment cannot fill the worker pool ahead of the others. 0 = MAX_CONCURRENT_RUNS. | |
ASSIGNMENT_QUEUE_BACKLOG_SECONDS | 300 | Once an assignment's oldest queued delivery has waited this many seconds, the drain alternates its newest and oldest deliveries, so fresh work does not wait behind the whole backlog (nothing is dropped), and logs Assignment dispatch lag at WARNING at most once a minute. 0 disables both. | |
ASSIGNMENT_DISPATCH_RATE_LIMIT_BACKOFF_SECONDS | 60 | How long an assignment's concurrency cap stays halved after one of its runs met an HTTP 429, from a model provider or an integration. Only that assignment backs off; a 429 met anywhere else (a chat, an evaluation, an embedding) throttles nothing. The window starts at the first 429 and is not extended by the ones that follow. The providers' own retries are unchanged. 0 disables the back-off. | |
ASSIGNMENT_QUEUE_MAX_DEPTH | 20 | Maximum deliveries held per assignment. Bounds the backlog a slow or stuck assignment can accumulate. | |
ASSIGNMENT_QUEUE_OVERFLOW_POLICY | reject | Per-assignment webhook only: what happens to one of its deliveries arriving at a full queue (a queued integration event is never dropped). reject: HTTP 429 + Retry-After, so a sender with retry logic loses nothing. drop_oldest: the oldest waiting delivery is finalized as a skipped run (visible, payload preserved) and the new one takes its slot. drop_newest: the incoming delivery is discarded with a 200 and a warning — no run row is created. | |
ASSIGNMENT_QUEUE_RETRY_AFTER_SECONDS | 30 | Retry-After value returned with the reject policy's 429. | |
ASSIGNMENT_QUEUE_HOLD_ON_AWAITING_HUMAN | true | Whether a run paused for human input holds the queue. true starts nothing more for its assignment until the approval is answered, whatever the cap - bounded and visible, unlike the old silent drop. false lets queued runs start beside a paused run; only safe when a HITL pause leaves no half-written shared state. | |
ASSIGNMENT_QUEUE_DRAIN_BATCH | 20 | Maximum assignments that start queued runs per drain. Only assignments with a free slot are counted: one whose slots are all taken keeps its backlog without taking a turn. The drain runs on every reconciler cycle, on every enqueue and at the end of every run, so the rest follow within a cycle. | |
WEBHOOK_REQUESTS_PER_MINUTE | 60 | Per-assignment delivery throttle, applied before the request body is read. Over-limit deliveries get 429 + Retry-After. Raise it for a high-cadence alert feed — the queue still bounds how many accepted deliveries become runs. | |
WEBHOOK_EXACT_EVENT_MATCHING | false | Event matching of integration-event and webhook triggers. A trigger created on this version, or whose events are chosen again, matches its event exactly: pull_request runs on pull_request.opened, never on pull_request_review.submitted. A trigger saved on an earlier version keeps its prefix match through every other edit and every copy (duplicate, import, catalog clone); its assignment page says which mode it uses and what it matches, with a one-click switch, and the first delivery it matches only by prefix is logged. true applies exact matching to every trigger without editing them; it does not read the old event_type key of an agent-builder trigger, which only that trigger's own switch does. Also in Settings > Access and security ("Exact event matching for every trigger"); the variable, when set, wins and locks the field. See Event matching. | |
WEBHOOK_DEDUP_TTL_SECONDS | 300 | Idempotency window. A delivery whose key was already seen within the window replays the first delivery's response instead of firing a second run. | |
CHAT_EVENT_COALESCE_WINDOW_SECONDS | 6 | One turn per chat conversation (a Teams 1:1 or group chat, a Teams channel thread, a Slack DM, channel or thread). The run of a message starts this many seconds late; a later message of the same sender in the same conversation that finds it still waiting joins its turn (one run, one reply, the messages in order and flagged as merged) instead of starting a second run. An assignment's trigger_config.coalesce_window_seconds overrides it (0-60); 0 turns the window off. |
Assignment auto-pause
| Variable | Required | Default | Description |
|---|---|---|---|
ASSIGNMENT_STALE_REFERENCE_PAUSE_AFTER | 3 | Consecutive scheduled runs failed on a stale integration reference after which the assignment is paused. Re-enabling the assignment starts a fresh count; a scheduled run that succeeds or fails for another reason resets it; manual, webhook and event-triggered runs neither advance nor reset it. Built-in and per-user fan-out assignments are reported, never paused. 0 disables the pause (runs still fail and are still reported). |
Messaging channels
| Variable | Required | Default | Description |
|---|---|---|---|
CHANNEL_AGENT_MENTIONS_ENABLED | false | On Slack, Teams, WhatsApp, Telegram, Discord and Google Chat, let an identified user's @agent-key (an agent's slug, else its hyphenated name) make that agent answer after the routed one, in the same reply - only an agent whose own channel settings let it answer that message (enabled, set to Receive and Publish on that channel, past the bot's receive whitelist, private-conversation and only-mention rules). Each agent that answers counts as one agentic action. false: a channel message is answered by its routed agent alone, whatever it mentions. The web chat's mentions are not affected by this setting. |
Built-in web search
| Variable | Required | Default | Description |
|---|---|---|---|
BUILTIN_BRAVE_SEARCH_API_KEY | empty | The Brave Search API subscription token, created in the Brave Search API dashboard. Set, it seeds the built-in Brave Search integration, the web, news, image and video search of every agent, and the Google one is no longer seeded (it is removed at the next startup). Its web and image tools also answer to the Google tool names (search_google_web, search_google_images), so instructions that name them keep working. Empty by default; with neither key set, the platform has no built-in web search. | |
BUILTIN_GOOGLE_SEARCH_API_KEY | empty | The Google Custom Search credentials of the built-in Google Search integration, as search_engine_id\|\|api_key. Read only when BUILTIN_BRAVE_SEARCH_API_KEY is empty. Google's Custom Search JSON API is closed to new customers and stops on 1 January 2027: set BUILTIN_BRAVE_SEARCH_API_KEY instead before then. Empty by default. |
Microsoft 365 integration
| Variable | Required | Default | Description |
|---|---|---|---|
MICROSOFT_TEAMS_MESSAGE_TEXT_LIMIT | 4000 | The longest text of one message an agent's Teams channel or chat listing shows. A longer message is cut at a word boundary and ends with a [truncated, ...] note giving how many characters are left and the exact call that reads it in full (get_microsoft_channel_message or get_microsoft_chat_message); a message that fits is shown whole. The messages of one listing also share a text budget of 40,000 characters, so on a busy channel the longest messages are cut shorter while the short ones stay whole. A value below 1 fails startup. |
Runners and XTM One Desktop
| Variable | Required | Default | Description |
|---|---|---|---|
RUNNERS_ENABLED | true | Master switch for the whole Runner subsystem: enrollment, the runner transport (WebSocket + long-poll), and the computer_use agent tools. Set false to remove it entirely (every runner endpoint then returns 404 and the Profile tab is hidden). | |
RUNNER_DIST_DIR | runner_dist | Directory of the embedded runner distribution inside the image, populated by CI at image build time. Only needs changing if you repackage the image and relocate the artifacts. Empty/absent (source builds) reports downloads as unavailable. | |
RUNNER_MIN_SUPPORTED_VERSION | Minimum runner binary version accepted at connect (protocol gate). Empty means no floor; a runner below it is told to self-update. Format MAJOR.YYMMDD.SEQ. | ||
RUNNER_MAX_PER_USER | 200 | Cap on active runners a single user (or the company-managed fleet) may have enrolled at once, enforced at enrollment so an unattended roll-out cannot create unbounded records. 0 = unlimited. | |
RUNNER_MAX_INFLIGHT_COMMANDS | 10 | Cap on concurrent in-flight commands per runner; a burst past this is refused with a transient "busy" so parallel tool calls cannot swamp one machine. 0 = unlimited. | |
RUNNER_STRICT_PATH_CONFINEMENT | false | What a restricted runner does with a file command whose path lies inside its allowed folders but leads outside them through a link (symbolic link, junction, mount point). false: it runs, as it always has, with a warning in the command result and the runner log; the security audit (Settings → Security) reports the default while a restricted runner has allowed folders. true: it is refused. The same switch covers a file that is not a regular file - a device (/dev/urandom, a serial port, NUL on Windows), a named pipe or a socket, as the operating system reports the object the command opened, never guessed from its name - on every runner, full control included: false reads and writes it as before, with a warning in the result and the runner log; true refuses it. Needs a runner from this release or later; an older runner ignores it. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
RUNNER_RESULT_WAIT_TIMEOUT_SECONDS | How long an agent's computer_use call waits for a command's result. Unset: as long as the machine may take to report it, counted from the command's delivery - its execution limit (RUNNER_COMMAND_DEFAULT_TIMEOUT_SECONDS + 30 s, the wait for its turn on the machine included), then the 50 s it retries a result upload through a platform restart, plus 5 s. That is 205 s with the default limit, and it ends before the command's lease, so a command the wait gives up on is never sent to the machine again. A number: a fixed wait of that many seconds from dispatch. Either way a call never waits past the time the agent run allows one tool call (300 s at most): when that limit comes first, the tool stops 5 s before it and tells the agent the command may still finish, its output then landing in the machine's command history. Upgrading: the default used to be a fixed 180 s, which could end before a command near its limit whose upload rode out a restart had reported (see UPGRADING.md); set 180 to keep it. |
Relays
| Variable | Required | Default | Description |
|---|---|---|---|
RELAYS_ENABLED | true | Master switch for relays: relay groups, enrollment, the relay transport (WebSocket + long-poll) and routing an integration, an MCP server or a flow HTTP node through a group. Set false to remove them entirely: every relay endpoint returns 404, the Relays page is hidden and nothing is routed - a resource already routed through a group then fails its requests rather than calling directly. | |
RELAY_MIN_SUPPORTED_VERSION | Minimum relay version accepted at connect. Empty means no floor; a relay below it is refused and told to update. Format MAJOR.YYMMDD.SEQ. The security audit lists the relays older than the floor. | ||
RELAY_MAX_PER_GROUP | 50 | Cap on relays enrolled in one group, enforced at enrollment. 0 = unlimited. | |
RELAY_REQUEST_LOG_RETENTION_DAYS | 30 | Days the platform keeps the record of each relayed request (destination host, method, status, size, duration - never a body or a header value), shown on a group's Activity tab. 0 = forever. | |
RELAY_DIST_DIR | relay_dist | Directory of the embedded relay distribution inside the image, populated by CI at image build time. Empty/absent (source builds) reports downloads as unavailable; relays you built yourself still enroll and carry traffic. |
Agentic coding labs
| Variable | Required | Default | Description |
|---|---|---|---|
AGENTIC_LABS_NAMESPACE | The Kubernetes namespace lab pods are created in. Empty keeps the labs off whatever ENABLED_FEATURES says. | ||
AGENTIC_LABS_API_URL | In-cluster address | The Kubernetes API server. Empty uses KUBERNETES_SERVICE_HOST / KUBERNETES_SERVICE_PORT. | |
AGENTIC_LABS_TOKEN_PATH | /var/run/secrets/kubernetes.io/serviceaccount/token | The service-account token, read on every call so a rotated token is used. | |
AGENTIC_LABS_CA_PATH | /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | The CA the API server's certificate is checked against. | |
AGENTIC_LABS_CPU_REQUEST | 250m | CPU requested per container of a lab pod (no limit is set). | |
AGENTIC_LABS_MEMORY_REQUEST | 512Mi | Memory requested per container of a lab pod (no limit is set). | |
AGENTIC_LABS_START_SECONDS | 600 | Seconds a lab pod may take to be scheduled and start its workspace container. | |
AGENTIC_LABS_COPY_SECONDS | 300 | Seconds one attempt of the checkout copy into a lab may take, apart from the start budget. A copy that times out or loses its stream is tried once more on the same pod before the start answers an error. | |
AGENTIC_LABS_IDLE_HOURS | 12 | A lab unused this long is deleted by the hourly sweep. 0 = never. | |
AGENTIC_LABS_DEADLINE_HOURS | 72 | Kubernetes ends a lab pod this old (activeDeadlineSeconds). 0 = never. | |
AGENTIC_LABS_LICENSING_URL | Filigran's licensing server. At every lab start the platform asks its /api/ci route for one short-lived ci Enterprise Edition licence per entry of AGENTIC_LABS_LICENCES. | ||
AGENTIC_LABS_LICENSING_TOKEN | The licensing server's API-user token (permission to issue CI licences). Kept on the platform: it never reaches a lab pod, an agent or a log. | ||
AGENTIC_LABS_LICENCES | ENV_VAR:product name,...: each lab container gets the licence of that product in that variable. A licence that cannot be issued never stops the lab; the start answer names it. | ||
AGENTIC_LABS_LICENCE_HOURS | 24 | Hours each lab licence is valid for (at most 168). | |
AGENTIC_LABS_MODEL_KEY_ACCOUNT | Email of the account whose short-lived personal API key, scoped to the LLM proxy only, is minted for every lab that declares LAB_MODEL = "live". The key is handed to the pod as LAB_MODEL_API_KEY and revoked when the lab stops; no provider credential ever reaches a lab. | ||
AGENTIC_LABS_MODEL_BASE_URL | The LLM proxy as a lab reaches it (https://<host>/v1), handed as LAB_MODEL_BASE_URL. The host must be in the labs' egress allow-list. | ||
AGENTIC_LABS_MODEL_NAMES | Comma-separated model names a live lab's backend offers, handed as LAB_MODEL_NAMES. | ||
AGENTIC_LABS_MODEL_KEY_HOURS | 12 | Hours a lab's model key is valid for (at most 72); revoked earlier when the lab stops or is reaped. |
Presentation export
| Variable | Required | Default | Description |
|---|---|---|---|
PRESENTATION_RENDER_BASE_URL | Automatic | Origin the headless browser loads the render page from. Empty means automatic: the unified image uses its own loopback address (http://127.0.0.1:4000), so no request goes through the ingress and the pod does not need to resolve its own public hostname; a split development setup (Vite dev server + API) falls back to FRONTEND_URL. | |
PRESENTATION_LAYOUT_CHECK_ENABLED | true | Render a deck in the same headless browser right after an agent saves it and report what the schema cannot see — a slide body shrunk to fit, text cut by its box, text painted past the slide's edge — back to the agent in the tool result, so it fixes the slide before answering. Set to false to skip the check everywhere (tool result, get_presentation, POST .../layout-check; the viewer then offers no Layout check button), for example on a deployment without the headless browser. |
Browser profiles
| Variable | Required | Default | Description |
|---|---|---|---|
BROWSER_PRIVATE_TARGETS | false | Let a browser profile open an application on a private network, on the hosts it declares (operator-network policy: loopback, link-local and cloud metadata addresses stay refused): its sign-in, the agents browsing with it and Video Studio recordings. Also in Settings > Access and security, where the variable, when set, wins and locks the field. It replaces VIDEO_STUDIO_PRIVATE_TARGETS, which is no longer read: a value an administrator saved in Settings > Access and security moves over by itself, a variable must be renamed. |
Waiting arcade
| Variable | Required | Default | Description |
|---|---|---|---|
ARCADE_ENABLED | true | Offer the playable arcade and its leaderboard. Set to false to keep only the self-playing waiting animation: every /api/v1/arcade route then answers 404, the chat offers no way to take control, and a ?arcade=play link (the invitation of the chat embedded in OpenCTI, OpenAEV and OpenCRQ) just opens the page. This is the only switch: users cannot hide the game themselves, and it is left out only for a user whose system asks for reduced motion. |
Skill loading
| Variable | Required | Default | Description |
|---|---|---|---|
SKILL_LOAD_MAX_CHARS | 60000 | Maximum characters returned by one load_skill call. Longer content is truncated with an explicit marker naming how much was cut. | |
SKILL_LOAD_BUDGET | 8 | Maximum number of distinct skills one run may load. Re-loading an already-loaded skill never counts again. 0 = unlimited. | |
SKILL_RESOURCE_MAX_BYTES | 40000 | Maximum bytes returned by one read_skill_resource call (files bundled with a packaged skill). |
Advanced tuning
The other variables the settings of the code read, which XTM One's own configuration guide does not list: mostly limits, timeouts, intervals and retries whose defaults suit most deployments. A page of this documentation that needs one names it; change the others only when a log or the support asks for it.
| Variable | Required | Default | Description |
|---|---|---|---|
PLATFORM_ID | Optional forced platform instance ID (UUID). | ||
FILIGRAN_AI_BASE_URL_STIX | Filigran AI extraction endpoints (override builtin integration defaults). | ||
FILIGRAN_AI_BASE_URL_TTP | The address of the TTP extraction service the built-in Filigran AI integration calls. Unset, it is https://ttpextraction.ariane.filigran.io; when set, it wins over the address stored on the integration, and the worker logs the difference at INFO. | ||
TOOL_APPROVALS_PLATFORM_DEFAULT | require | The choice of Administration > Settings > Access and security > Tool approvals, Approval for connected platforms, that XTM One records for an OpenCTI, OpenAEV or OpenCRQ the first time it registers: require (the default), its tools that change data wait for a person while the platform cannot show an approval prompt; skip, they run. It never changes the choice of a platform already registered, which an administrator changes in that screen. | |
TOOL_APPROVALS_ENABLED | Seeds the platform-wide approval kill switch when the platform settings row is first created — an upgrade, or a fresh install. | ||
DEBUG | false | Reserved to development: leave it unset. | |
DB_POOL_PRE_PING | true | Verify connection liveness before use | |
EXTRACTION_MAX_OPERATIONS | 8 | Bounds for the declarative per-agent prediction extractor. | |
EXTRACTION_MAX_PATH_SEGMENTS | 16 | Reserved to development: leave it unset. | |
EXTRACTION_MAX_SOURCE_BYTES | 1048576 | 1 MiB | |
EXTRACTION_MAX_SAMPLE_BYTES | 262144 | 256 KiB | |
EXTRACTION_MAX_PARSE_DEPTH | 32 | Reserved to development: leave it unset. | |
EXTRACTION_MAX_VALUES | 2000 | Reserved to development: leave it unset. | |
EXTRACTION_MAX_VALUE_CHARS | 200 | Reserved to development: leave it unset. | |
REDIS_SOCKET_CONNECT_TIMEOUT | 5 | Seconds to wait for TCP connect | |
REDIS_SOCKET_TIMEOUT | 5 | Seconds to wait for response | |
REDIS_HEALTH_CHECK_INTERVAL | 15 | Seconds between liveness pings | |
REDIS_RETRY_ON_TIMEOUT | true | Auto-retry on socket timeout | |
MAX_CONCURRENT_SUB_AGENT_TASKS_PER_RUN | 5 | Per-orchestrator-run cap: a single agent run may not hold more than this many sub-agent tasks concurrently. | |
DELEGATED_PARENT_CONSULT_LIMIT | 3 | Questions a delegated background task may ask its direct parent (the agent that spawned it, when it is one of the task agent's consult peers) through consult_agent in one run. | |
AGENT_SELF_FANOUT_ENABLED | true | Self-fan-out: allow an agent to spawn parallel background copies of ITSELF (target self) to parallelise a large/independent workload — even when it has no peer handover agents configured. | |
AUTONOMOUS_MAX_WAITING_INPUT_RECHECKS | 0 | Max consecutive UNANSWERED waiting_input rechecks before a BUILD (plan / author-scenario) run is stopped with a clear "operator did not answer" reason. | |
ORCHESTRATION_CANCEL_POLL_SECONDS | 2 | The same fast cancel poll for the assignment, sub-agent, flow and evaluation adapters, so an emergency stop aborts their loop between iterations instead of at the lease heartbeat (~20s). | |
PANIC_EMERGENCY_RATE_LIMIT | 10 | Attempts per client IP per window on the session-less emergency stop, counted before the token is checked. | |
PANIC_EMERGENCY_RATE_WINDOW_SECONDS | 600 | The window, in seconds, over which PANIC_EMERGENCY_RATE_LIMIT counts the attempts of one client IP address on the emergency stop with its token. The default, 600, allows 10 attempts per 10 minutes. | |
AUTONOMOUS_MAX_NO_PROGRESS_CYCLES | 6 | Forward-progress (convergence) guard. | |
SCHEDULED_ASSIGNMENT_SPREAD_SECONDS | 0 | OPTIONAL deterministic per-assignment spread window for schedule-triggered runs (OFF by default). | |
FANOUT_SPREAD_WINDOW_SECONDS | 3600 | Per-user fan-out spread window (seconds). | |
ASSIGNMENT_TRANSIENT_RETRY_MAX | 2 | Automatic retry of runs that failed on a TRANSIENT LLM provider error (rate limit / quota, 5xx overload/outage, connection failure) after the in-call retries and provider failover were already exhausted. | |
ASSIGNMENT_TRANSIENT_RETRY_BASE_SECONDS | 120 | The delay, in seconds, before the first automatic retry of an assignment run that failed on a temporary model provider error (120 by default). It doubles at each further retry, up to ASSIGNMENT_TRANSIENT_RETRY_MAX_DELAY_SECONDS, and each wait is drawn at random between half and all of it so failed runs do not retry together. | |
ASSIGNMENT_TRANSIENT_RETRY_MAX_DELAY_SECONDS | 900 | The longest delay, in seconds, before an automatic retry of an assignment run that failed on a temporary model provider error (900, 15 minutes, by default). A value under ASSIGNMENT_TRANSIENT_RETRY_BASE_SECONDS is raised to it. | |
WORKER_DEQUEUE_TIMEOUT | 30 | Upper bound (seconds) for a single blocking dequeue (Redis BLMOVE). | |
WORKER_DOCUMENT_PROCESSING_CONCURRENCY | 3 | Max concurrent document embedding jobs within one worker process | |
WORKER_DOCUMENT_JOB_TIMEOUT | 1200 | Max seconds per document job | |
WORKER_DOCUMENT_JOB_RETRIES | 3 | Retry count for document job failures/timeouts | |
WORKER_DOCUMENT_JOB_RETRY_DELAY_SECONDS | The delay, in seconds, before a document processing job that failed or timed out is retried (5 by default, fractions accepted). With WORKER_DOCUMENT_JOB_RETRY_BACKOFF on, it grows exponentially from one retry to the next. | ||
WORKER_DOCUMENT_JOB_RETRY_BACKOFF | true | Enable exponential backoff for document job retries | |
WORKER_DOCUMENT_SLOW_WARNING_SECONDS | 300 | Emit warning when one document job runs longer than this | |
DEFAULT_THREAD_POOL_MAX_WORKERS | 0 | asyncpg resolves DNS for every new DB connection on asyncio's default ThreadPoolExecutor, which is ALSO shared by every asyncio.to_thread() / run_in_executor(None, ...) call (S3/MinIO file I/O, the synchronous Bedrock SDK, docx rendering, SMTP, RSS, ...). | |
PARSE_THREAD_POOL_MAX_WORKERS | 2 | CPU-bound document parsing (pypdf, python-docx, openpyxl, xlrd, python-pptx, trafilatura/BeautifulSoup) is offloaded to its OWN small executor (see core/parse_offload.py) so a burst of multi-minute parses can neither block the event loop nor starve the default executor that serves asyncpg DNS resolution. | |
EVENT_LOOP_WATCHDOG_ENABLED | true | Logs a WARNING with the blocking stack (sampled from a sidecar thread) whenever the event loop stops being scheduled for longer than the threshold, so a wedged pod produces actionable logs instead of silence before the kubelet kills it. | |
EVENT_LOOP_STALL_THRESHOLD_SECONDS | 2.0 | How long, in seconds, a platform or worker process may stay blocked before the watchdog logs a WARNING with the code that blocks it (2 by default). Values are clamped between 0.5 and 60; EVENT_LOOP_WATCHDOG_ENABLED=false turns the watchdog off. | |
EMBEDDING_AUTO_RETRY_ENABLED | true | When a document fails to embed for a retryable reason (provider misconfigured / down, transient network error, empty vectors), it is automatically re-tried by the autonomous recover_failed_documents sweeper with exponential backoff + jitter — no manual reprocess needed. | |
EMBEDDING_AUTO_RETRY_BASE_DELAY_SECONDS | 300 | Base backoff before the first auto-retry; doubles each subsequent attempt (base * 2^retry_count), capped at max_delay. | |
EMBEDDING_AUTO_RETRY_MAX_DELAY_SECONDS | 1800 | 30 min cap (was 6 h): transient infra waves (DDL lock storms, provider blips) make a document accumulate retries quickly, and a 6 h cap then parked it in error — with the dashboard warning banner up — for hours after the cause had cleared. | |
EMBEDDING_AUTO_RETRY_JITTER_SECONDS | 60 | Random jitter (0..N seconds) added to each scheduled retry so a large backlog re-embeds in a spread-out fashion instead of a thundering herd. | |
EMBEDDING_AUTO_RETRY_MAX_ATTEMPTS | 0 | Max automatic retries per document. | |
EMBEDDING_AUTO_RETRY_BATCH_SIZE | 100 | Max documents re-enqueued per sweep tick (bounds worker / Redis load). | |
EMBEDDING_STALE_AUTO_REMEDIATION_ENABLED | true | After an admin changes the platform embedding provider/model/dimensions, previously-embedded ready documents whose stored embeddings no longer match the new target are automatically re-embedded by the autonomous recover_stale_documents sweeper — the same work the dashboard "Re-embed all" button does, but without manual intervention. | |
EMBEDDING_STALE_REMEDIATION_BATCH_SIZE | 100 | Max documents re-embedded per stale-remediation sweep tick (bounds worker / Redis load on a large corpus after a config change). | |
RECONCILER_INTERVAL_SECONDS | 2.0 | The reconciler loop runs in the worker process and is the single scheduler/recovery contract for all long-running jobs (assignment dispatch, evaluation runs, sub-agent tasks). | |
ORCHESTRATION_LEASE_SECONDS | 60 | Lease validity; heartbeated at lease/3 while running | |
ORCHESTRATION_DEFAULT_MAX_ATTEMPTS | 3 | Claims before a crashed execution dead-letters | |
ORCHESTRATION_CLAIM_BATCH | 20 | Max executions/outbox events claimed per adapter per tick | |
ORCHESTRATION_GRACE_SECONDS | 120 | Extra slack added to job timeout when computing deadline_at | |
RECONCILER_HEARTBEAT_PATH | Per-pod reconciler liveness heartbeat. | ||
RECONCILER_HEARTBEAT_MAX_AGE_SECONDS | 120 | The age, in seconds, past which the worker's liveness check (python -m app.healthcheck reconciler) finds the reconciler heartbeat file stale and fails, so Kubernetes restarts the worker (120 by default). Keep it well above RECONCILER_INTERVAL_SECONDS. | |
RECONCILER_POOL_RECOVERY_AFTER_FAILURES | 3 | In-process self-recovery for the reconciler. | |
RECONCILER_UNHEALTHY_RESTART_SECONDS | 600 | Last-resort restart valve. | |
FLOW_RUN_TIMEOUT_SECONDS | 86400 | Flow execution. | |
STALE_IN_PROCESS_RUN_SECONDS | 900 | Shorter safety-net deadline for in-process tracing runs specifically (assignment_id IS NULL, no orchestration execution row — created by agent_chat for chat-handover / consult / transfer scenarios). | |
HANDED_BACK_RESUME_SECONDS | 180 | How long, in seconds, an assignment run handed back by a stopping worker (a rollout, a restart, a node drain) waits for another worker to resume it before the platform makes it due again (180, 3 minutes, by default). Values under 60 are raised to 60. | |
HANDED_BACK_ORPHAN_SECONDS | 300 | How long, in seconds, a handed-back assignment run may stay without a worker before the platform fails it and releases the work items it held (300, 5 minutes, by default). A run whose execution ended or disappeared is failed as soon as HANDED_BACK_RESUME_SECONDS has passed. A value under HANDED_BACK_RESUME_SECONDS is raised to it. | |
INTEGRATION_EVENT_JIRA_WEBHOOKS_ENABLED | true | Registers a Jira dynamic webhook for each enabled assignment triggered by a Jira event, so that Jira calls XTM One as soon as an issue changes instead of waiting for the 60-second poll. true by default. It takes effect only when the Jira integration is connected with OAuth 2.0, BASE_URL is a public https address Jira can reach (not localhost nor a private IP address), and the trigger filters on a project, issue type, status or assignee; otherwise the assignment keeps the poll. Once its webhook has delivered, the assignment is still polled every 15 minutes, as a safety net. XTM One refreshes each webhook before Jira's 30-day expiry and deletes it with its assignment. Set it to false when Jira cannot reach XTM One, or to read Jira by polling only: the webhooks already registered are deleted at their next check, within 6 hours. | |
KB_SYNC_TIMEOUT_SECS | 1800 | Max seconds per KB source sync run. | |
KB_SYNC_STALE_AFTER_SECS | 600 | Maximum time a sync may go WITHOUT reporting progress (a heartbeat) before reset_stale_syncs considers it stuck/orphaned and resets it. | |
KB_SYNC_HEARTBEAT_INTERVAL_SECS | 60 | Cadence at which a running sync updates sync_heartbeat_at so the stale sweeper can tell a live sync apart from an orphaned/hung one. | |
KB_SYNC_RETRY_BASE_DELAY_SECONDS | 300 | When a scheduled KB source sync fails or times out, the scheduler schedules an automatic retry with exponential backoff + jitter (base * 2^(failure_count - 1), capped at max_delay) instead of waiting the full sync interval (which could be daily/weekly) or hammering a persistently-failing source every 60s tick. | |
KB_SYNC_RETRY_MAX_DELAY_SECONDS | 86400 | 24 h cap (genuine errors) | |
KB_SYNC_STALE_RETRY_MAX_DELAY_SECONDS | 1800 | A stuck/stale reset is usually a transient infrastructure event (a worker restart) rather than the source's own fault, so it gets a LOWER retry cap than a genuine error: a reset source retries within minutes and never escalates to the multi-hour backoff a genuinely broken source eventually reaches. | |
KB_SYNC_RETRY_JITTER_SECONDS | 60 | Random jitter (0..N seconds) added to each scheduled retry so many sources that failed together (e.g. | |
KB_SYNC_RETRY_ALERT_THRESHOLD | 5 | Consecutive-failure count at which the scheduler escalates to an error-level "persistent failure" log line and an admin-facing alert (KB activity event + company SSE broadcast) so operators can act on a source that repeatedly fails to sync. | |
KB_SYNC_STALE_QUARANTINE_THRESHOLD | 5 | Consecutive stale-reset count at which the scheduler quarantines (disables) a sync source that repeatedly gets stuck in 'syncing' without a heartbeat. | |
KB_SYNC_FAILURE_QUARANTINE_THRESHOLD | 10 | Consecutive-error count at which the scheduler quarantines (disables) a sync source that keeps returning clean failures — catching permanently misconfigured sources (e.g. | |
KB_SYNC_PERM_FAIL_QUARANTINE_THRESHOLD | 5 | Consecutive permanent-error count at which the scheduler quarantines (disables) a sync source that repeatedly returns permanently- unresolvable errors (HTTP 404/410 - the configured path or resource no longer exists). | |
KB_SYNC_PARTIAL_FAIL_ALERT_THRESHOLD | 3 | Consecutive partial-page-failure count at which the scheduler emits a one-shot alert for a sync source that keeps returning some page-level errors (e.g. | |
SKILL_REFRESH_QUARANTINE_THRESHOLD | 3 | Consecutive 4xx-failure count at which the skill auto-refresh scheduler stops retrying a URL-based skill whose remote source returns permanent errors (e.g. | |
SKILL_REFRESH_AUTH_FAIL_ALERT_THRESHOLD | 3 | Consecutive authentication-failure count at which the skill auto-refresh scheduler raises an operator-facing ERROR alert for a skill whose bound GitHub credential keeps being rejected (401/403, or a 404 that the repo probe attributes to the credential). | |
ASSIGNMENT_AUTH_FAIL_QUARANTINE_THRESHOLD | 3 | Consecutive-run count at which the assignment scheduler auto-disables (quarantines) a scheduled assignment whose integration tools keep returning authentication/permission failures across separate runs — catching expired / revoked OAuth tokens or API keys that would otherwise burn cycles indefinitely until a human notices. | |
MODEL_PRICES_SOURCE_PATH | Optional override for the model-prices source file used by services.tracing.price_loader. | ||
MODEL_PRICES_GIT_SYNC_ENABLED | false | Enable periodic pull of LiteLLM's model pricing/context map from the configured URL into a local JSON file. | |
MODEL_PRICES_GIT_SYNC_URL | Raw JSON URL to pull. | ||
MODEL_PRICES_GIT_SYNC_TARGET_PATH | Local file path receiving pulled JSON payloads. | ||
MODEL_PRICES_GIT_SYNC_INTERVAL_MINUTES | 360 | Pull cadence in minutes (autonomous tick runs every 60s). | |
MODEL_PRICES_GIT_SYNC_TIMEOUT_SECS | 30 | HTTP timeout for each pull attempt. | |
TRACING_QUEUE_MAXSIZE | 100 | The number of traces each process holds in memory while they wait to be written to the trace store (100 by default). When the queue is full, further traces wait in a Redis overflow buffer instead. | |
TRACING_OVERFLOW_TTL_SECONDS | 86400 | How long, in seconds, the Redis overflow buffer of traces is kept after the last trace was added to it (86400, 24 hours, by default). Traces still in it when it expires are lost. | |
TRACING_OVERFLOW_MAX_ENTRIES | 10000 | The number of traces the Redis overflow buffer holds (10000 by default). Past it, the oldest traces are dropped to make room for the new ones. | |
TRACING_DB_POOL_SIZE | 5 | The number of PostgreSQL connections each process keeps open to write traces, apart from the platform's own pool (5 by default). Count them, with TRACING_DB_MAX_OVERFLOW, in the connections your PostgreSQL allows. | |
TRACING_DB_MAX_OVERFLOW | 5 | The number of extra PostgreSQL connections each process may open to write traces when its trace pool is busy (5 by default), closed again once they are free. | |
CLICKHOUSE_HOST | localhost | The host name of the ClickHouse server that stores traces when TRACING_STORE_PROVIDER is clickhouse, reached on its HTTP interface (localhost by default). | |
CLICKHOUSE_PORT | 8123 | The port of the ClickHouse HTTP interface (8123 by default). | |
CLICKHOUSE_USERNAME | default | The ClickHouse user that writes and reads the traces (default by default). Left at default with an empty CLICKHOUSE_PASSWORD, ClickHouse counts as not configured, and Settings > Usage and quotas > Observability reports the trace store unhealthy. | |
CLICKHOUSE_PASSWORD | The password of CLICKHOUSE_USERNAME on the ClickHouse server. Treat it as a secret. | ||
TRACE_PAYLOAD_OFFLOAD_THRESHOLD_BYTES | 1048576 | Trace payloads are audit material and are never truncated on the durable path. | |
TRACE_PAYLOAD_HARD_MAX_BYTES | 33554432 | 32 MiB | |
TRACE_MEDIA_OFFLOAD_ENABLED | true | Media blobs (base64 images, PDFs) inside a trace payload are written to object storage individually and replaced by a reference carrying their content type, byte size and digest (see services/tracing/media_offload.py). | |
KB_SEARCH_STATEMENT_TIMEOUT_MS | 5000 | Per-statement timeout applied to KB vector + hybrid search queries. | |
EMBEDDING_RESET_STATEMENT_TIMEOUT_SECS | 600 | Per-statement timeout (seconds) applied to the bulk KB embedding purge that runs when the platform embedding model/dimensions change (see _reset_kb_embeddings_for_new_model in api/v1/settings.py). | |
JWT_ALGORITHM | HS256 | The algorithm that signs, with SECRET_KEY, the session tokens and the other tokens the platform issues (HS256 by default). Since SECRET_KEY is a shared secret, use an HMAC algorithm (HS256, HS384 or HS512); changing it ends every session in progress. | |
JWT_EXPIRE_MINUTES | The absolute lifetime of a web session, from its sign-in, however much it is used (7 days by default), and how long one may go unused before it ends (0 = no idle timeout, the default). | ||
SESSION_IDLE_TIMEOUT_MINUTES | 0 | How long, in minutes, a web session may go unused before it ends and the person signs in again; 0, the default, sets no idle timeout. Also in Settings > Access and security; the variable, when set, wins and locks the field. | |
MIN_PASSWORD_LENGTH | 8 | Enforced on registration, invitation registration, password change, and admin-created local accounts. | |
TERMS_OF_USE_ENABLED | true | A blocking consent screen shown after authentication until the user explicitly accepts the current Terms of Use. | |
TERMS_OF_USE_VERSION | 2026-07-14 | The version of the Terms of Use every user accepts on a blocking screen after signing in (2026-07-14 by default). Changing it shows the screen again to every user on their next request; left empty, the screen is not shown and a warning is logged at startup. | |
TERMS_OF_USE_URL | https://filigran.io/ai-terms/ | The address of the Terms of Use document the acceptance screen links to (https://filigran.io/ai-terms/ by default). | |
TERMS_OF_USE_EXEMPT_EMAILS | A comma-separated list of email addresses the Terms of Use screen never gates, such as ops@example.com,support@example.com: the operator accounts that run a hosted platform, so they can sign in from the first day without accepting the terms on the customer's behalf. Matched exactly, ignoring case, against the signed-in user's email; every other user still accepts the terms. Empty by default. | ||
PRESENTATION_PUBLIC_LINKS_ENABLED | true | Whether a deck's managers may give it a public link that opens it read-only for anyone, without an account. | |
DASHBOARD_PUBLIC_LINKS_ENABLED | false | Whether a custom dashboard's managers may publish it as a link anyone can open without an account, showing a snapshot of its data read with the publisher's access. | |
WEB_FETCH_TRUSTED_CA_CERTIFICATES | PEM certificates the web page fetches trust on top of the system store: the certificate of a private certificate authority, or a host's self-signed certificate, so that web_fetch, the knowledge base URL crawl and Deep Investigation reach an internal site such as https://wiki.example.com. Verification stays on and the host name must still match the certificate. Up to 20 certificates and 64000 characters, each between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----; a private key, other text or a certificate that cannot be read stops the platform at startup. Empty by default: the system store alone. Also in Settings > Access and security > Security options, as Trusted certificates for web fetches; the variable, when set, wins and locks the field. | ||
RATE_LIMIT_FAIL_MODE | open | What happens when the backing store (Redis / DB) is unreachable while a rate-limit or quota check runs: "open" (default) — skip the check and let the request through; an infrastructure hiccup never blocks users, but limits are unenforced for its duration. | |
QUOTA_FAIL_MODE | open | "open" | "closed" | |
A2A_TASK_CREATE_RATE_LIMIT | 10 | --- A2A inbound server (offered exactly while agentic chat is; see api.v1.platform.is_chat_enabled) --- Rate limits are the ONLY control this feature places on external load: the specification deliberately sets no latency target and no cap on concurrent external runs, so total external submission rate is bounded by (number of exposures x a2a_task_create_rate_limit). | |
A2A_TASK_READ_RATE_LIMIT | 1800 | Sized from measurement, not from an estimate of how partners poll: Foundry — the primary target platform — polls tasks/get in a zero-backoff loop MEASURED at 8-10 requests per SECOND (ngrok capture, 2026-08-20), and surfaces any 429 to its user as a failed delegation rather than honouring Retry-After. | |
A2A_RATE_LIMIT_WINDOW_SECONDS | 60 | The window, in seconds, over which the A2A rate limits are counted (A2A_TASK_CREATE_RATE_LIMIT, A2A_TASK_READ_RATE_LIMIT and the limit per client IP address before authentication). 60 by default, so the limits are per minute. | |
A2A_UNAUTHENTICATED_RATE_LIMIT | 60 | Per client IP, BEFORE authentication - covering the anonymous card fetch and the jsonrpc requests that fail auth, which the per-registration limits above (bound to a verified credential) cannot reach. | |
A2A_MAX_REQUEST_BYTES | 1048576 | Two hard ceilings on what one submission may cost, because the rate limits bound the NUMBER of requests and say nothing about the size of each. | |
A2A_MAX_MESSAGE_CHARS | 100000 | flattened prompt text | |
A2A_BLOCKING_SEND_TIMEOUT_SECONDS | 120 | A blocking send holds the HTTP response open until the task is terminal, polling the projection at the interval below. | |
A2A_BLOCKING_POLL_INTERVAL_SECONDS | 1.0 | How often, in seconds, a blocking A2A request checks whether its task has finished while it holds the partner's connection open (1 by default). | |
A2A_DEDUP_WINDOW_SECONDS | 86400 | Task creation deduplicates on the client-minted message id. | |
A2A_RUN_LEASE_SECONDS | 900 | How long an external run may hold its lease without a heartbeat before the reaper drives it to a terminal state. | |
A2A_CANCEL_POLL_SECONDS | 15 | How often a running external task checks whether it has been cancelled (a2a.tasks._supervise_run). | |
A2A_REAP_INTERVAL_SECONDS | 60 | Cadence of the loop that enforces the lease (main._a2a_reaper_loop). | |
A2A_TASK_MAX_LIFETIME_SECONDS | 14400 | Total life of a task, distinct from the lease above. | |
A2A_PUSH_MAX_ATTEMPTS | 5 | Push notifications: how hard the platform tries to reach a partner's callback, and how many callbacks one task will hold. | |
A2A_PUSH_CONFIGS_PER_TASK | 5 | The number of push notification callbacks a partner may register on one A2A task (5 by default); a further one is refused. | |
A2A_CLIENT_SWEEP_INTERVAL_SECONDS | 3600 | Availability is not a setting here: A2A is offered exactly while agentic chat is (api.v1.platform.is_chat_enabled), the same gate as the inbound half. | |
A2A_CLIENT_VERDICT_STALENESS_SECONDS | 900 | The age past which a delegation MUST re-verify before submitting, and MUST refuse if that re-verification cannot complete. | |
A2A_CLIENT_DELEGATION_CEILING_SECONDS | 300 | Ceiling on ONE delegation attempt, further capped by whatever remains of the calling run's own deadline. | |
A2A_CLIENT_DELEGATION_ABANDONED_SECONDS | 14400 | How long a delegation may stay outstanding — go without reaching a terminal state — before it is ended and its caller told so. | |
A2A_CLIENT_RESPONSE_MAX_BYTES | 1048576 | Largest partner response body ingested before the delegation fails (FR-027). | |
A2A_CLIENT_BREAKER_THRESHOLD | 5 | Consecutive TRANSIENT failures that open the circuit, and how long it stays open before the first retry. | |
A2A_CLIENT_BREAKER_COOLDOWN_SECONDS | 300 | How long, in seconds, delegations to a partner agent stop after A2A_CLIENT_BREAKER_THRESHOLD consecutive temporary failures (300 by default). Each further failure doubles it, up to one hour. | |
A2A_CLIENT_GRACE_SECONDS | 15 | How long an attempt waits before handing a live task back, WHEN a callback will report the outcome. | |
A2A_CLIENT_FLOOR_INTERVAL_SECONDS | 900 | The AGE at which the floor will ask a partner directly about an outstanding delegation — not how often it looks, which is a2a_client_sweep_interval_seconds, the loop that runs it. | |
A2A_CLIENT_CALLBACKS_REACHABLE | Whether a partner can reach this deployment to call back. | ||
A2A_CLIENT_CALLBACK_BASE_URL | Where a partner should call back, when that is not base_url — a deployment a partner reaches at a different address than a browser does. | ||
MCP_OAUTH_TOKEN_RATE_LIMIT | 1200 | Token-endpoint requests per hour, bucketed per client IP. | |
INVITATION_EXPIRE_HOURS | 168 | Default lifetime of an admin-generated invitation link (7 days). | |
PASSWORD_RESET_EXPIRE_HOURS | 24 | Lifetime of a password reset link (24 hours). | |
API_KEY_MAX_LIFETIME_DAYS | 0 | The longest a personal API key created or re-dated from then on may live, in days; 0 = no maximum. | |
S3_PRESIGNED_EXPIRY | 3600 | Pre-signed URL expiry in seconds (1 hour) | |
S3_CONNECT_TIMEOUT | 10 | Per-operation timeouts (seconds) for the S3/MinIO HTTP client. | |
S3_READ_TIMEOUT | 60 | How long, in seconds, a request to the S3 endpoint may wait between two pieces of data before it fails (60 by default). It bounds a stalled object store, not the length of a large transfer. | |
OBSERVABILITY_COST_DATA_ENABLED | true | Controls whether financial cost data is exposed in observability UI. | |
PROMPT_VERSION_RETENTION_COUNT | 0 | Retention applies uniformly to ALL versioned snapshot types: - prompt_versions (per prompt_id) - prompt_versions rows that snapshot agent personas (per agent_id, where prompt_id is NULL) - agent_config_versions (per (agent_id, field_name) — covers temperature / max_iterations / reasoning_effort / etc.) - skill_versions (per skill_id) All four pathways call _enforce_retention with this value, so a single knob keeps history bounded across the whole versioning surface. | |
SHARED_STATE_STALE_AFTER_DAYS | 14 | Shared state is a durable cross-run key -> value store agents read/write. | |
SHARED_STATE_RESOLVED_RETENTION_DAYS | 30 |
| |
SHARED_STATE_ARCHIVE_RETENTION_DAYS | 14 | How long, in days, the items an agent moves into an archive entry of shared state are kept before the platform's cleanup sweep deletes them (14 by default). An archive entry stays active, so SHARED_STATE_RESOLVED_RETENTION_DAYS never purges it; 0 keeps archived items until an agent drops them. | |
SHARED_STATE_VALUE_SOFT_LIMIT_CHARS | 32768 | The size, in characters of its JSON, past which a shared state value is flagged (32768 by default). The write still lands, and the agent that reads the value back gets a warning naming its largest keys. 0 turns the warning off. | |
SHARED_STATE_VALUE_HARD_LIMIT_CHARS | 65536 | The size, in characters of its JSON, past which a write to a shared state value is refused, unless the write makes the value smaller (65536 by default). A write to an archive entry drops its oldest archived items instead, and the cleanup sweep compacts an archive already over it. 0 turns the limit off. | |
SHARED_STATE_LIST_MAX_ITEMS | 500 | The number of items a top-level list of a shared state value may hold (500 by default). A write that leaves a list longer than this, and longer than it was, is refused; a write to an archive entry drops its oldest items instead. 0 turns the cap off. | |
WORK_ITEM_STALE_AFTER_HOURS | 24 | Work items are a durable, owned, claimable agent-to-agent task queue. | |
WORK_ITEM_ABANDONED_AFTER_DAYS | 14 |
| |
WORK_ITEM_RESOLVED_RETENTION_DAYS | 30 |
| |
WORKSET_RESOLVED_RETENTION_DAYS | 7 | A workset is a WORKSPACE, not a deliverable: a scoped corpus an agent builds to answer one question, holding documents, chunks and vectors. | |
WORKSET_SWEEP_BATCH | 200 |
| |
WORKSET_IMPLICIT_IDLE_DAYS | 30 | How long, in days, a workset the platform builds on its own for an agent's chat or an assignment (an implicit workset, never one a flow names) is kept after its last use (30 by default). Each use pushes the date back; past it, the cleanup sweep deletes the workset with its documents. 0 keeps implicit worksets until they are resolved. | |
WORKSET_IMPLICIT_BUDGET_WINDOW_HOURS | 24 | The window, in hours, over which the automatic summarization budget of an implicit workset is counted (24 by default): the budget starts again every window, so a long-lived agent never ends up with a workset it can no longer summarize. 0 makes the budget a ceiling for the workset's whole life, as for a workset a flow names. | |
FLOW_EVENT_RETENTION_DAYS | 30 | Flow event retention. | |
FLOW_EVENT_SWEEP_BATCH | 2000 |
| |
WORK_ITEM_DISPATCH_PER_TICK | 5 |
| |
WORK_ITEM_MAX_DISPATCH_ATTEMPTS | 5 |
| |
SCHEDULED_WORK_ITEMS_ENABLED | true | Scheduled work items: an item whose payload.action the platform runs at due_at, with no assignment and no flow (services/scheduled_work_items.py). | |
PHONE_NOTIFICATION_CONTENT | full | What a notification shows on a linked phone. full, the default, shows its title and text, encrypted to the phone so the push service cannot read them; minimal shows only "New notification", with no Approve or Reject button. Any other value stops the platform at startup. Also in Settings > Access and security > Security options; the variable, when set, wins and locks the field. | |
COMPANION_PIN_REQUIRED | false | Set it to true to make every person unlock the mobile companion with a PIN of their own before it shows or approves anything; a person without a PIN sets one on their phone first. Off by default, each person chooses in their profile. Also in Settings > Access and security > Security options; the variable, when set, wins and locks the field. | |
SCHEDULED_WORK_ITEM_GRACE_MINUTES | 15 |
| |
SCHEDULED_WORK_ITEM_MAX_ATTEMPTS | 3 |
| |
SCHEDULED_WORK_ITEM_RETRY_SECONDS | 60 |
| |
SCHEDULED_WORK_ITEM_DISPATCH_PER_TICK | 50 |
| |
SCHEDULED_WORK_ITEM_MAX_HORIZON_DAYS | 366 |
| |
CORS_ORIGINS | The web origins whose pages may call the API from a browser with the user's credentials, as a JSON list such as ["https://portal.example.com"]. The default lists only local addresses; * admits any origin, which the security audit reports. | ||
DISABLE_CUSTOM_VARIABLES | Refuses the Variables feature, its API and the agent builder's variable tools; variables would otherwise be resolved into assignment prompts and sent to the model provider. On by default; also in Settings > Access and security, where the variable, when set, wins and locks the field. | ||
AI_CATALOG_ENABLED | false | Shows the AI Catalog, the ready-made agents users copy into their own. Off by default. | |
WEBHOOK_REQUIRE_SECRET | false | When True, webhook deliveries targeting assignments WITHOUT a configured webhook_secret are rejected with 401 (strict enforcement). | |
RUNNER_OFFLINE_AFTER_SECONDS | 75 | A runner reports liveness on connect + heartbeat. | |
RUNNER_HEARTBEAT_INTERVAL_SECONDS | 30 | Heartbeat / WebSocket keepalive cadence the runner is told to use. | |
RUNNER_LONG_POLL_TIMEOUT_SECONDS | 25 | Long-poll hold time (fallback transport): the poll endpoint blocks up to this long waiting for a command before returning empty so the runner can re-poll. | |
RUNNER_COMMAND_DEFAULT_TIMEOUT_SECONDS | 120 | Default per-command execution timeout handed to the runner. | |
RUNNER_MAX_RESULT_BYTES | 25000000 | Hard ceiling on an uploaded screenshot / file-read result (bytes). | |
RUNNER_ENROLLMENT_TTL_SECONDS | 900 | Default TTL stamped on a single-use enrollment key at creation. | |
RELAY_OFFLINE_AFTER_SECONDS | 60 | A relay is online only if seen within this many seconds (heartbeat or any frame). | |
RELAY_HEARTBEAT_INTERVAL_SECONDS | 20 | Heartbeat cadence the relay is told to use. | |
RELAY_LONG_POLL_TIMEOUT_SECONDS | 25 | Long-poll hold time (fallback transport). | |
RELAY_MAX_REQUEST_BYTES | 20000000 | Ceiling on a relayed request body and on a relayed response body (bytes). | |
RELAY_MAX_RESPONSE_BYTES | 100000000 | The largest response body, in bytes, a relay may return for one relayed request (100000000, 100 MB, by default). A larger response is cut with a too_large error. | |
RELAY_STREAM_IDLE_TIMEOUT_SECONDS | 120 | How long a relayed stream may stay silent (no frame in either direction) before it is abandoned: covers a relay or a platform replica that died mid-stream. | |
RELAY_QUEUE_TIMEOUT_SECONDS | 30 | How long a request waits in its group's queue for a relay to pick it up (every relay of the group busy) before it fails. | |
RELAY_ENROLLMENT_TTL_SECONDS | 3600 | Default TTL stamped on a single-use enrollment key at creation. | |
CUSTOM_TOOL_NODE_PERMISSION | true | When the subprocess fallback is used (no Docker), JavaScript custom tools are executed under the Node.js permission model (node --permission) when the installed Node supports it (stable since Node 24): file system access, child processes, worker threads and native addons are DENIED; network stays available (--allow-net is added automatically on Node 25+ where the permission model would otherwise deny it). | |
CODE_INTERPRETER_EXTRA_ALLOWED_MODULES | Comma-separated list of modules to RE-ENABLE inside the built-in code interpreter sandbox even though they are on the shared security blocklist (e.g. | ||
AGENTIC_LABS_IMAGES | The extra images a lab service may run on, as key:image,..., such as opencti:docker.io/opencti/platform:6.9.0: the products, search engines or brokers you allow a lab to run next to its checkout. In a lab pod, a service that names one of these keys runs on that image; a lab on OpenSandbox keeps a single image. Empty, the default, allows none; an entry without key: is dropped with a warning in the log. | ||
CUSTOM_TOOL_EXTRA_ALLOWED_MODULES | Comma-separated list of modules to RE-ENABLE inside the custom Python tool sandbox even though they are on the shared security blocklist. | ||
PROGRESSIVE_TOOLS_ENABLED | true | When an agent has many tools (integrations + MCP servers + custom tools), sending every tool's JSON schema to the LLM on every turn is expensive: a trivial "hello" pays the full tool-definition token cost for tools it never uses, and large tool lists measurably degrade tool-selection accuracy. | |
PROGRESSIVE_TOOLS_MIN_TOOLS | 16 | Minimum number of gateable tools (integration + MCP + custom) before progressive disclosure activates. | |
URL_GUARD_ENABLED | true | Deterministic post-processor that validates platform deep links (OpenCTI / OpenAEV /dashboard/... routes) in final assistant responses, auto-corrects commonly hallucinated route segments, and falls back to the universal ID resolver or a search link when a URL cannot be verified. | |
URL_GUARD_MANIFEST_PATH | Optional path to a JSON file ({"routes": {...}, "corrections": {...}}) merged over the built-in route manifest and correction rules, so product teams can extend the known-route data without code changes. |
Read elsewhere in the code
The variables the code reads from the environment where it uses them, outside its settings: each says where.
| Variable | Required | Default | Description |
|---|---|---|---|
XTM_ONE_DOCS_DIR | Read from the environment by backend/app/agents/seed.py, not by the settings of backend/app/core/config.py. | ||
OPENCTI_API_URL | Where XTM One calls OpenCTI and fetches its signing keys, when it reaches OpenCTI at another address than the public URL OpenCTI registered with, as inside a Docker network (http://opencti:8080). Unset, XTM One calls the registered URL. Every link people get stays on the public URL. A change applies at the platform's next registration, within 5 minutes. | ||
OPENAEV_API_URL | Where XTM One calls OpenAEV, fetches its signing keys and sends its callbacks, when it reaches OpenAEV at another address than the public URL OpenAEV registered with, as inside a Docker network (http://openaev:8080). Unset, XTM One calls the registered URL. Every link people get stays on the public URL. A change applies at the platform's next registration, within 5 minutes. | ||
OPENCRQ_API_URL | Where XTM One calls OpenCRQ and fetches its signing keys, when it reaches OpenCRQ at another address than the public URL OpenCRQ registered with, as inside a Docker network (http://opencrq:3002). Unset, XTM One calls the registered URL. Every link people get stays on the public URL. A change applies at the platform's next registration, within 5 minutes. OPENGRC_API_URL, its name before OpenGRC became OpenCRQ, is still read, with a warning in the logs, until 31 December 2026. | ||
XTM_ONE_LAUNCH_ID | Read from the environment by backend/app/core/launch_marker.py, not by the settings of backend/app/core/config.py. | ||
SSL_CERT_FILE | Read from the environment by backend/app/core/pinned_request.py, not by the settings of backend/app/core/config.py. | ||
SSL_CERT_DIR | Read from the environment by backend/app/core/pinned_request.py, not by the settings of backend/app/core/config.py. | ||
CUSTOM_TOOL_DOCKER | Read from the environment by backend/app/core/security_controls.py, not by the settings of backend/app/core/config.py. | ||
WORKSPACE_DIR | Read from the environment by backend/app/services/code_interpreter.py, not by the settings of backend/app/core/config.py. | ||
KUBERNETES_SERVICE_HOST | Read from the environment by backend/app/services/sandbox_workspace/kube.py, not by the settings of backend/app/core/config.py. | ||
KUBERNETES_SERVICE_PORT | 443 | Read from the environment by backend/app/services/sandbox_workspace/kube.py, not by the settings of backend/app/core/config.py. | |
AZURE_CLIENT_ID | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. | ||
AZURE_TENANT_ID | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. | ||
AZURE_FEDERATED_TOKEN_FILE | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. | ||
AZURE_AUTHORITY_HOST | https://login.microsoftonline.com | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. | |
IDENTITY_ENDPOINT | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. | ||
IDENTITY_HEADER | Read from the environment by backend/app/services/vault/azure.py, not by the settings of backend/app/core/config.py. |