Configuration reference¶
Every environment variable Daimon reads. Generated from the settings models themselves
by scripts/generate_config_reference.py — edit the Field(description=...) in the
model, not this page. CI fails when the two disagree.
Values come from the process environment and, for the Daimon processes, from a .env
file in the working directory. .env.example lists the same DAIMON_* variables in
copy-paste form; this page adds the types, the defaults and the two standalone services.
Nested blocks use __ as the delimiter, so DAIMON_MCP__JWT_SECRET is
Settings.mcp.jwt_secret.
Unknown DAIMON_* variables are ignored rather than rejected (extra="ignore"), so a
typo is silent — check the spelling here.
Contents¶
- Core
- Compute
- Long Jobs
- Monitoring
- Ops Events
- Retention
- Database
- Anthropic
- Privacy
- CLI
- Logging
- Observability
- Ops
- MCP Server
- MCP OAuth
- MCP Identity
- Hub
- Agent Identity
- Environment
- Discord
- Thread Participation
- Progress Plans
- Mcp Context
- Slack
- Teams
- GitHub
- GitHub App
- Repo Memory
- Self Knowledge
- Microsoft Accounts
- Crypto
- Credentials
- Selfhosted
- Gemini
- Notebook Host
- Report Host
- Sentry
- Billing Policy
- Provider Daily Ceiling Usd
- Support
- Turn
- Provider Limits
- Thread Naming
- Outbound
- Turn Queue
- Watches
- Private Channel Messages
- Tool Safety
- Artifacts
- Scheduler
- Sidecar
- Notebook host (standalone service)
- Report host (standalone service)
- Billing (Stripe)
- Docker Compose
Core¶
Read from daimon.core.config.Settings. Prefix DAIMON_. Every other DAIMON_*
section below is a nested block on this model, reached with the __ delimiter.
DAIMON_SECURITY_AUDIT_RETENTION_DAYS¶
int | None · optional · default unset
Deprecated: use DAIMON_RETENTION__SECURITY_AUDIT_DAYS. When set, and that variable is
not, it is used as the security audit retention.
DAIMON_COMPLETION_PINGS¶
dict[UUID, bool] · optional · default {}
Per-tenant completion notification policy, keyed by tenant UUID. Discord and Slack acknowledge mentions independently of this setting and clear the acknowledgment when the turn settles. True adds a success check mark and posts the final answer as a fresh reply mentioning only the requester on Discord and Slack. On Teams it closes the status card and posts the answer fresh, mentioning the requester in channels (Teams bots cannot react). Missing/false preserves in-place delivery. Configure DAIMON_COMPLETION_PINGS as a JSON object.
DAIMON_BUDGET_NOTICES¶
dict[UUID, bool] · optional · default {}
Per-tenant switch for the channel budget notice, keyed by tenant UUID. When a channel's budget is used up, the server admins get one DM per budget window on Discord, Slack and Teams. Missing/true sends it; false turns it off. Configure DAIMON_BUDGET_NOTICES as a JSON object.
DAIMON_DIRECT_MESSAGE_POLICIES¶
dict[UUID, DirectMessagePolicy] · optional · default {}
Per-tenant DM recipient policies keyed by tenant UUID (normalized at load; invalid keys
rejected). Default is members (live membership required). Set mode=disabled to disable
DMs, or mode=allowlist with recipient_ids to restrict delivery to listed members.
Deprecated: checked with per-agent DM access on every path, the stricter wins; daimon
dm import-policies copies it into stored access. Configure
DAIMON_DIRECT_MESSAGE_POLICIES as a JSON object.
DAIMON_TABLE_RENDERING¶
dict[UUID, bool] · optional · default {}
Per-tenant table rendering, keyed by tenant UUID. Discord renders final Markdown tables as PNG unless the tenant is set to false. Slack renders native tables only when set to true. Set DAIMON_TABLE_RENDERING to a JSON object.
DAIMON_PRIVACY_POLICY_URL¶
HttpUrl · optional · default https://github.com/pymc-labs/daimon/blob/main/PRIVACY.md
URL of the privacy policy, linked from the browser pages and the privacy panels' Policy button. Override via DAIMON_PRIVACY_POLICY_URL if you host your own policy page.
DAIMON_TERMS_URL¶
HttpUrl | None · optional · default unset
URL of the terms page. Set DAIMON_TERMS_URL to show a Terms link beside the privacy policy in the browser pages and the privacy panels; unset, no Terms link appears.
DAIMON_FEATURES¶
dict[str, str] · optional · default {}
Deployment defaults for features, one variable each: DAIMON_FEATURES__PROGRESS_PLANS=on. A value may end in :locked so no workspace, agent, channel or thread can change it; disabled is off:locked. An unknown feature stops startup. The docs site's features page lists them.
DAIMON_DEFAULTS_ROOT¶
Path · optional · default defaults
Filesystem path to the seeded defaults/ directory consumed by daimon.core.defaults.apply.apply_defaults. Default Path('defaults') is relative to the process cwd — works for in-repo dev (repo root) and the deployed container layout (working dir contains defaults/ at root). Single source of truth shared by the scheduler, Discord/Slack adapters, CLI session bootstrap, and MCP routine tools. Do NOT add adapter-local defaults_root fields — they invite drift.
Compute¶
Read from daimon.core.config.ComputeSettings. Prefix DAIMON_COMPUTE__.
DAIMON_COMPUTE__ENABLED¶
bool · optional · default False
Allow attended owners to launch compute sessions. Disabling launch does not disable cleanup.
DAIMON_COMPUTE__DEPLOYMENT_ID¶
str · optional · default unset
Stable unique deployment identifier fencing session resources. Required to use compute.
DAIMON_COMPUTE__CLOUD_RUN_PROJECT¶
str · optional · default unset
Google Cloud project id that holds the session services. Required to use compute. Daimon signs in with application default credentials.
DAIMON_COMPUTE__CLOUD_RUN_SERVICE_ACCOUNT¶
str · optional · default unset
Email of the service account session containers run as. Give it no roles. Required to use compute.
DAIMON_COMPUTE__SESSION_AUTH_KEY¶
SecretStr | None · optional · default unset · secret
Stable control-plane HMAC key deriving per-session MCP tokens. Never mounted on machines.
DAIMON_COMPUTE__PER_PERSON_SESSIONS¶
int · optional · default 2
Maximum active sessions per person within a tenant, including pending deletion.
DAIMON_COMPUTE__DEFAULT_IDLE_TTL_HOURS¶
int · optional · default 24
Default idle lifetime in hours; bounded by max_ttl_hours.
DAIMON_COMPUTE__MAX_TTL_HOURS¶
int · optional · default 168
Maximum launch or extension lifetime in hours. No dollar cap or metering is provided.
DAIMON_COMPUTE__PER_SESSION_TASKS¶
int · optional · default 4
Maximum background commands running at once on one session. A background command may run for at most max_ttl_hours.
DAIMON_COMPUTE__WAKE_RUN_LIMIT¶
int · optional · default 20
How many wake turns in a row may act on one session. The count starts again when the owner runs a command or writes a file on it; a chat message alone does not.
DAIMON_COMPUTE__PROFILES¶
dict[str, ComputeProfile] · optional · default {}
Operator-managed image profiles. Empty means no images can be launched.
Long Jobs¶
Read from daimon.core.config.LongJobsSettings. Prefix DAIMON_LONG_JOBS__.
DAIMON_LONG_JOBS__MAX_DEADLINE_MINUTES¶
int · optional · default 70
Operator hard ceiling for long-job deadlines in minutes. Durations above 70 min are not yet validated on MA.
DAIMON_LONG_JOBS__MAX_USD¶
Decimal · optional · default 20
Operator hard ceiling in USD per long job; tenant and agent policy may only lower it.
DAIMON_LONG_JOBS__PER_TENANT_RUNNING¶
int · optional · default 3
Maximum launching and running long jobs per tenant.
DAIMON_LONG_JOBS__PER_OWNER_RUNNING¶
int · optional · default 2
Maximum launching and running long jobs per owner within a tenant.
Monitoring¶
Read from daimon.core.config.MonitoringSettings. Prefix DAIMON_MONITORING__.
DAIMON_MONITORING__RETENTION_DAYS¶
int · optional · default 90
Days a monitored question, answer or tool call is kept before the scheduler deletes it, default 90.
Ops Events¶
Read from daimon.core.config.OpsEventsSettings. Prefix DAIMON_OPS_EVENTS__.
DAIMON_OPS_EVENTS__RETENTION_DAYS¶
int · optional · default 30
Days a failure or warning shown on the admin Issues page is kept before the scheduler deletes it, default 30.
Retention¶
Read from daimon.core.config.RetentionSettings. Prefix DAIMON_RETENTION__.
How long the scheduler keeps operational records, in days. 0 keeps them forever.
Conversation history (thread sessions, private chats, web threads, turn records and
Daimon's journal copy) is the conversation_retention feature instead, so a workspace
can shorten it. It is on at 1 year; DAIMON_FEATURES__CONVERSATION_RETENTION=0 turns it
off.
DAIMON_RETENTION__SECURITY_AUDIT_DAYS¶
int · optional · default 90
Days to keep security audit events, secret share records past their expiry and the
record of messages the agent posted. The scheduler deletes older ones; daimon audit
prune does the same for one tenant's audit events. Privacy erasure and tenant deletion
still apply when this is 0.
DAIMON_RETENTION__ADMIN_HISTORY_DAYS¶
int · optional · default 90
Days to keep the admin page audit and channel changes.
DAIMON_RETENTION__TASK_CONTINUATIONS_DAYS¶
int · optional · default 30
Days to keep a delivered, skipped or cancelled task continuation.
DAIMON_RETENTION__JOB_OUTPUT_DAYS¶
int · optional · default 90
Days to keep finished long jobs, and the output tails of finished background commands and routine runs.
DAIMON_RETENTION__ACCESS_REQUESTS_DAYS¶
int · optional · default 90
Days to keep credential and GitHub access requests once resolved or expired.
DAIMON_RETENTION__DELETED_THREADS_DAYS¶
int · optional · default 30
Days before a web thread the user deleted is removed for good.
DAIMON_RETENTION__FEEDBACK_DAYS¶
int · optional · default 365
Days to keep message feedback and support request notes.
DAIMON_RETENTION__CHANNEL_NAMES_DAYS¶
int · optional · default 365
Days to keep a channel's last known name after it was last seen.
DAIMON_RETENTION__ARCHIVED_TENANTS_DAYS¶
int · optional · default 30
Days after a tenant is archived (its app uninstalled) before it is retired: its data, provider sessions, memory, vaults, skills, reports and notebooks are deleted, and only billing records and the balance stay. Reinstalling before then keeps everything.
Database¶
Read from daimon.core.config.DatabaseSettings. Prefix DAIMON_DATABASE__.
DAIMON_DATABASE__URL¶
PostgresDsn · required
Postgres connection string used by the running application (SQLAlchemy async + asyncpg). Required.
DAIMON_DATABASE__TEST_URL¶
PostgresDsn | None · optional · default unset
Postgres connection string for the test suite. Points at a dedicated database (e.g. daimon_test) so test runs never touch development data. Unset in production.
DAIMON_DATABASE__POOL_SIZE¶
int · optional · default 5
Persistent Postgres connections per process. Default 5; size against all application processes and the database connection limit.
DAIMON_DATABASE__MAX_OVERFLOW¶
int · optional · default 10
Temporary Postgres connections above pool_size per process. Default 10; include these in the database connection budget. pool_size + max_overflow must be at least 4; smaller pools are rejected at engine startup to reserve independent preparation and mutation capacity with nested query headroom. Fence contenders release connections and permits between nonblocking attempts, retrying with 25-75 ms jitter for at most 5 seconds before retryable session busy.
DAIMON_DATABASE__POOL_TIMEOUT¶
float · optional · default 30.0
Seconds to wait for a free Postgres connection before failing. Default 30 seconds.
DAIMON_DATABASE__PREPARATION_CONCURRENCY¶
int | None · optional · default unset
Maximum concurrent session preparations holding a Postgres advisory-lock transaction per process. Unset uses half of pool_size (at least one), leaving connections for preparation's nested queries and turn outcomes. Keep this below pool_size so nested queries have headroom. Excess preparations wait in memory instead of timing out in the DB pool.
Anthropic¶
Read from daimon.core.config.AnthropicSettings. Prefix DAIMON_ANTHROPIC__.
DAIMON_ANTHROPIC__API_KEY¶
SecretStr | None · optional · default unset · secret
Anthropic API key used to authenticate all Managed Agents SDK calls. Required unless this deployment is OpenAI-only (see docs/providers.md's 'Run on OpenAI'), in which case leave it unset.
DAIMON_ANTHROPIC__BASE_URL¶
HttpUrl · optional · default https://api.anthropic.com
Base URL for the Anthropic API. Override only when routing through a proxy or a non- default API endpoint.
DAIMON_ANTHROPIC__SKILLS_REQUESTS_PER_MINUTE¶
int · optional · default 80
Maximum Anthropic Skills API requests per minute in this process. Default 80 leaves headroom below the 100 requests/minute organization limit. Other deployments in the same organization share that limit.
Privacy¶
Read from daimon.core.config.PrivacySettings. Prefix DAIMON_PRIVACY__.
DAIMON_PRIVACY__DELETE_ENABLED¶
bool · optional · default True
Show account deletion in Discord, Slack, and Teams privacy panels and allow delete confirmations. Set DAIMON_PRIVACY__DELETE_ENABLED=false to pause deletion during an event; Policy and Export remain available.
CLI¶
Read from daimon.core.config.CLISettings. Prefix DAIMON_CLI__.
DAIMON_CLI__LOCAL_USER¶
str · optional · default read from the process environment
Display name used to identify the local operator running the CLI. Defaults to the $USER environment variable, falling back to 'daimon' when unset.
Logging¶
Read from daimon.core.config.LogSettings. Prefix DAIMON_LOG__.
DAIMON_LOG__LEVEL¶
'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' · optional · default INFO
Minimum log level emitted by the structured logger.
Observability¶
Read from daimon.core.config.ObservabilitySettings. Prefix DAIMON_OBSERVABILITY__.
DAIMON_OBSERVABILITY__HEALTH_INTERVAL_S¶
float · optional · default 30
Seconds between runtime.health structured log lines from each long-running process. Default 30; set DAIMON_OBSERVABILITY__HEALTH_INTERVAL_S=0 to disable.
Ops¶
Read from daimon.core.config.OpsSettings. Prefix DAIMON_OPS__.
DAIMON_OPS__ALERT_WEBHOOK_URL¶
SecretStr | None · optional · default unset · secret
Discord webhook URL for short operator alerts about new installs, Stripe top-ups, and Anthropic limits. Unset disables alerts. Keep the URL secret.
MCP Server¶
Read from daimon.core.config.McpSettings. Prefix DAIMON_MCP__.
MCP adapter config.
Both fields are optional so deployments that don't run the MCP adapter keep working. The
create_mcp_app factory re-validates presence at server-boot time (raises
BootstrapError on miss); ensure_mcp_vault at session-create time skips silently when
public_url is None.
DAIMON_MCP__JWT_SECRET¶
SecretStr | None · required to run the MCP adapter · default unset · secret
Secret used to sign and verify MCP bearer tokens. Required to run the MCP adapter.
DAIMON_MCP__MEMBER_COPY_LIMIT¶
int · optional · default 5
How many live copies one member may own of agents they copied while talking to them (fork_agent without admin). Admins are not limited. 0 turns member copies off.
DAIMON_MCP__LEGACY_TOKEN_CUTOFF¶
AwareDatetime | None · optional · default unset
UTC deadline for a temporary legacy-token deployment window. Dates before 2026-10-16 or over six hours in the future are refused. At/after the deadline all unregistered tokens are rejected, regardless of issuance time. Internal tokens are always rejected without a registry row.
DAIMON_MCP__ALLOW_LEGACY_TOKENS¶
bool · optional · default False
Temporary minters-first deployment compatibility only. Requires a bounded legacy_token_cutoff; only non-internal legacy tokens qualify and stop working at that deadline even if the deployment is interrupted. Default false requires registered tokens immediately.
DAIMON_MCP__REQUIRE_ROUTINE_DESTINATION¶
bool · optional · default False
Deprecated: use DAIMON_FEATURES__REQUIRE_ROUTINE_DESTINATION.
DAIMON_MCP__PUBLIC_URL¶
HttpUrl | None · required to run the MCP adapter · default unset
Externally reachable base URL of the MCP server (the streamable endpoint, e.g. https://mcp.example.com/mcp). Required to run the MCP adapter — used to build OAuth/CLI/health route URLs and session-create metadata.
DAIMON_MCP__FILE_STORE_DIR¶
Path | None · optional · default unset
On-disk directory for the media-tool FileStore. When unset, the server uses tempfile.gettempdir() / 'daimon-mcp-files' resolved at startup.
DAIMON_MCP__BUNDLE_MAX_BYTES¶
int · optional · default 26214400
Per-upload byte cap enforced by the bundle upload route. The default keeps headroom under a 32 MiB proxy request limit; raise it if the front end in front of the mcp service allows larger bodies.
DAIMON_MCP__BUNDLE_UPLOADS_PER_HOUR¶
int · optional · default 20
Per-token cap on bundle upload route calls per rolling hour. Prevents a compromised or buggy caller from exhausting the Files API upload path. Set to 0 to disable (not recommended in production).
DAIMON_MCP__CODING_CLAIM_ATTEMPTS¶
int · optional · default 30
Most POST /coding-keys/claim calls one client address may make per window, valid code or not. Set to 0 to disable (not recommended in production).
DAIMON_MCP__CODING_CLAIM_WINDOW_MINUTES¶
int · optional · default 10
The window, in minutes, coding_claim_attempts is counted over.
DAIMON_MCP__CLAIM_FORWARDED_ENTRIES¶
int · optional · default 2
How many of the rightmost X-Forwarded-For entries the claim route's rate limit keys on,
joined. A proxy appends to the right, so these cannot be forged into another caller's
key. 2 suits a load balancer that appends <client>, <balancer> and also
direct calls; 0 ignores the header and keys on the socket peer. IPv6 addresses count by
/64.
DAIMON_MCP__BUNDLE_TTL_DAYS¶
int · optional · default 90
How long an uploaded bundle object is retained on the Files API before deletion. Deletion is performed by the scheduler's pending-file sweeper, not by this process directly — a deployment running no scheduler will never reclaim these objects.
DAIMON_MCP__OPERATOR_CALLS_PER_MINUTE¶
int · optional · default 60
Per-token cap on tool calls an operator token (minted with daimon mcp mint-operator-
token) may make per rolling minute, counted in each MCP process. Set to 0 to disable.
MCP OAuth¶
Read from daimon.core.config.McpOAuthSettings. Prefix DAIMON_MCP_OAUTH__.
DAIMON_MCP_OAUTH__CLIENTS¶
list[McpOAuthClientSettings] · optional · default unset
OAuth clients registered by hand, for authorization servers that offer no dynamic client registration. A JSON array; each entry has authorization_server_host (the bare host of the authorization server), mcp_servers (required: the exact https URLs of the MCP servers this client may be used for), client_id, client_secret, token_endpoint_auth_method (client_secret_post by default, or client_secret_basic), optional authorization_endpoint and token_endpoint overrides (public https), optional scope (space-separated; replaces the scopes the MCP server publishes) and send_resource (default true; false leaves the RFC 8707 resource parameter out of sign-in and refresh). A sign-in uses an entry only when its MCP server is listed and its authorization server is on that host; it then also asks for offline_access when the authorization server offers it. Every other sign-in registers a client dynamically. Default: [] (always register).
MCP Identity¶
Read from daimon.core.config.McpIdentitySettings. Prefix DAIMON_MCP_IDENTITY__.
DAIMON_MCP_IDENTITY__SIGNING_KEY¶
SecretStr | None · optional · default unset · secret
Ed25519 private key that signs caller identities for the servers in
DAIMON_MCP_IDENTITY__SERVERS: an unencrypted PKCS#8 PEM or a base64url 32-byte seed.
Generate one with daimon mcp identity-keygen, which also prints the public key to
register with each server. Read by the mcp service and by any service that connects to
those servers.
DAIMON_MCP_IDENTITY__SERVERS¶
list[SignedIdentityServer] · optional · default unset
Remote MCP servers that opt in to signed identity. A JSON array; each entry has name (lowercase letters, digits and dashes), url (the server's https MCP endpoint), issuer (the issuer id the server gave you), audience (the server's base URL) and optionally workspaces, the only workspaces whose agents may use it, each "<platform>:<workspace id>" (for example "discord:<guild id>"; default: every workspace). Optional ca_certificate is a public PEM CA certificate for a private HTTPS server. Attach such a server to an agent at <app root>/mcp- identity/<name> instead of its own URL: Daimon forwards each request with a short- lived EdDSA token naming the agent, the workspace and, for a person's turn, who asked, the channel and the message. Daimon names the asker only while that person's turn is live in the calling session's thread. A server may instead set auth to "bearer": Daimon then sends the key from DAIMON_MCP_IDENTITY__BEARERS and no issuer or audience, and workspaces and agents (agent names that may use it) are required. Set requester_meta to true for a server that attributes writes to the requester: Daimon removes any requester fields the caller supplied and stamps each tool call with who it is for and where: the asker while their turn is live, or the person an unattended run acts for. Set agent_chat_requester to true as well for a server that accepts requester_kind "agent_chat": a turn a person started through the MCP hub, signed in with their platform login, then names that person with no place. Turns started with an agent, coding or CLI key name nobody. Set routine_claims to true for a signed server that accepts the routine claim: a routine run that posts to a Discord room then names its routine, that room and the room's kind, and no person. Set wake_claims to true for a signed server that accepts the wake claim: a person's turn still running signs wake turn, and a continuation that runs in its own Discord thread signs its reason, that thread and its kind, and no person. The two settings are independent: with wake_claims on, the server can answer a call that has no fresh message even with routine_claims off. An agent using a server stays in its channel with no long-term memory, a fresh session per channel turn and no handoffs, because the server answers with what the channel's readers can read. Set channel_scoped to false for a server that checks each call's asker and place itself: its agents then get their normal memory and sessions, so what they learn can surface in their other channels. A requester_meta server may list wake_tools: a person's call to one carries params._meta.wake_url, a private callback watch link for that conversation; each POST of the work's outcome to it wakes the conversation once. Each call gets its own link to one watch per conversation, which lasts a day after the latest call. Needs the watches feature and DAIMON_WATCHES__CALLBACK_BASE_URL. The MCP service requires DAIMON_MCP_IDENTITY__SIGNING_KEY when any server is signed; chat workers use the same server policy without the signing key. Default: [] (off).
DAIMON_MCP_IDENTITY__BEARERS¶
dict[str, SecretStr] · optional · default unset · secret
Keys for the servers whose auth is "bearer", by server name: a JSON object such as {"tools": "<key>"}. Kept apart from DAIMON_MCP_IDENTITY__SERVERS so the key is set as a secret. Daimon sends the key as the server's bearer in place of the caller's own credential, which never reaches the server. The MCP service needs them, and there every bearer server needs one; no other server may have one. A chat worker given one reads that server's tool hints when DAIMON_TOOL_SAFETY__TRUSTED_ANNOTATIONS names it. Default: {} (none).
Hub¶
Read from daimon.core.config.HubSettings. Prefix DAIMON_HUB__.
OAuth-login MCP mounts for coding-agent clients.
A platform's mount appears only when both its client id and secret are set; a deployment that sets neither runs exactly as before. The signing key is shared by both mounts and must be a base64url 32-byte key, the same shape as a Fernet key, so the proxy uses it directly rather than deriving one from the client secret (rotating a client secret would otherwise invalidate every issued login).
DAIMON_HUB__SLACK_CLIENT_ID¶
str | None · optional · default unset
Slack OAuth app client ID for the /slack/mcp login mount. Register <hub origin>/slack/auth/callback as a redirect URL on the Slack app (see public_url).
DAIMON_HUB__SLACK_CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
Slack OAuth app client secret for the /slack/mcp login mount.
DAIMON_HUB__DISCORD_CLIENT_ID¶
str | None · optional · default unset
Discord OAuth app client ID for the /discord/mcp login mount. Register <hub origin>/discord/auth/callback as a redirect URI on the Discord app (see public_url).
DAIMON_HUB__DISCORD_CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
Discord OAuth app client secret for the /discord/mcp login mount.
DAIMON_HUB__PUBLIC_URL¶
HttpUrl | None · optional · default unset
Origin the login mounts are served from, e.g. https://mcp.example.com. It becomes the OAuth issuer and callback base, so it must be the address coding agents connect to. Unset, the mounts use the origin of DAIMON_MCP__PUBLIC_URL. Set it to give the mounts a public hostname without moving the agents' /mcp endpoint, whose URL is stored in every agent's credential vault.
DAIMON_HUB__ALLOWED_CLIENT_REDIRECT_URIS¶
list[str] · optional · default ['http://localhost:*', 'http://127.0.0.1:*', 'https://claude.ai/*', 'https://claude.com/*']
Redirect URI patterns an MCP client may register with the hub login mounts (wildcards allowed). Defaults cover coding agents on loopback and claude.ai; widen only for a client you operate.
DAIMON_HUB__JWT_SIGNING_KEY¶
SecretStr | None · optional · default unset · secret
Base64url 32-byte key that signs hub login tokens. Required when any hub mount is configured, and rejected at boot unless it decodes to exactly 32 bytes. Generate with Fernet.generate_key().
Agent Identity¶
Read from daimon.core.config.AgentIdentitySettings. Prefix DAIMON_AGENT_IDENTITY__.
DAIMON_AGENT_IDENTITY__ENABLED¶
bool · optional · default False
Enable per-agent display names and avatars on Slack and Discord, agent name prefixes on Teams, and reply-to-agent routing on Discord. Off by default; set DAIMON_AGENT_IDENTITY__ENABLED=true after platform setup is ready.
DAIMON_AGENT_IDENTITY__EXCLUDED_DISCORD_GUILD_IDS¶
list[str] · optional · default unset
Discord guild IDs where agent identity stays off when enabled globally. Set DAIMON_AGENT_IDENTITY__EXCLUDED_DISCORD_GUILD_IDS to a JSON array of IDs. Default: [] (no guilds excluded).
DAIMON_AGENT_IDENTITY__EXCLUDED_SLACK_TEAM_IDS¶
list[str] · optional · default unset
Slack workspace team IDs where agent identity stays off when enabled globally. Set DAIMON_AGENT_IDENTITY__EXCLUDED_SLACK_TEAM_IDS to a JSON array of IDs. Default: [] (no workspaces excluded).
Environment¶
Read from daimon.core.config.EnvironmentSettings. Prefix DAIMON_ENVIRONMENT__.
DAIMON_ENVIRONMENT__NAME¶
str · optional · default unset
Deployment name. Empty selects production Discord command behavior.
DAIMON_ENVIRONMENT__LABEL¶
str · optional · default unset
Environment chip text on MCP web pages, such as Staging. Empty falls back to the deployment name; both empty shows no chip. Does not affect Discord command sync.
Discord¶
Read from daimon.core.config.DiscordSettings. Prefix DAIMON_DISCORD__.
Discord adapter config.
Optional so non-Discord deployments keep working. The __main__.py entrypoint
validates presence at boot time.
This whole block is optional: it stays unset until at least one of its variables is set, and the features that read it are inactive while it is.
DAIMON_DISCORD__BOT_TOKEN¶
SecretStr · required · secret
Discord bot token. Required to run the Discord adapter.
DAIMON_DISCORD__COMMAND_GUILD_IDS¶
list[int] · optional · default unset
Guilds allowed to receive commands and events when the environment name is set. An empty list disables all guild ingress in non-production. DMs are not filtered by guild; the bot answers one only for a verified member of one of its tenants.
DAIMON_DISCORD__STARTUP_REPLAY_MINUTES¶
int · optional · default 0
Recent Discord activity window in minutes scanned on startup for missed mentions and replies. Set 0 to disable catch-up.
DAIMON_DISCORD__STARTUP_REPLAY_CHANNELS_PER_GUILD¶
int · optional · default 25
Maximum recently active Discord channels and threads scanned per guild on startup.
DAIMON_DISCORD__STARTUP_REPLAY_MESSAGES_PER_CHANNEL¶
int · optional · default 100
Maximum recent Discord messages scanned per channel or thread on startup. Current message gates and durable admissions prevent duplicate turns.
DAIMON_DISCORD__CREDENTIAL_FORM_EXPIRY¶
bool · optional · default False
Automatically retire expired, unclicked credential cards in place. Requires the existing single-posting-process wake poller switch. Default false starts no expiry task and adds no database or Discord calls. Failed card edits remain pending for retry; no credentials or waiting work are applied.
DAIMON_DISCORD__THREAD_OPEN_NOTICE_AFTER_S¶
float · optional · default 3.0
Seconds after an admitted opening mention before reacting to it to show that its Discord thread is still opening. Includes thread naming and Discord rate-limit waits. Set to 0 to react immediately. The reaction is removed when creation finishes; a failed creation is answered with a visible error reply.
DAIMON_DISCORD__PROTECTED_CHANNEL_NOTICE_COOLDOWN_MIN¶
float · optional · default 10.0
Minutes before the same person is told again that Daimon can't reply in a channel whose Who can post rule is Nobody. Their mention gets a 🔒 reaction and a direct message naming the rule and who can change it; nothing else is posted and no turn runs. Kept in memory per person and channel, so a restart allows one more.
DAIMON_DISCORD__MAX_CONCURRENT_TURNS_PER_TENANT¶
int · optional · default 3
Maximum number of agent turns a single tenant (Discord guild) may have in flight at once. Caps one noisy guild from starving others on the shared Anthropic key.
DAIMON_DISCORD__MAX_CONCURRENT_TURNS¶
int | None · optional · default unset
Maximum Discord agent turns running across all guilds and DMs in this process. Unset leaves deployment-wide admission unlimited. Excess turns wait in the turn queue (see turn_queue); continuation wakes keep their existing admission path.
DAIMON_DISCORD__TURN_CARD_UNRECOVERABLE_AFTER_S¶
int · optional · default 86400
Minimum age in seconds before Discord can retire a card after definite recovery failure or repeated failed recovery passes. Must be at least the longest turn time limit (180 minutes) plus 15 minutes. Recovery runs at startup and periodically, and deletes a known pending card when the bot has Manage Messages permission.
DAIMON_DISCORD__TURN_CARD_UNRECOVERABLE_AFTER_ATTEMPTS¶
int · optional · default 3
Failed Discord card recovery passes required before an aged intent can be retired without a definite platform failure. Count persists across restarts.
DAIMON_DISCORD__HEALTH_PORT¶
int · optional · default 8081
Port for the Discord process's liveness endpoint. Must not collide with the mcp process (8080) or the scheduler process (8082) — all process groups share one host.
DAIMON_DISCORD__QA_BOT_USER_IDS¶
tuple[str, ...] · optional · default unset
Discord user ids of automated QA bots allowed to start turns by mention or reply to a recorded agent post. Bot-authored messages are rejected by default; these are allow- listed so a harness can drive addressed turns end-to-end without a human. Several are supported because admin-gated tools need a caller holding Manage Server while the refusal paths need one without it. Leave empty outside test deployments -- an allow- listed bot spends real credit. As a tuple field this must be set as a JSON array, e.g. '["123","456"]'. Daimon's own id is refused at the gate even if listed.
DAIMON_DISCORD__BOT_DISPLAY_NAME¶
str · optional · default daimon
The bot's presented name across user-facing Discord render sites (@mentions, setup messages, help text, privacy panel copy). Defaults to 'daimon' so unset deployments render byte-identical output. Set to a distinct name (e.g. 'daimon-staging') so a non- production deployment is visibly distinct in-channel.
Thread Participation¶
Read from daimon.core.config.ThreadParticipationSettings. Prefix
DAIMON_THREAD_PARTICIPATION__.
Organic thread participation: replying in a thread unprompted.
Platform-agnostic settings (the store and tool are keyed by platform); the Discord and
Teams adapters read them. mode is the deployment tier of a cascade (deployment,
workspace, channel, thread) that the agent's change_setting tool and /settings write
the other tiers of. off (the default) changes nothing for anyone: no classifier runs
and every server behaves as today until someone asks the agent to follow a thread, or an
admin turns a channel or the workspace on. disabled also refuses those requests. on
follows every thread unless a lower tier says otherwise.
Replying in threads unprompted. See ThreadParticipationSettings.
DAIMON_THREAD_PARTICIPATION__MODE¶
CascadeMode · optional · default off
Deprecated: use DAIMON_FEATURES__PARTICIPATION. Deployment default for replying in threads unprompted. off: mention-only until a thread, channel or workspace is turned on. disabled: mention-only and cannot be turned on. on: follow every thread unless turned off below.
DAIMON_THREAD_PARTICIPATION__QUIET_SECONDS¶
float · optional · default 8.0
How long a followed thread must be quiet after an unprompted message before the agent decides whether to reply. A burst of messages is judged once, at the end.
DAIMON_THREAD_PARTICIPATION__MAX_PER_HOUR¶
int · optional · default 20
Backstop: maximum unprompted replies per thread per rolling hour.
DAIMON_THREAD_PARTICIPATION__RECENT_MESSAGES_WINDOW¶
int · optional · default 10
How many earlier thread messages the classifier sees before deciding.
DAIMON_THREAD_PARTICIPATION__CLASSIFIER_MODEL¶
str · optional · default claude-haiku-5-5
Model that decides whether a burst of unprompted messages deserves a reply. One short call per quiet burst; a small, fast model is the point. The call sets effort low, so pick a model that supports the effort parameter.
Progress Plans¶
Read from daimon.core.config.ProgressPlansSettings. Prefix DAIMON_PROGRESS_PLANS__.
Progress plans: the agent keeps a short plan the working card draws.
mode is the deployment tier of the same cascade thread participation uses (deployment,
workspace, channel, thread); the agent's change_setting tool and /settings write the
other tiers when a person asks.
The agent's plan on the working card. See ProgressPlansSettings.
DAIMON_PROGRESS_PLANS__MODE¶
CascadeMode · optional · default off
Deprecated: use DAIMON_FEATURES__PROGRESS_PLANS. Deployment default for progress plans on the "Working on it…" card (Discord, Slack and Teams). On, the agent keeps a short checklist of a longer task's steps on the card and may add one-line updates on what it found and does next. off: shown only where a workspace, channel or thread is turned on. disabled: never shown, and cannot be turned on. on: shown everywhere unless turned off below.
Mcp Context¶
Read from daimon.core.config.McpContextSettings. Prefix DAIMON_MCP_CONTEXT__.
Per-turn context: each chat message is first shown to the agent's MCP servers that offer a context tool, and what they answer goes in front of it.
Context from connected MCP servers on each chat turn. See McpContextSettings.
DAIMON_MCP_CONTEXT__ENABLED¶
bool · optional · default True
Before each chat turn, send the person's message to every MCP server the agent was
connected to with a shared token that offers the context tool, and put each non-empty
answer in front of the message as quoted data. A server without the tool is unaffected:
it is looked up once in the background, never waited on, then left alone for six hours
(one whose lookup fails is tried again after ten minutes, then ever less often). The
servers receive the message text, without mentions, and an opaque id for the thread
(rotating the first crypto key changes it). The call follows the agent's toolset and
tool safety: with tool safety on, mark the tool a read in DAIMON_TOOL_SAFETY__EFFECTS
(<server>/context). Unprompted replies, held turns, channels shared with another
organisation and sealed channels ask nothing.
DAIMON_MCP_CONTEXT__TENANTS¶
list[UUID] · optional · default unset
Limit per-turn context to these tenants, by tenant UUID. Empty: every tenant. Configure DAIMON_MCP_CONTEXT__TENANTS as a JSON array.
DAIMON_MCP_CONTEXT__TOOL¶
str · optional · default context
Name of the tool to call. A server offers it when the tool's input takes a string
prompt and a string session (the thread's id) and requires nothing else.
DAIMON_MCP_CONTEXT__TIMEOUT_S¶
float · optional · default 2.0
Seconds a turn waits for each server's answer. A server that fails or is slower adds nothing, and one that failed is not asked again for a minute. A server's MCP session is reused for ten minutes, so most turns cost one request per server that offers the tool.
Slack¶
Read from daimon.core.config.SlackSettings. Prefix DAIMON_SLACK__.
Slack adapter config.
Optional so non-Slack deployments boot unchanged — the block is None when no
DAIMON_SLACK__* env vars are present. Mirrors DiscordSettings.
The OAuth/install flow reads these fields: client_id / client_secret for the
code-exchange, signing_secret for request verification, app_token for Socket
Mode.
This whole block is optional: it stays unset until at least one of its variables is set, and the features that read it are inactive while it is.
DAIMON_SLACK__BOT_DISPLAY_NAME¶
str · optional · default daimon
The bot's presented name in Slack setup, help, and privacy messages.
DAIMON_SLACK__SIGNING_SECRET¶
SecretStr · required · secret
Slack request-signing secret used to verify inbound HTTP requests. Required — keeps the whole Slack block None when no DAIMON_SLACK__* vars are set.
DAIMON_SLACK__APP_TOKEN¶
SecretStr · required · secret
Slack app-level token (xapp-...) used to open the Socket Mode connection.
DAIMON_SLACK__CLIENT_ID¶
str | None · optional · default unset
Slack OAuth app client ID, used during the 'Add to Slack' install flow.
DAIMON_SLACK__CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
Slack OAuth app client secret, used during the 'Add to Slack' install flow.
DAIMON_SLACK__QA_BOT_USER_IDS¶
tuple[str, ...] · optional · default unset
Slack user ids of automated QA bots allowed to start turns by mention. Bot-authored mentions are ignored by default; an allow-listed bot runs as a plain workspace member, never a Slack admin, so a harness can drive addressed turns end-to-end without a human. Leave empty outside test deployments -- an allow-listed bot spends real credit. As a tuple field this must be set as a JSON array, e.g. '["U123","U456"]'. Daimon's own id is refused even if listed.
DAIMON_SLACK__MAX_CONCURRENT_TURNS_PER_TENANT¶
int · optional · default 3
Maximum number of agent turns a single tenant (Slack workspace) may have in flight at once. Caps one noisy workspace from starving others on the shared Anthropic key.
DAIMON_SLACK__HISTORY_PAGE_LIMIT¶
int · optional · default 100
Messages requested per conversations.replies call when replaying thread history. Slack clamps this per workspace: an app commercially distributed outside the Marketplace gets 15 whatever it asks for, an internal-app install gets the full page up to 1000, which is also the largest value Slack accepts. The default matches the 100 messages Discord replays; every replayed message is first-turn context the model pays for.
DAIMON_SLACK__HEALTH_PORT¶
int · optional · default 8083
Port for the Slack process's liveness endpoint. Must not collide with the mcp process (8080), the discord process (8081), or the scheduler process (8082) — all process groups share one host.
Teams¶
Read from daimon.core.config.TeamsSettings. Prefix DAIMON_TEAMS__.
Microsoft Teams adapter config.
Optional so non-Teams deployments boot unchanged — the block is None when no
DAIMON_TEAMS__* env vars are present. Mirrors SlackSettings.
client_id / client_secret / tenant_id are the Entra app registration the Bot
Framework posts activities to; port is the HTTP ingress the SDK's FastAPI adapter
binds (/api/messages plus the /healthz / /readyz endpoints served by the
same listener); enabled gates /api/messages without taking the process down.
This whole block is optional: it stays unset until at least one of its variables is set, and the features that read it are inactive while it is.
DAIMON_TEAMS__CLIENT_ID¶
str · required
Entra (Azure AD) app registration client ID the Teams bot authenticates as — also the audience inbound Bot Framework JWTs are validated against.
DAIMON_TEAMS__CLIENT_SECRET¶
SecretStr · required · secret
Entra app registration client secret, used to mint Bot Framework tokens for outbound sends.
DAIMON_TEAMS__TENANT_ID¶
str · required
Entra tenant ID the app registration lives in. A single-tenant bot only answers activities whose conversation and channel-data tenant both equal this value.
DAIMON_TEAMS__MAX_CONCURRENT_TURNS_PER_TENANT¶
int · optional · default 3
Maximum number of agent turns a single Teams tenant may have in flight at once. Caps one noisy tenant from starving others on the shared Anthropic key.
DAIMON_TEAMS__PORT¶
int · optional · default 3978
Port for the Teams process's HTTP ingress and health endpoints (/api/messages, /healthz, /readyz). The Bot Framework messaging endpoint must be configured to reach this listener.
DAIMON_TEAMS__ENABLED¶
bool · optional · default True
When False, /api/messages answers 503 while the health endpoints stay live — the process keeps running so ingress can be re-enabled without a redeploy.
DAIMON_TEAMS__PUBLIC_URL¶
HttpUrl | None · optional · default unset
Externally reachable base URL of the Teams service (the Bot Framework messaging endpoint without /api/messages). Graph's change notifications for private and shared channels post to it.
DAIMON_TEAMS__ADMIN_TEAM_ID¶
str | None · optional · default unset
Entra group ID of the team whose owners administer this deployment from Teams: admins get the admin role in turns, create routines, replace shared keys, top up and see everyone's usage. Adding an admin means making them an owner of that team; no redeploy. The app must be installed in that team. To find the ID, open the team's ⋯ menu in Teams, choose Get link to team and copy the groupId parameter. Unset: nobody is an admin.
Web¶
Read from daimon.core.config.WebSettings. Prefix DAIMON_WEB__.
The web app: its server, chat-platform sign-in and connection nodes.
Optional so deployments without the web app boot unchanged; the block is None when
no DAIMON_WEB__* variable is set.
This whole block is optional: it stays unset until at least one of its variables is set, and the features that read it are inactive while it is.
DAIMON_WEB__PUBLIC_URL¶
HttpUrl · required
Address people open the web app at, with no path. Sign-in redirects and the origin check
on writes use it. Must be https unless dev is on.
DAIMON_WEB__PORT¶
int · optional · default 8780
Port the web process listens on.
DAIMON_WEB__STATIC_DIR¶
Path | None · optional · default unset
Folder holding the built web app. Unset: the static folder inside the web adapter
package, where the image build puts it.
DAIMON_WEB__MODULES¶
tuple['chat' | 'agents' | 'channels' | 'routines' | 'credits' | 'integrations' | 'admin', ...] · optional · default chat,agents,channels,routines,credits,integrations,admin
Sections of the web app that are on, comma-separated: chat, agents, channels, routines, credits, integrations, admin.
DAIMON_WEB__NODES__DATA_SERVER__IDENTITY_SERVER¶
str | None · optional · default unset
Name of the DAIMON_MCP_IDENTITY__SERVERS entry for the server. Its MCP relay is what a
connected agent gets; its audience is the server's base URL, which serves the API and
/oauth/token. Required by the web service.
DAIMON_WEB__NODES__DATA_SERVER__LABEL¶
str · optional · default Data server
Name the agent editor shows.
DAIMON_WEB__NODES__DATA_SERVER__CLIENT_ID¶
str | None · optional · default unset
OAuth client the web app exchanges tokens as. Required by the web service.
DAIMON_WEB__NODES__DATA_SERVER__CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
Secret of that client. Required by the web service.
DAIMON_WEB__NODES__DATA_SERVER__SCOPE¶
str · optional · default openid
Scopes asked for in the token exchange.
DAIMON_WEB__SESSION_TTL_DAYS¶
int · optional · default 30
Days a sign-in lasts, counted from sign-in; visits never extend it.
DAIMON_WEB__RENDER_INTERVAL_S¶
float · optional · default 0.3
Seconds between updates while an answer streams in.
DAIMON_WEB__MAX_CONCURRENT_TURNS_PER_TENANT¶
int · optional · default 3
Most web turns one workspace may run at once.
DAIMON_WEB__MANUAL_TOPUP¶
bool · optional · default False
Let admins add credit by hand instead of paying, for staging deployments.
DAIMON_WEB__DEV¶
bool · optional · default False
Local development only: serves the fake sign-in and dev routes. Refused unless the public URL is localhost or a loopback address.
GitHub¶
Read from daimon.core.config.GithubSettings. Prefix DAIMON_GITHUB__.
Size limits for GitHub skill imports, and the agent GitHub MCP router switch.
DAIMON_GITHUB__MCP_ROUTER¶
bool · optional · default True
Route the agent's github MCP server through Daimon's /github/mcp route, beside the
MCP endpoint, for each new session whose GitHub App grants need more than one
installation token, so every granted repository is reached with its own installation's
token. Sessions that need one token, and every session created while this is off, call
GitHub's hosted MCP server directly. A session keeps the mode it was created with:
turning this off sends only new sessions direct, and routed sessions keep working until
they close. On by default; set it to false to send new sessions direct. Needs
DAIMON_MCP__PUBLIC_URL.
DAIMON_GITHUB__MAX_TARBALL_BYTES¶
int · optional · default 52428800
Raw (compressed) size cap enforced while streaming a GitHub tarball download, checked against Content-Length when present and against the cumulative streamed byte count regardless. 50 MiB is the operator default. Set to 0 to disable (not recommended in production).
DAIMON_GITHUB__MAX_TARBALL_DECOMPRESSED_BYTES¶
int · optional · default 209715200
Decompressed (extracted) size cap enforced against the sum of tar member sizes before extraction, guarding against zip bombs. 200 MiB is the operator default. Set to 0 to disable (not recommended in production).
GitHub App¶
Read from daimon.core.config.GithubAppSettings. Prefix DAIMON_GITHUB_APP__.
Credentials for agent-scoped GitHub App access.
DAIMON_GITHUB_APP__APP_ID¶
str | None · optional · default unset
GitHub App ID for agent-scoped access.
DAIMON_GITHUB_APP__APP_SLUG¶
str | None · optional · default unset
GitHub App URL slug used for installation links.
DAIMON_GITHUB_APP__PRIVATE_KEY¶
SecretStr | None · optional · default unset · secret
GitHub App private key as PEM or base64-encoded PEM.
DAIMON_GITHUB_APP__WEBHOOK_SECRET¶
SecretStr | None · optional · default unset · secret
Secret for verifying this App's webhook signatures.
DAIMON_GITHUB_APP__CLIENT_ID¶
str | None · optional · default unset
GitHub App client ID for user authorization.
DAIMON_GITHUB_APP__CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
GitHub App client secret for user authorization.
Repo Memory¶
Read from daimon.core.config.RepoMemorySettings. Prefix DAIMON_REPO_MEMORY__.
DAIMON_REPO_MEMORY__ENABLED¶
bool · optional · default False
Set up native repository memory (its tools and the notes sent with each message) after a
verified import. Once set up, the repo_memory feature turns it on or off
(DAIMON_FEATURES__REPO_MEMORY).
DAIMON_REPO_MEMORY__LEGACY_MCP_SERVER_NAMES¶
tuple[str, ...] · optional · default unset
Legacy MCP server names whose repo_memory_list and repo_memory_view tools are disabled in sessions when native repository memory is enabled. Set these before cutover so the agent sees one memory source.
Self Knowledge¶
Read from daimon.core.config.SelfKnowledgeSettings. Prefix DAIMON_SELF_KNOWLEDGE__.
Where the self_knowledge tools read this release's docs and source, and the public
addresses their results name.
DAIMON_SELF_KNOWLEDGE__DOCS_URL¶
str · optional · default https://pymc-labs.github.io/daimon/
The public docs site that results name as the place to read more.
DAIMON_SELF_KNOWLEDGE__REPO_URL¶
str · optional · default https://github.com/pymc-labs/daimon
The source repository that results name, to clone for tests and history.
DAIMON_SELF_KNOWLEDGE__DOCS_ROOT¶
Path · optional · default docs
The docs/ directory in the image, relative to the working directory.
DAIMON_SELF_KNOWLEDGE__SOURCE_ROOT¶
Path · optional · default .
The directory holding packages/, relative to the working directory. Only packages/ is read.
Microsoft Accounts¶
Read from daimon.core.config.MicrosoftAccountsSettings. Prefix
DAIMON_MICROSOFT_ACCOUNTS__.
Per-person Microsoft 365 access on Teams: the Entra app people sign in to.
Inert until client_id, client_secret and tenant_id are all set.
DAIMON_MICROSOFT_ACCOUNTS__CLIENT_ID¶
str | None · optional · default unset
Application (client) ID of the Entra app registration people sign in to with Connect
Microsoft. Its Web redirect URI is <public root>/oauth/microsoft/callback.
DAIMON_MICROSOFT_ACCOUNTS__CLIENT_SECRET¶
SecretStr | None · optional · default unset · secret
Client secret of that app registration, sent as client_secret_post.
DAIMON_MICROSOFT_ACCOUNTS__TENANT_ID¶
str | None · optional · default unset
Entra tenant ID (a GUID) people sign in to. Only accounts of this tenant whose object ID matches the Teams user asking can connect.
DAIMON_MICROSOFT_ACCOUNTS__AUTHORITY¶
HttpUrl · optional · default https://login.microsoftonline.com
Microsoft identity platform host; change it only for a sovereign cloud.
Crypto¶
Read from daimon.core.config.CryptoSettings. Prefix DAIMON_CRYPTO__.
MultiFernet keys for at-rest token encryption.
A single deployment ships one key; rotation means prepending a new key. Each key must be
a Fernet.generate_key()-style base64-urlsafe 32-byte string. A deployment without keys
still boots, but refuses to save agent keys unless allow_plaintext opts into plaintext
storage for local development.
DAIMON_CRYPTO__KEYS¶
tuple[SecretStr, ...] · optional · default unset · secret
Ordered Fernet keys used to encrypt/decrypt stored credentials: a single key, a comma-
separated list, or a JSON list. Required to save agent keys: without keys, saving an
agent environment value is refused unless allow_plaintext is set. The first key
encrypts new values; older keys remain valid for decrypting existing ciphertext during
rotation. Run daimon crypto verify to confirm no plaintext rows remain.
DAIMON_CRYPTO__ALLOW_PLAINTEXT¶
bool · optional · default False
Store agent environment values (agent keys) in plaintext when no keys are configured.
For local development only: with this off and no keys, every agent key write is refused.
Credentials¶
Read from daimon.core.config.CredentialsSettings. Prefix DAIMON_CREDENTIALS__.
Tenant-level credentials for the token broker.
Optional — Google Workspace requires a matching authorized-user credential or a service- account credential with domain-wide delegation.
DAIMON_CREDENTIALS__GOOGLE_SA_JSON¶
SecretStr | None · optional · default unset · secret
Full JSON contents of a Google service-account key, used by the token broker to mint delegated Google Workspace credentials.
DAIMON_CREDENTIALS__GOOGLE_USER_JSON¶
SecretStr | None · optional · default unset · secret
Full authorized_user JSON containing client_id, client_secret and refresh_token. Used only for agents bound to google_user_email, with the binding's scopes; requires no domain-wide delegation.
DAIMON_CREDENTIALS__GOOGLE_USER_EMAIL¶
str | None · optional · default unset
Google account email belonging to google_user_json (the JSON does not contain it). Only matching agent bindings, compared without case sensitivity, may use that credential.
Selfhosted¶
Read from daimon.core.config.SelfHostedSettings. Prefix DAIMON_SELFHOSTED__.
Operator opt-in for the self-hosted turn runtime.
DAIMON_SELFHOSTED__ADMISSION_ENABLED¶
bool · optional · default False
Allow explicitly configured selfhosted channels to pass backend admission. Default false. Enabling this still requires the profile's usage observations capability and a configured self-hosted core runtime.
DAIMON_SELFHOSTED__SINGLE_TENANT¶
bool · optional · default False
Declare this self-hosted installation single-tenant. Required for wildcard MCP credential bindings; leave false for shared installations.
DAIMON_SELFHOSTED__MCP_ALLOWED_HTTP_HOSTS¶
tuple[str, ...] · optional · default unset
Operator-authorized exact hostnames or IP literals for credential-free HTTP MCP connections to private, link-local or metadata destinations. Empty by default. Loopback remains allowed; credential-bearing connections still require HTTPS.
DAIMON_SELFHOSTED__HARNESS_AUTH_BINDINGS¶
tuple[HarnessAuthBinding, ...] · optional · default unset
JSON list of harness auth bindings: auth_mode (bearer_env or entra), name (DAIMON_SELFHOSTED__HARNESS_TOKEN_* variable or exact Entra audience), origin (exact HTTPS origin), tenants (UUID list). Unbound names and destinations are refused before credential resolution. Wildcards require single_tenant.
DAIMON_SELFHOSTED__MCP_CREDENTIAL_BINDINGS¶
tuple[McpCredentialBinding, ...] · optional · default unset
JSON list of operator MCP credential bindings: each has name (HARNESS_MCP_CRED_), origin (exact HTTPS origin), and tenants (UUID list). Unbound references, other origins and other tenants are refused. Use tenants=[""] only for a single-tenant installation. Configure the harness HARNESS_MCP_CRED_BINDINGS from the same operator source.
Gemini¶
Read from daimon.core.config.GeminiSettings. Prefix DAIMON_GEMINI__.
Gemini media-tool credentials and stored-conversation retention.
When the key is unset, the media tools skip registration so the mcp process boots
without them.
DAIMON_GEMINI__API_KEY¶
SecretStr | None · optional · default unset · secret
Gemini API key used by media-generation MCP tools. Tools are unregistered when unset.
DAIMON_GEMINI__RECORDS_RETENTION_DAYS¶
int · optional · default 30
Days a Gemini conversation may sit idle before the scheduler prunes its stored history. A thread that comes back after that starts a new conversation.
Notebook Host¶
Read from daimon.core.config.NotebookSettings. Prefix DAIMON_NOTEBOOK__.
Optional notebook-host client config.
Both fields optional so deployments without a notebook host keep working. The MCP tool raises ToolError when host_url is unset.
DAIMON_NOTEBOOK__HOST_URL¶
HttpUrl | None · optional · default unset
Base URL of the notebook-host service (e.g. http://notebook-host:8001).
DAIMON_NOTEBOOK__ADMIN_SECRET¶
SecretStr | None · optional · default unset · secret
Bearer secret used to authenticate admin calls to the notebook-host service.
DAIMON_NOTEBOOK__PUBLISH_RATE_PER_HOUR¶
int · optional · default 30
Per-principal cap on publish_notebook calls per rolling hour. Prevents a compromised or buggy agent from exhausting the notebook host's process/port pool. Set to 0 to disable (not recommended in production).
DAIMON_NOTEBOOK__MAX_ATTACHMENT_BYTES¶
int · optional · default 10485760
Per-attachment size cap enforced by attach_notebook_data before uploading to the notebook host. 10 MiB is the operator default. Set to 0 to disable (the host's own ceiling still applies as defense-in-depth).
DAIMON_NOTEBOOK__MAX_SOURCE_BYTES¶
int · optional · default 1048576
Per-upload byte budget signed into notebook upload tokens. 1 MiB mirrors the notebook host's own ceiling, which is enforced independently as a second layer of defense.
DAIMON_NOTEBOOK__ALLOW_EDITABLE¶
bool · optional · default False
Let create_notebook_upload_url(editable=True) publish the marimo code editor. Anyone
holding an editor link can run arbitrary code on the notebook host, and any member or
prompt-injected agent can ask for one, so this stays off unless every notebook on the
host belongs to one client. Off: scratch notebooks are always read-only.
Report Host¶
Read from daimon.core.config.ReportHostSettings. Prefix DAIMON_REPORT_HOST__.
Optional report-host client config.
Both fields optional so deployments without a report host keep working. The publishing MCP tool raises ToolError when host_url is unset.
DAIMON_REPORT_HOST__HOST_URL¶
HttpUrl | None · optional · default unset
Base URL of the report-host service (e.g. http://report-host:8002).
DAIMON_REPORT_HOST__ADMIN_SECRET¶
SecretStr | None · optional · default unset · secret
Bearer secret used to authenticate admin calls to the report-host service. Must be the same value the report host itself is configured with (its DAIMON_REPORT__ADMIN_SECRETS) — rotating one without the other breaks publishing.
Sentry¶
Read from daimon.core.config.SentrySettings. Prefix DAIMON_SENTRY__.
Sentry observability config.
All fields optional so deployments without Sentry keep booting. When dsn is None,
Sentry initialization is a no-op.
DAIMON_SENTRY__DSN¶
SecretStr | None · optional · default unset · secret
Sentry DSN. When unset, error reporting is disabled entirely.
DAIMON_SENTRY__ENVIRONMENT¶
str · optional · default production
Environment tag attached to every Sentry event (e.g. 'production', 'staging').
DAIMON_SENTRY__TRACES_SAMPLE_RATE¶
float · optional · default 0.0
Fraction (0.0-1.0) of transactions sampled for Sentry performance tracing.
Billing Policy¶
Read from daimon.core.config.BillingSettings. Prefix DAIMON_BILLING__.
Money policy: markup multiplier and trial credit seed.
Distinct from BillingConfig (billing.py) which holds Stripe secrets (flat STRIPE_ env vars). BillingSettings is nested DAIMON_BILLING__ policy; BillingConfig is Stripe secrets. Keep both separate.
DAIMON_BILLING__MARKUP¶
Decimal · optional · default 1.0
Multiplier applied to raw provider usage cost (every provider) before billing the tenant. 1.0 = pass-through.
DAIMON_BILLING__SELFHOSTED__ADMISSION_CLOCK_SKEW_S¶
float · optional · default 5
Maximum harness clock lag in seconds when associating usage with an existing tariff admission. Frozen at admission; default 5, maximum 60. This tolerance never creates an admission or selects current prices.
DAIMON_BILLING__SELFHOSTED__DEPLOYMENTS¶
dict[str, str] · optional · default {}
JSON object mapping selfhosted Azure deployment names to underlying model ids. Targets must have configured tariffs and aliases cannot shadow another model. The runtime must call the tariff admission gate before paid model work; these settings alone do not enable refusal or execution.
DAIMON_BILLING__SELFHOSTED__MODELS¶
dict[str, list[SelfhostedModelPrice]] · optional · default {}
JSON object keyed by underlying Azure OpenAI model id, each containing a list of historical tariffs. Each requires effective_from (ISO date), input, output and cache_read (USD per million tokens); optional valid_before expires a row. A newer effective_from ends the previous open window. Retain historical rows. Supply verified regional/contract rates; input/output must be positive. Runtime admission must persist the selected tariff before paid work.
DAIMON_BILLING__SIGNUP_CREDIT¶
Decimal · optional · default 10.00
USD credit automatically seeded when a guild/workspace is provisioned, so a freshly- installed tenant can chat immediately on trial credit before paying. Set to 0 to require payment before use.
DAIMON_BILLING__GEMINI_DAILY_MODEL_CAP_USD¶
Decimal · optional · default 20
Most a tenant may spend each UTC day on any one Gemini model, in provider USD at list price, counted across every agent turn. A Gemini agent turn has no token envelope and its usage is debited only once measured, so this is the guard. Checked as each turn starts, for its first request's model and any Flash fallback of it, never mid-turn; a model with no current tariff never runs on any request. It resets at midnight UTC. 0 allows no Gemini turns.
DAIMON_BILLING__OPENAI_DAILY_MODEL_CAP_USD¶
Decimal · optional · default 20
Most a tenant may spend each UTC day on any one OpenAI model, in provider USD at list price, counted across every agent turn. OpenAI sessions carry no native spend limit on this project, so this is the guard. Checked as each turn starts, never mid-turn; a model with no current tariff is refused. It resets at midnight UTC. 0 allows no OpenAI turns.
Provider Daily Ceiling Usd¶
Read from daimon.core.config.ProviderDailyCeilingSettings. Prefix
DAIMON_PROVIDER_DAILY_CEILING_USD__.
The most every tenant together may spend each UTC day on one model provider.
Each tenant's own daily model cap bounds one tenant; tenants are free to create, so only this bounds the deployment's provider bill. The default, $200, lets ten tenants each use up a $20 model cap in a day and holds the worst case near $6,000 a month per provider. Checked with the daily model cap as each turn starts, from today's observed usage at list price, re-read at most once a minute per worker.
DAIMON_PROVIDER_DAILY_CEILING_USD__OPENAI¶
Decimal · optional · default 200
Most all tenants together may spend each UTC day on OpenAI, in provider USD at list price. Once reached, OpenAI turns are refused until midnight UTC. 0 allows no OpenAI turns.
DAIMON_PROVIDER_DAILY_CEILING_USD__GEMINI¶
Decimal · optional · default 200
Most all tenants together may spend each UTC day on Gemini, in provider USD at list price. Once reached, Gemini turns are refused until midnight UTC. 0 allows no Gemini turns.
Support¶
Read from daimon.core.config.SupportSettings. Prefix DAIMON_SUPPORT__.
Ask a person: the default channel per platform, and each person's default credits.
Support credits are their own unit, not the USD in BillingSettings.signup_credit:
sharing billing's ledger would let a request eat a tenant's turns and give a paid-up
tenant unlimited support. A request is charged to the most specific place with a support
limit, else to the person's default credits.
Each platform's requests go to its own default channel, or to a channel the workspace
picked while support_own_channel is on. With neither, Ask a person is unavailable
there: a button that reaches no one is worse than none.
DAIMON_SUPPORT__ESCALATION_CHANNEL_ID¶
str | None · optional · default unset
Default Discord channel id for Ask a person requests from Discord (the unprefixed name
predates per-platform channels). A Teams id (19:…) left here is ignored. A workspace
may pick its own channel instead while support_own_channel is on. Unset, with no own
channel, Ask a person is unavailable on Discord. The bot must be able to post there.
DAIMON_SUPPORT__SLACK_ESCALATION_CHANNEL_ID¶
str | None · optional · default unset
Default Slack channel id for Ask a person requests from Slack. A workspace may pick its own channel instead while support_own_channel is on. Unset, with no own channel, Ask a person is unavailable on Slack. Requests never go to another platform's channel. The bot must be a member of the channel.
DAIMON_SUPPORT__SLACK_ESCALATION_TEAM_ID¶
str | None · optional · default unset
Slack workspace id (T…) that owns DAIMON_SUPPORT__SLACK_ESCALATION_CHANNEL_ID, for a deployment installed in several workspaces: every workspace's requests are posted with that workspace's bot token. Unset posts with the requesting workspace's own token, which suits a single-workspace install. Daimon must be installed in the named workspace.
DAIMON_SUPPORT__TEAMS_ESCALATION_CHANNEL_ID¶
str | None · optional · default unset
Default Teams channel id (19:…) for Ask a person requests from Teams. A workspace may
pick its own channel instead while support_own_channel is on. Unset, with no own
channel, Ask a person is unavailable on Teams. Requests never go to another platform's
channel. The Teams bot must be a member of the channel's team (and of the channel, if it
is private).
DAIMON_SUPPORT__CREDITS_PER_USER¶
int · optional · default 20
Default support credits each person gets within a workspace, spent where no support limit applies. A request costs its menu option's price, one credit on the default menu. Not the USD in DAIMON_BILLING__SIGNUP_CREDIT. 0 leaves Ask a person to places with a support limit.
DAIMON_SUPPORT__FEEDBACK_TO_SUPPORT¶
dict[UUID, bool] · optional · default {}
Deprecated: the support_feedback feature replaces it, and daimon features import-env
stores this map as workspace settings. Per-tenant switch, keyed by tenant UUID: true
also posts every submitted 👎 "What went wrong?" form to where Ask a person requests go.
A workspace setting beats it. Configure DAIMON_SUPPORT__FEEDBACK_TO_SUPPORT as a JSON
object.
Turn¶
Read from daimon.core.config.TurnSettings. Prefix DAIMON_TURN__.
Neutral turn ports. Backend selection is on by default.
channel_backends and agent_backends are emergency stops, not setup: a fresh install
needs neither. Setting one off stops new turns at admission and queued or retried work
before it is sent again.
DAIMON_TURN__PATH¶
'mux' · optional · default mux
Deprecated, no effect: every turn runs through the neutral Events/Sessions ports. The legacy value was removed and fails at startup; remove the variable.
DAIMON_TURN__CHANNEL_BACKENDS¶
bool · optional · default True
Read each agent's and channel's backend configuration at admission. On by default: a channel with no backend configuration is unchanged; a configured one is checked against its profile and refused (backend_unsupported) if the profile cannot meet it or this release cannot run it yet. Emergency stop only: false reads no backend configuration and every turn runs on Anthropic as before.
DAIMON_TURN__AGENT_BACKENDS¶
bool · optional · default True
Capture complete scoped source and resource intent for an agent-selected native backend. Unproved obligations are refused; counterpart identity readback alone never authorizes execution. Requires mux and channel_backends; on by default. Emergency stop only: false refuses agent-selected native backends.
Provider Limits¶
Read from daimon.core.config.ProviderLimitsSettings. Prefix
DAIMON_PROVIDER_LIMITS__.
How many turns one provider key serves at once (DAIMON_PROVIDER_LIMITS__*).
DAIMON_PROVIDER_LIMITS__KEY_TURNS¶
int · optional · default 16
Most turns running at once on one provider API key, across every replica. A turn past the cap waits, then is refused as busy.
DAIMON_PROVIDER_LIMITS__TENANT_TURNS¶
int · optional · default 4
Most of those turns one workspace may hold on one provider API key.
DAIMON_PROVIDER_LIMITS__WAIT_S¶
float · optional · default 20.0
Seconds a turn waits for a free slot before it is refused as busy.
Thread Naming¶
Read from daimon.core.config.ThreadNamingSettings. Prefix DAIMON_THREAD_NAMING__.
Automatic Discord thread titles, generated by a metered Haiku call.
A top-level feature block (DAIMON_THREAD_NAMING__*), not a DiscordSettings
field, per the feature-settings rule. Discord-only in effect: Slack threads have no
title (tests/parity/ test_thread_naming_discord_only.py).
DAIMON_THREAD_NAMING__ENABLED¶
bool · optional · default True
Title bot-created Discord threads from the opening message with a short Haiku-generated name, chosen before the thread is created. The call is metered to the tenant like any other model call. Set false to title threads with the opening message itself, cut to 50 characters.
DAIMON_THREAD_NAMING__MAX_INPUT_CHARS¶
int · optional · default 2000
Characters of the opening message sent to the naming model; longer messages are cut here. Bounds the per-thread naming cost.
DAIMON_THREAD_NAMING__TIMEOUT_SECONDS¶
float · optional · default 5.0
Seconds to wait for the naming model before the thread opens under a title taken from the opening message. The thread is created only after this call, so this is the most a mention can wait before anything appears.
Outbound¶
Read from daimon.core.config.OutboundSettings. Prefix DAIMON_OUTBOUND__.
Etiquette for posts the agent makes through tools (DAIMON_OUTBOUND__*).
Rules live in daimon.core.outbound and apply only to posts that reach other people;
the own conversation is unchanged. Unattended turns skip the budget, length and caption
limits but keep mentions and attribution.
DAIMON_OUTBOUND__REACH_BUDGET_ENABLED¶
bool · optional · default True
Deprecated: use DAIMON_FEATURES__REACH_BUDGET.
DAIMON_OUTBOUND__MAX_THREADS¶
int · optional · default 2
New threads or forum posts outside the own channel, or tagging someone else, one interactive turn opens without approval.
DAIMON_OUTBOUND__MAX_OWN_THREADS¶
int · optional · default 5
New threads without tagging anyone that one interactive turn opens in the own channel without approval.
DAIMON_OUTBOUND__MAX_PLACES¶
int · optional · default 2
Channels, threads and DM recipients outside the own conversation one interactive turn posts into without approval.
DAIMON_OUTBOUND__MAX_PEOPLE¶
int · optional · default 5
Distinct people one interactive turn tags in tool posts, the own conversation included, without approval.
DAIMON_OUTBOUND__MAX_LENGTH¶
int · optional · default 1500
Longest tool post, in characters, an interactive turn may send outside its own conversation. 0 turns the limit off.
DAIMON_OUTBOUND__MIN_MEDIA_CAPTION¶
int · optional · default 60
Shortest caption, in characters without mentions and links, for a video or audio file an interactive turn posts outside its own conversation. 0 turns the rule off.
Turn Queue¶
Read from daimon.core.config.TurnQueueSettings. Prefix DAIMON_TURN_QUEUE__.
The queue a turn waits in when the concurrency caps are full (DAIMON_TURN_QUEUE__*).
One in-memory queue per adapter process, served round-robin across tenants and FIFO within one. A queued turn shows the ordinary status card; nothing tells the person it is queued.
DAIMON_TURN_QUEUE__ENABLED¶
bool · optional · default True
Queue turns that arrive while the global or the per-tenant concurrency cap is full, and start them as slots free. Set false to refuse them with the plain capacity notice instead.
DAIMON_TURN_QUEUE__MAX_PER_TENANT¶
int · optional · default 50
Most turns one tenant (Discord server, Slack workspace, Teams tenant) may have waiting in one adapter process. A turn beyond it is refused with the plain capacity notice.
DAIMON_TURN_QUEUE__MAX_TOTAL¶
int · optional · default 500
Most turns waiting across all tenants in one adapter process. A turn beyond it is refused with the plain capacity notice.
DAIMON_TURN_QUEUE__MAX_WAIT_S¶
float · optional · default 300.0
Seconds a queued turn may wait for a slot. A safeguard only: the turn then leaves the queue and its card ends with the ordinary error.
Watches¶
Read from daimon.core.config.WatchesSettings. Prefix DAIMON_WATCHES__.
DAIMON_WATCHES__EXECUTOR_SECRET¶
SecretStr | None · optional · default unset · secret
Private poll executor shared secret, also supplied as DAIMON_SIDECAR__EXECUTOR_SECRET. Unset disables executor transport. Never expose the private listener through the public proxy.
DAIMON_WATCHES__ENABLED¶
bool · optional · default False
Enable polling of the listed read tools and watch dispatch. Page-event watches are not yet delivered. Keep disabled until the execution-bound unattended origin grants, non- gateable cleanup and watch release are reviewed. The database global gate must also be explicitly enabled by an operator.
DAIMON_WATCHES__POLLABLE_TOOLS¶
list[PollableTool] · optional · default [{"server":"daimon-mcp","tool":"read_thread","credential":"none","returns_chat":true,"max_interval_floor_s":60,"label":"Discord thread"},{"server":"daimon-mcp","tool":"read_channel","credential":"none","returns_chat":true,"max_interval_floor_s":60,"label":"Discord channel"}]
JSON list of the tools a watch may poll in this deployment. Only a listed tool can be polled: a watch on a tool taken off the list pauses at its next poll and its owner is told. Each entry has server ("daimon-mcp" for a native reader, otherwise an https MCP server URL, never a server name), tool (exact name), credential ("none" for native readers; "agent", "owner" or "relay" for MCP servers), returns_chat (required: true only for native readers, which drop Daimon's own messages), max_interval_floor_s (shortest interval, at least 60, default 300) and label (shown on the approval card). Native entries must be read_thread or read_channel. Daimon's chat readers and chat_tools are refused on MCP servers. Credential owner polls with each watch owner's own read-only key, which they send once through a private form: for example a read-scoped API key the person creates on that server. Credential relay polls a signed-identity relay server (<root>/mcp-identity/<name>) as the watch owner, marked unattended, at the place the watch reports to. A server's read-only annotation never allows a poll; only this list does, and a server can still write when it says it only reads. A watch below a raised floor polls at the floor. Default (also used when the value is empty): read_thread and read_channel on daimon-mcp, credential none, returns_chat true, floor 60. Set [] to allow no polls.
DAIMON_WATCHES__CALLBACK_BASE_URL¶
str | None · optional · default unset
Public https address of the callback endpoint, with no path, query or trailing slash (for example https://hooks.example.com). Callback watches give their owner a secret link under it once; unset refuses new callback watches and leaves existing ones working. Route /callbacks/watches/ on the sidecar to it, and keep proxy access logs off that path, since the secret is part of it.
DAIMON_WATCHES__CALLBACK_MAX_BODY_BYTES¶
int · optional · default 4096
Largest body, in bytes, that one post to a callback watch link may carry; a larger post is refused. Default 4096 (4 KiB); up to 524288 (512 KiB). Raise it for senders that post a whole record, for example 262144 for 256 KiB. The per-watch, per-owner and per-server evidence limits grow with it, and a wake that would carry more than 512 KiB of evidence drops its oldest posts. Signed page events keep their own 4 KiB limit.
DAIMON_WATCHES__CHAT_TOOLS¶
list[str] · optional · default unset
JSON list of tool names on MCP servers that return chat or archive text, such as a chat archive search. A watch could fire on its own report through them, so POLLABLE_TOOLS refuses them on any MCP server, whatever returns_chat says. Daimon's own read_thread, read_channel and search_messages are always refused there. Default: none.
Private Channel Messages¶
Read from daimon.core.config.PrivateChannelMessagesSettings. Prefix
DAIMON_PRIVATE_CHANNEL_MESSAGES__.
Every message in Teams private and shared channels, through Microsoft Graph.
Teams sends a bot only the posts there that @mention it. Top-level, not under
TeamsSettings, as every feature setting is; only Teams reads it.
DAIMON_PRIVATE_CHANNEL_MESSAGES__ENABLED¶
bool · optional · default False
When True, Daimon subscribes to Microsoft Graph change notifications for each Teams private or shared channel it is in, where Teams sends the bot only the posts that @mention it. Replies in followed threads, replies to Daimon's messages and typed @<bot name> mentions then work there too, usually within seconds. Needs DAIMON_TEAMS__PUBLIC_URL (Graph posts to <public_url>/api/graph/notifications and /api/graph/lifecycle) and the application permission ChannelMessage.Read.All with tenant admin consent.
Tool Safety¶
Read from daimon.core.config.ToolSafetyPolicy. Prefix DAIMON_TOOL_SAFETY__.
What the operator decided about attached tools.
Keys name a server (linear) or one tool on it (linear/create_issue); a tool key is
more specific than its server key and wins.
Read/write classes and confirmation for attached third-party MCP tools. See ToolSafetyPolicy.
DAIMON_TOOL_SAFETY__ENABLED¶
bool · optional · default False
Deprecated: use DAIMON_FEATURES__TOOL_SAFETY. Classify attached (third-party) MCP tools as read or write and gate the writes: a write in chat waits for the requester to press Approve on a confirmation card, and a write in a routine or other unattended run is refused unless listed in unattended_writes. A new session gets it when created; an existing chat session gets it at its next bind, and an unattended turn (agent chat, daimon run, a routine, a checkpoint) sets it on the session before each send. Off lets ordinary third-party calls run, but Daimon's card-only actions still ask (lead resolution, a backend switch and Microsoft mail and invites; file changes only with it on).
DAIMON_TOOL_SAFETY__AGENT_RULES¶
bool · optional · default False
Apply workspace-admin tool rules for individual agents and MCP tools: third-party tools, and Daimon's own daimon-mcp/<tool> (ask and deny). Off by default; stored rules remain editable but inactive until enabled.
DAIMON_TOOL_SAFETY__EFFECTS¶
dict[str, 'read' | 'write'] · optional · default {}
Override the read/write class, e.g. {"linear/get_team": "read", "notion": "write"}. Keys are a server name or server/tool. Unlisted tools are classified from the server's own MCP annotations when the server is listed in trusted_annotations and sends them (readOnlyHint true is a read unless destructiveHint is also true), otherwise from their name: a plain get_, list_, search_ ... is a read; a compound name (get_or_create, search_and_replace, run_query) and anything unknown is a write.
DAIMON_TOOL_SAFETY__TRUSTED_ANNOTATIONS¶
tuple[str, ...] · optional · default unset
MCP server names whose own tool annotations count, e.g. ["bridge"]. For a listed server Daimon lists its tools once per turn and runs a tool marked readOnlyHint true (without destructiveHint true) as a read, and one marked destructiveHint true or readOnlyHint false as a write; each such auto-allow is logged. An effects pin or a denied entry still wins. An unlisted server's annotations are never read, so its tools are classified by name. Empty (the default) reads none. Trust is by server name across every agent in the deployment: any agent that attaches a server with a listed name has its hints counted, so list only names you control. Names are matched exactly; there is no '*' wildcard.
DAIMON_TOOL_SAFETY__DENIED¶
tuple[str, ...] · optional · default unset
Servers or server/tool pairs that are always refused, e.g. ["hubspot/delete_deal"].
DAIMON_TOOL_SAFETY__UNATTENDED_WRITES¶
tuple[str, ...] · optional · default unset
Servers or server/tool pairs whose writes may run in routines and other unattended runs, e.g. ["linear/create_issue"]. "*" allows every write there. Daimon's own add_skill never confirms unattended.
DAIMON_TOOL_SAFETY__CONFIRMATION_TIMEOUT_S¶
int · optional · default 600
How long an approval card waits for the requester's Approve or Deny, in seconds (up to 24 hours), before it expires and the call is refused. A card never outlives its turn: it shows and keeps the earlier of this and the turn's own deadline. Production keeps the 10-minute default; staging can set it short (60-90) so a precheck or load test does not hold a turn for ten minutes.
Artifacts¶
Read from daimon.core.config.ArtifactsSettings. Prefix DAIMON_ARTIFACTS__.
Optional private object storage for hosted-client artifacts.
This whole block is optional: it stays unset until at least one of its variables is set, and the features that read it are inactive while it is.
Optional private S3-compatible or Azure Blob store for signed chart links. Bounded image embeds still run when this is unset.
DAIMON_ARTIFACTS__BACKEND¶
's3' | 'azure_blob' · optional · default s3
Artifact storage backend: s3 (default) or azure_blob.
DAIMON_ARTIFACTS__ENDPOINT_URL¶
HttpUrl · required
S3-compatible endpoint or Azure Blob account URL (https://<account>.blob.core.windows.net); used for uploads and signed GET URLs.
DAIMON_ARTIFACTS__BUCKET¶
str · required
Private S3 bucket or Azure Blob container name; provision it before startup.
DAIMON_ARTIFACTS__ACCESS_KEY_ID¶
SecretStr · optional · default unset · secret
S3 access key id; required only for the s3 backend.
DAIMON_ARTIFACTS__SECRET_ACCESS_KEY¶
SecretStr · optional · default unset · secret
S3 secret access key; required only for the s3 backend.
DAIMON_ARTIFACTS__AZURE_CONNECTION_STRING¶
SecretStr | None · optional · default unset · secret
Local Azurite connection string only; BlobEndpoint must match the loopback endpoint_url. Leave unset on Azure; managed identity signs user-delegation SAS without account keys.
DAIMON_ARTIFACTS__AZURE_CLIENT_ID¶
str | None · optional · default unset
User-assigned managed identity client id; required for azure_blob except local Azurite. ManagedIdentityCredential uses only this identity, with no environment service-principal or developer-login fallback.
DAIMON_ARTIFACTS__REGION¶
str · optional · default us-east-1
S3 signing region supplied by the bucket provider.
DAIMON_ARTIFACTS__URL_TTL_SECONDS¶
int · optional · default 600
Lifetime of each presigned artifact GET URL; defaults to ten minutes.
Scheduler¶
Read from daimon.adapters.scheduler.settings.SchedulerSettings. Prefix
DAIMON_SCHEDULER__.
DAIMON_SCHEDULER__MAX_AGE_S¶
float · optional · default 900.0
Freshness window for routines with catch_up_policy=skip. Older slots are recorded as skipped and advanced; run-once routines ignore this window.
DAIMON_SCHEDULER__TICK_INTERVAL_S¶
float · optional · default 30.0
Seconds between scheduler ticks (loop sleep). The usage sweep runs on its own loop and pauses the same interval between passes.
DAIMON_SCHEDULER__USAGE_SWEEP_ENABLED¶
bool · optional · default True
Run the headless usage sweep: settle the MCP agent-chat sessions whose turns nobody read to the end (each headless send leaves a settle request; a status read that sees the turn end settles it first). It reads only the sessions those requests name. When off, such a session is billed the next time a read sees its last turn ended.
DAIMON_SCHEDULER__MAX_CONCURRENT_FIRES¶
int · optional · default 10
Global cap on simultaneously-dispatched routine fires across all ticks. Conservative against the shared Anthropic key's rate limit; per-tenant caps are enforced separately by the adapters.
DAIMON_SCHEDULER__DISPATCH_TIMEOUT_S¶
float · optional · default 3000.0
An OUTER PROCESS GUARD (asyncio.wait_for), not the turn's deadline. The core turn ceiling (daimon.core.turn.ceiling: 45 minutes, or less by the unattended run limit) is enforced inside headless_runner.run_turn and fires first, producing a TurnError(kind='ceiling'). This bound only catches a fire that hangs OUTSIDE the ceiling's two legs (routine row bookkeeping, agent/environment resolution, the usage- recorder factory, record_result), and must stay strictly above LONGEST_TURN_CEILING_S or the core ceiling becomes unreachable for routines. Each routine has its own timeout; continuous scheduler ticks do not await in-flight routines. Missed slots follow the routine's catch_up_policy.
DAIMON_SCHEDULER__ADVISORY_LOCK_KEY¶
int · optional · default 4918292864457134915
Postgres pg_try_advisory_lock int64 key. Default is the ASCII encoding of 'DAIMONSC'. Two scheduler processes share the key; the second logs that it did not get the lock and exits non-zero.
DAIMON_SCHEDULER__HEALTH_PORT¶
int · optional · default 8082
Port for the stdlib liveness responder (used by the platform health check). Must not collide with mcp's 8080 or discord's 8081 on the shared host.
Sidecar¶
Read from daimon.adapters.sidecar.settings.SidecarSettings. Prefix DAIMON_SIDECAR__.
DAIMON_SIDECAR__DATABASE_URL¶
SecretStr · required · secret
Database URL for a dedicated login granted only daimon_sidecar. Require TLS for remote databases.
DAIMON_SIDECAR__SIGNING_KEYS¶
dict[str, SecretStr] · optional · default unset · secret
Page-event HMAC keys for page hosts, by key ID, each at least 32 random bytes. Supply from your secret manager; keys never enter browser HTML or watch rows. Only configured page hosts may sign events; outside senders are unsupported.
DAIMON_SIDECAR__HOST¶
str · optional · default 0.0.0.0
Private listen address behind the callback-only TLS proxy.
DAIMON_SIDECAR__PORT¶
int · optional · default 8780
Private callback and health HTTP port.
DAIMON_SIDECAR__MAX_CONCURRENT¶
int · optional · default 8
Maximum concurrent callback transactions; excess requests receive 429.
DAIMON_SIDECAR__REQUEST_TIMEOUT_S¶
float · optional · default 10
Total callback body and database deadline in seconds.
DAIMON_SIDECAR__EXECUTOR_SECRET¶
SecretStr | None · optional · default unset · secret
Private poll executor shared secret, matching DAIMON_WATCHES__EXECUTOR_SECRET. Unset disables polling transport.
DAIMON_SIDECAR__OS_EXECUTOR_ORIGIN¶
'http://watch-executor:8767' | 'http://127.0.0.1:8767' · optional · default http://watch-executor:8767
Fixed private watch executor origin. No outside hosts, redirects or source URLs.
DAIMON_SIDECAR__POLL_INTERVAL_S¶
float · optional · default 5
Seconds between bounded scheduling ticks. Disabled producers never poll.
Notebook host (standalone service)¶
Read from notebook_host.config.Settings. Prefix DAIMON_NOTEBOOK__.
A standalone service in apps/notebook-host, deployed and configured separately from
the Daimon processes. It is not part of docker-compose.yml.
This service shares the DAIMON_NOTEBOOK__ prefix with a block on Daimon's own
Settings, so DAIMON_NOTEBOOK__ADMIN_SECRET, DAIMON_NOTEBOOK__ALLOW_EDITABLE,
DAIMON_NOTEBOOK__MAX_SOURCE_BYTES appear twice on this page — once for the service and
once for the Daimon side that calls it. They are read by different processes; a single
shared env file would set both.
DAIMON_NOTEBOOK__DATA_DIR¶
Path · optional · default /data/notebooks
DAIMON_NOTEBOOK__ADMIN_SECRETS¶
list[SecretStr] · optional · default unset · secret
DAIMON_NOTEBOOK__ADMIN_SECRET¶
SecretStr | None · optional · default unset · secret
DAIMON_NOTEBOOK__HOST_PORT¶
int · optional · default 8001
DAIMON_NOTEBOOK__MARIMO_PORT_START¶
int · optional · default 8100
DAIMON_NOTEBOOK__MARIMO_PORT_END¶
int · optional · default 8160
DAIMON_NOTEBOOK__SUBPROCESS_TTL_SECONDS¶
int · optional · default 86400
DAIMON_NOTEBOOK__MAX_NOTEBOOK_TTL_SECONDS¶
int · optional · default 31536000
DAIMON_NOTEBOOK__WARM_WINDOW_SECONDS¶
int · optional · default 7200
DAIMON_NOTEBOOK__SWEEP_INTERVAL_SECONDS¶
int · optional · default 300
DAIMON_NOTEBOOK__SPAWN_TIMEOUT_SECONDS¶
float · optional · default 20.0
DAIMON_NOTEBOOK__VALIDATE_ON_PUBLISH¶
bool · optional · default True
DAIMON_NOTEBOOK__VALIDATION_TIMEOUT_SECONDS¶
float · optional · default 60.0
DAIMON_NOTEBOOK__PUBLIC_HOST¶
str · optional · default localhost
DAIMON_NOTEBOOK__PUBLIC_URL_BASE¶
str | None · optional · default unset
DAIMON_NOTEBOOK__MAX_SOURCE_BYTES¶
int · optional · default 1048576
DAIMON_NOTEBOOK__MAX_ATTACHMENT_BYTES_CEILING¶
int · optional · default 104857600
DAIMON_NOTEBOOK__MARIMO_RLIMIT_AS_BYTES¶
int · optional · default 4294967296
DAIMON_NOTEBOOK__MARIMO_RLIMIT_CPU_SECONDS¶
int · optional · default 3600
DAIMON_NOTEBOOK__JAIL_UID_START¶
int · optional · default 100000
DAIMON_NOTEBOOK__JAIL_UID_END¶
int · optional · default 100999
DAIMON_NOTEBOOK__ALLOW_UNJAILED_SPAWN¶
bool · optional · default False
DAIMON_NOTEBOOK__ALLOW_EDITABLE¶
bool · optional · default False
DAIMON_NOTEBOOK__ALLOW_HTTP_LINKS¶
bool · optional · default False
DAIMON_NOTEBOOK__ORIGIN_BASE¶
str | None · optional · default unset
DAIMON_NOTEBOOK__ORIGIN_SCHEME¶
'https' | 'http' · optional · default https
DAIMON_NOTEBOOK__TENANTS¶
tuple[UUID, ...] · optional · default unset
Tenant UUIDs a public host without DAIMON_NOTEBOOK__ORIGIN_BASE accepts uploads from,
comma-separated or as a JSON array of strings. Their notebooks share one browser origin
and can reach each other, so list only tenants one operator controls. Empty refuses
every upload. Ignored with ORIGIN_BASE (every notebook gets its own origin) and on
localhost. An unlisted tenant's 403 names its id; daimon tenants list --json shows
every tenant's id.
DAIMON_NOTEBOOK__UIDS_FILE¶
Path | None · optional · default unset
DAIMON_NOTEBOOK__PIDS_FILE¶
Path | None · optional · default unset
DAIMON_NOTEBOOK__BLOGS_FILE¶
Path | None · optional · default unset
DAIMON_NOTEBOOK__CONSUMED_FILE¶
Path | None · optional · default unset
DAIMON_NOTEBOOK__ALLOWED_ORIGINS¶
list[str] · optional · default unset
Report host (standalone service)¶
Read from report_host.config.Settings. Prefix DAIMON_REPORT__.
A standalone service in apps/report-host, deployed and configured separately from the
Daimon processes. It is not part of docker-compose.yml.
DAIMON_REPORT__DATA_DIR¶
Path · optional · default /data/reports
Root of the host's persistent volume: SQLite stores, bundles, PDFs.
DAIMON_REPORT__ADMIN_SECRETS¶
list[SecretStr] · optional · default unset · secret
CSV of bearer tokens accepted on admin routes (DAIMON_REPORT__ADMIN_SECRETS=primary,backup). At least one is required — the host refuses to start without one.
DAIMON_REPORT__MCP_URL¶
HttpUrl · required
The seam endpoint this host calls to run turns, poll cost, and mint tokens.
DAIMON_REPORT__PUBLIC_URL_BASE¶
HttpUrl · required
External URL prefix used to build recipient links and the per-turn upload URL handed to the agent.
DAIMON_REPORT__HOST_PORT¶
int · optional · default 8002
Port the host's uvicorn server binds.
DAIMON_REPORT__RESERVE_USD¶
Decimal · optional · default 0.60
Amount held against a report's spend cap the moment a turn starts, released and replaced by the real cost once the turn settles. Measured reader turns ran roughly sixteen to sixty-three cents; a revision-with-rebuild came in under this reserve.
DAIMON_REPORT__POLL_INTERVAL_SECONDS¶
float · optional · default 2.0
How often the host polls the seam for turn progress.
DAIMON_REPORT__TURN_TIMEOUT_SECONDS¶
int · optional · default 1200
A turn still running past this many seconds is cancelled by the host.
DAIMON_REPORT__MAX_PDF_BYTES¶
int · optional · default 52428800
Hard ceiling on an uploaded revised-PDF body size.
DAIMON_REPORT__MAX_BUNDLE_BYTES¶
int · optional · default 26214400
Hard ceiling on a published report bundle. Mirrors the seam's own bundle cap and is enforced independently here as a second layer of defense.
DAIMON_REPORT__MAX_OPEN_THREADS_PER_RECIPIENT¶
int · optional · default 3
Cap on concurrently open threads a single recipient may hold.
DAIMON_REPORT__MAX_RUNNING_TURNS_PER_REPORT¶
int · optional · default 4
Cap on concurrently running turns across one report's threads.
DAIMON_REPORT__RECIPIENT_LINK_TTL_DAYS¶
int · optional · default 90
How long a per-recipient link remains valid before expiring.
DAIMON_REPORT__THREAD_IDLE_ARCHIVE_HOURS¶
int · optional · default 24
A thread idle longer than this is archived by the host's sweep.
DAIMON_REPORT__RETENTION_DAYS¶
int · optional · default 365
A report is deleted, with its PDFs, revisions and comment threads, this many days after its last update. 0 keeps reports until an admin deletes them.
Billing (Stripe)¶
Read from the process environment by daimon.core.billing.load_billing_config, not from
a settings model — these carry no DAIMON_ prefix. All seven are required together:
with any one unset, billing is disabled rather than rejected, and the top-up flow cannot
create a checkout session.
STRIPE_SECRET_KEY¶
str · required for billing · secret
Stripe API secret key used for checkout sessions.
STRIPE_WEBHOOK_SECRET¶
str · required for billing · secret
Signing secret for the Stripe webhook endpoint.
STRIPE_PRICE_10_USD¶
str · required for billing
Stripe price id for the $10 top-up.
STRIPE_PRICE_25_USD¶
str · required for billing
Stripe price id for the $25 top-up.
STRIPE_PRICE_50_USD¶
str · required for billing
Stripe price id for the $50 top-up.
STRIPE_PRICE_100_USD¶
str · required for billing
Stripe price id for the $100 top-up.
MCP_PUBLIC_URL¶
str · required for billing
Origin the checkout return URLs are built from — billing appends /billing/success and
/billing/cancel to it. Separate from DAIMON_MCP__PUBLIC_URL, which billing does not
read.
Docker Compose¶
Interpolated by docker-compose.yml itself; no Daimon process reads them. They exist so
the compose file can build DAIMON_DATABASE__URL for every service from one password.
POSTGRES_USER¶
str · optional · default daimon
Postgres superuser the postgres service is created with.
POSTGRES_PASSWORD¶
str · required
Its password. Required — every service interpolates it into DAIMON_DATABASE__URL
behind a fail-fast ${VAR:?} guard. Keep it URL-safe (avoid @ : / % #): it is
substituted raw into the asyncpg DSN.
POSTGRES_DB¶
str · optional · default daimon
Database created on first boot.
POSTGRES_PORT¶
str · optional · default 5432
Host port the container's 5432 is published on, on 127.0.0.1.