Skip to content
DocumentationAPI ReferenceChangelog
Self-hostedTalon Studio v1.1.22-beta

Environment Variables

Configure the public URL, secrets, the first admin, the database, and the security switches for your appliance. None of them is required: an empty .env boots.

How it works

Talon Studio is configured entirely through environment variables, read at container start. Set them in the .env beside the compose file, in Helm values, or in your platform's settings, then recreate the container (docker compose up -d) for a change to take effect.

Nothing is required. Every secret you leave unset is generated on first boot, kept in /data/secrets (mode 0600) and reused on every restart; a value you set always wins and is never written there. The ones you will usually set are NEXTAUTH_URL once a proxy is in front, and the first admin's username and email.

URL, secrets and first admin

TALON_STUDIO_IMAGE
The image and tag the release compose file runs. The template pins a release; move the tag to upgrade — see Upgrading.
TALON_HTTP_PORT
The host port the compose file publishes the app on, on 127.0.0.1. Default 3000; the container always listens on 3000.
NEXTAUTH_URL
The URL people use to reach the app, e.g. https://talon.example.com when TLS terminates at a proxy. It is also the base URL deployed detections post SOC notables back to; with it unset, no push webhook is attached and SOC falls back to the manual pull.
AUTH_TRUST_HOST
Trust the host headers a proxy sends. Defaults to true in the image.
AUTH_SECRET
Signs sessions and OAuth state. NEXTAUTH_SECRET is accepted as the same thing. With both unset, one value is generated into /data/secrets/auth_secret and used for both. Set one yourself and set the other beside it: Studio warns at every boot about whichever is missing.
TALON_ENCRYPTION_KEY
Encrypts SIEM tokens, AI keys and the other credentials stored at rest. 64 hex characters (or 32 UTF-8 bytes). Generated into /data/secrets/encryption_key if unset. Keep it stable across upgrades and restores.
TALON_ENCRYPTION_KEY_PREVIOUS
Optional comma-separated previous keys for a rotation. While it is set, Studio decrypts old ciphertext with them and, at every start, re-encrypts every stored secret with the current key.
TALON_ADMIN_USERNAME
First admin's username. Default talon.
TALON_ADMIN_EMAIL
First admin's email. Default admin@talon.local.
TALON_ADMIN_PASSWORD
Leave unset (recommended) for a random password, printed once in the log and saved to /data/secrets/initial-admin.txt, which must be changed at first sign-in. A well-known value such as talon refuses startup.
TALON_ADMIN_FORCE_PASSWORD_CHANGE
Set true to make a password you set above change at first sign-in too.

The TALON_ADMIN_* variables apply only when the database has no users. They never change or reset an existing account.

Database and pySigma

POSTGRES_PASSWORD
Embedded database password. Generated into /data/secrets/postgres_password if unset. A volume initialised before generation existed keeps the password it was created with (talon), which the image refuses as a default credential.
POSTGRES_USER
Default talon.
POSTGRES_DB
Default detections.
POSTGRES_HOST / POSTGRES_PORT
Default 127.0.0.1 and 5432, inside the container. Never publish the port.
POSTGRES_URL
The full connection string. Built from the variables above when unset. Set it for an external database.
TALON_DISABLE_EMBEDDED_PG
Set true to skip the embedded Postgres and use POSTGRES_URL. The entrypoint waits up to 60s for it and exits if it never answers. A non-loopback host needs sslmode=require, verify-ca or verify-full.
POSTGRES_POOL_MAX
Connections per app process. Default 20.
TALON_PRE_UPGRADE_BACKUPS_KEEP
How many automatic pre-upgrade backups to keep in /data/backups. Default 3. One is written before a boot that has migrations to apply; TALON_SKIP_PRE_UPGRADE_BACKUP=true migrates without one, for example when the volume has no room. See Upgrading.
SIGMA_SERVICE_URL
The pySigma sidecar. Default http://127.0.0.1:8001, set in the image. SIGMA_HOST and SIGMA_PORT set where the sidecar listens; change this with them.
TALON_DATA_DIR
The data root. Default /data. The database, secrets, uploads and logs follow it (TALON_SECRETS_DIR, TALON_UPLOADS_DIR and LOG_DIR override those); the image sets the repos (GIT_STORAGE_PATH) and the content clones to paths under /data itself, so they do not move with it.

Security switches

TALON_STRICT_SECURITY
Set true for any real install. /api/metrics then accepts only the TALON_METRICS_TOKEN bearer, and the startup checks keep their production behaviour even if NODE_ENV is overridden. See Security Hardening for what they refuse.
TALON_ALLOW_INSECURE_DEFAULTS
For a private lab only. Waives the non-critical startup checks — default Postgres credentials, the local metrics token, an external database without TLS. It never waives a placeholder or weak secret or a well-known admin password.
TALON_TRUST_PROXY
Set true when a trusted proxy appends the client's address to X-Forwarded-For, so rate limits and IP-allowlisted API tokens see the real client IP. Studio believes only the last hop of that header and ignores X-Real-IP for both. IP-allowlisted tokens fail closed without it.
TALON_METRICS_TOKEN
Bearer token for GET /api/metrics, also accepted on /api/health?detailed=1. Unset and not strict, signed-in users can read metrics.
TALON_STRICT_OUTBOUND_URLS
Set true to block outbound integration requests to every private or reserved address. By default loopback and LAN hosts are allowed (on-prem SIEMs are normal) and cloud-metadata endpoints are always blocked.
TALON_OUTBOUND_ALLOWED_HOSTS
Optional. A comma-separated list of exact hosts, or .example.com for a domain and its subdomains. When set, Studio refuses any outbound connection, webhook or MCP server address not on it, on top of the private-address checks.
TALON_ALLOW_PRIVATE_GIT_HOSTS
Set true to allow Git remotes on private or internal hosts.
TALON_ALLOW_PRIVATE_AI_BASE_URLS
Set true to add a self-hosted model on a private or localhost address. The image rejects those otherwise. In the Docker install localhost is Studio's own container: reach Ollama on the host at http://host.docker.internal:11434/v1 (both compose files map that name, which Docker Engine on Linux does not do on its own), and start Ollama with OLLAMA_HOST=0.0.0.0, since it listens only on 127.0.0.1 by default.
TALON_ALLOW_INSECURE_AI_TLS
Set true only for an approved internal AI endpoint with invalid TLS.
NODE_EXTRA_CA_CERTS
Path to a mounted CA bundle, for outbound HTTPS to services behind a corporate CA.
TALON_ALLOW_INSECURE_TLS
Set true to let SIEM, pipeline and syslog connections skip certificate checks on a production install. Without it, their Allow self-signed switch is refused outside a local lab; adding the server's CA is the better fix.
TALON_REQUIRE_TLS
Set true to make TLS mandatory: no http:// outbound URL, no syslog over UDP or TCP, no skipped certificate check (whatever the two allow switches say), and no start on a plain http NEXTAUTH_URL or an unencrypted external Postgres. Loopback and Studio's own side containers are exempt. Off by default.
TALON_TLS_CERT_FILE · TALON_TLS_KEY_FILE
Serve HTTPS from the container itself, with no proxy: PEM files under /data, readable by the talon user. Set both or neither. The listener serves TLS 1.2 or later on TALON_HTTPS_PORT (default 3443).
TALON_TLS_CLIENT_CA_FILE
With the built-in listener, require client certificates signed by this CA (mutual TLS). A connection without one is refused before it reaches Studio.

Logs, sessions and metrics

LOG_LEVEL
debug, info (default), warn or error.
LOG_FORMAT
json, the image's default: one ECS document per line, for a log pipeline. text writes human-readable lines instead.
LOG_HTTP_URL
Pushes Talon's own logs to an HTTP collector; off when unset. The format, auth header and batching are on the Logging page.
OTEL_EXPORTER_OTLP_ENDPOINT
Turns on OpenTelemetry tracing over OTLP/HTTP. Off when unset.
LOG_RETENTION_DAYS
Days to keep rotated log files in /data/logs. Default 14.
LOG_MAX_FILE_MB
Size at which the log file rotates. Default 50. DISABLE_LOG_FILE=true turns the file off.
SESSION_MAX_AGE_DAYS
Absolute session lifetime. Default 7.
AUDIT_LOG_RETENTION_DAYS
How long audit-log rows are kept before the startup purge removes them. Default 365.

Signing people out after inactivity is not an environment variable: an admin sets Sign out after inactivity on the Policies tab of Settings → Users & teams — Never, or from 15 minutes to 24 hours, 30 minutes by default. NEXT_PUBLIC_IDLE_TIMEOUT_MINUTES is no longer read; remove it if an old .env carries it.

Content, AI and licence

DISABLE_DETECTION_CONTENT_SYNC
Set true to stop the content library syncing from its public Git sources (SigmaHQ, Splunk Security Content, Atomic Red Team and others). It runs at startup and then hourly (CONTENT_SYNC_INTERVAL_MS).
SIGMA_RULES_REPO
Point a content source at an internal mirror. Also SPLUNK_SECURITY_CONTENT_REPO, AZURE_SENTINEL_REPO, CHRONICLE_DETECTION_RULES_REPO, FALCONFRIDAY_REPO and ELASTIC_DETECTION_RULES_REPO.
TALON_DISABLE_UPDATE_CHECK
Set true to stop the in-app check for a newer release. While the app is open it asks https://www.talonlabs.dev/releases.json about once an hour, on any key, reads a newer release's notes from https://www.talonlabs.dev/changelog/studio.md, and sends nothing about the install.
TALON_LLM_GATEWAY_URL
Optional OpenAI-compatible AI gateway base URL, with TALON_LLM_GATEWAY_API_KEY.
ANTHROPIC_API_KEY
Optional fallback provider key, as are OPENAI_API_KEY and XAI_API_KEY. AI providers are normally configured per organisation in the UI.
CLAUDE_CODE_OAUTH_TOKEN / CODEX_ACCESS_TOKEN
For the Claude Code (subscription) and Codex (subscription) providers: a server-wide token, used when the connection under Settings → AI carries none of its own.
AGENT_MAX_RUNS_PER_DAY
Agent runs per organisation per 24 hours. Default 500; 0 for no limit.
ASSISTANT_TOKEN_BUDGET
Tokens per organisation per budget window (ASSISTANT_TOKEN_BUDGET_WINDOW, default 86400 seconds), shared by Claw and the agents. Default 50000000; 0 for no limit. A Token budget set in Settings → AI overrides it. SOC autotriage does not start when this and AGENT_MAX_RUNS_PER_DAY are both 0.
TALON_TTS_URL
Where the kokoro voice container answers. The release compose file sets http://kokoro:8880; set it empty to turn the server voice off, and the browser's own voice reads replies. Helm: config.ttsUrl.
TALON_TEAMS_LINK_PREVIEWS
Set false to stop Teams fetching previews of links people post. On by default; Studio fetches each page itself, through its outbound URL guard.
TALON_RERANK
Set off to stop the search reranker, a small model downloaded on first start and after each upgrade.
TALON_LICENSE_KEY
A signed talstu_… key — your Community key — applied at startup once the first admin exists. Safe across restarts; meant for provisioning automation — an admin can paste the same key in the License dialog instead. With no key either way, the instance shows only the key screen. Helm: secrets.licenseKey.
TALON_LICENSE_API_URL
Talon Labs' licence API, https://www.talonlabs.dev/api/license in the release compose file and the Helm chart (config.licenseApiUrl). A Community key never calls it. Unset or empty, the appliance makes no licence call. Making no call to Talon Labs at all also needs TALON_DISABLE_UPDATE_CHECK=true.

There is no variable that changes the Community Edition limits, bypasses the licence check, or substitutes the key it verifies against. TALON_LICENSE_PUBLIC_KEY, SELF_HOSTED_COMMUNITY_MAX_* and SELF_HOSTED_TEAM_MAX_* are no longer read; remove them if an old .env carries them. The background loops and the AI assistant have further tuning variables, all with safe defaults.

An example .env

A .env for an install behind a TLS proxy:

.env
TALON_STUDIO_IMAGE=ghcr.io/talon-labs-detection-platform/talon-studio:v1.1.22-beta
NEXTAUTH_URL=https://talon.example.com
TALON_TRUST_PROXY=true
# first admin: leave TALON_ADMIN_PASSWORD unset for a generated one
TALON_ADMIN_USERNAME=admin
TALON_ADMIN_EMAIL=admin@example.com
TALON_STRICT_SECURITY=true
TALON_METRICS_TOKEN=<openssl rand -hex 32>
# secrets: omit to have them generated into /data/secrets
# AUTH_SECRET=<openssl rand -hex 32>
# TALON_ENCRYPTION_KEY=<openssl rand -hex 32>
Rotating the encryption key
Set the new key as TALON_ENCRYPTION_KEY and move the old one into TALON_ENCRYPTION_KEY_PREVIOUS. On the next start Studio re-encrypts every stored secret with the new key. Backup & Restore has the full sequence.
No escape hatch for credentials
A placeholder, weak or missing secret, or a well-known admin password, refuses startup whatever TALON_ALLOW_INSECURE_DEFAULTS or NEXTAUTH_URL say.

Matches Talon Studio 1.1.18-beta