Skip to content

Configuration

Talon uses a single YAML file (talond.yaml by default). All fields are optional — sensible defaults apply when omitted. Credentials use ${ENV_VAR} substitution.

Pass a custom config path with --config, or set TALOND_CONFIG_PATH in the environment:

Terminal window
node dist/index.js --config /etc/talon/talond.yaml

This page covers the sections you edit most often. The Config schema reference lists every field.

Any config value can reference an environment variable:

channels:
- name: my-telegram
type: telegram
config:
botToken: ${TELEGRAM_BOT_TOKEN}

Variables are loaded from .env at startup. Set TALOND_ENV_FILE to load a different file. Use talonctl env-check to audit for missing variables.


SQLite database location.

storage:
type: sqlite
path: data/talond.sqlite
FieldDefaultDescription
typesqliteDatabase backend. Only sqlite is supported.
pathdata/talond.sqlitePath to the SQLite file. Created on first run.

An array of agent personas. Each persona has its own system prompt, model, skills, and capability policy.

personas:
- name: assistant
model: claude-sonnet-4-6
systemPromptFile: personas/assistant/system.md
skills:
- web-search
subagents:
- session-summarizer
- memory-groomer
- memory-retriever
capabilities:
allow:
- channel.send:my-telegram
- memory.access:*
- net.http
- schedule.manage:own
- subagent.invoke:*
maxConcurrent: 2
FieldDefaultDescription
namerequiredUnique identifier for this persona
modelclaude-sonnet-4-6Model ID passed to the provider
provider(default provider)Override the agent runner provider for this persona
reasoningEffort—none, minimal, low, medium, high, xhigh, max or ultra. Supported for codex-cli (not none) and for openai-compatible with options.apiMode: responses
backgroundProvider—Provider for background agents that this persona starts. Must be enabled in backgroundAgent.providers
backgroundModel—Model for background agents. Requires backgroundProvider
queryTimeoutMinutes10Max minutes the agent runner waits for one query (1–480)
systemPromptFile—Path to the system prompt Markdown file
skills[]List of skill names to attach
subagents[]List of sub-agent names the persona can invoke
capabilities.allow[]Capability labels the persona can use freely
capabilities.requireApproval[]Accepted by the schema, but not enforced yet. Tools listed here are exposed the same way as tools in allow. See Security
maxConcurrent—Max parallel agent runs for this persona

See Personas guide and capability labels for the full list.

Each capability can have a companion Markdown file in templates/tool-instructions/ that provides behavioral guidance to the agent. Files are named after the capability prefix — for example templates/tool-instructions/net.http.md. Only instruction files for capabilities the persona is allowed to use are included in the prompt.

Edit or add files in this directory to customise how the agent behaves when using a specific tool. See Tool instructions for the full details.


Channel connectors. Each entry has a type, a name, and a connector-specific config block.

channels:
- name: my-telegram
type: telegram
enabled: true
showToolCalls: true
config:
botToken: ${TELEGRAM_BOT_TOKEN}
allowedChatIds:
- "123456789"
FieldDefaultDescription
namerequiredUnique identifier for this channel
typerequiredtelegram, slack, discord, whatsappBusiness, whatsappBaileys, email, terminal
enabledtrueEnable or disable this channel at startup
showToolCallsfalseSend a status message to the channel on each tool call
config{}Connector-specific configuration (varies by type)

Telegram allowedChatIds values must be strings. The channel name browser-voice is reserved when voice.enabled is true.

See the Channels guide for per-connector config fields. Telegram and WhatsApp connectors also take replyToTrigger and inboundReactions for native replies and emoji reactions. Telegram takes allowGroupChats, requireMention and per-chat chats overrides for group and topic behavior.


Route channels to personas.

bindings:
- persona: assistant
channel: my-telegram
isDefault: true
- persona: researcher
channel: my-slack
isDefault: true
FieldDefaultDescription
personarequiredPersona name
channelrequiredChannel name
isDefaultfalseMark as the default binding for this channel
threadnoneBind one conversation on the channel instead of the whole channel

Add thread to bind a single conversation, such as one Telegram forum topic, to its own persona:

bindings:
- persona: assistant
channel: my-telegram
isDefault: true
- persona: groceries
channel: my-telegram
thread: '-1004452318413:42'

See Telegram topic workspaces.


Controls the durable message queue.

queue:
maxAttempts: 3
backoffBaseMs: 1000
backoffMaxMs: 60000
concurrencyLimit: 5
FieldDefaultDescription
maxAttempts3Max delivery attempts before dead-lettering
backoffBaseMs1000Initial retry delay in ms
backoffMaxMs60000Max retry delay in ms (exponential backoff cap)
concurrencyLimit5Max messages processed simultaneously

Foreground agent execution. Configures which provider runs the main conversation agent and how context rotation works.

agentRunner:
defaultProvider: claude-code
providers:
claude-code:
enabled: true
command: claude
contextWindowTokens: 200000
contextManagement:
enabled: true
triggerMetric: cache_read_input_tokens
thresholdRatio: 0.5
recentMessageCount: 10
summarizer: session-summarizer
codex-cli:
enabled: false
command: codex
contextWindowTokens: 400000
contextManagement:
enabled: true
triggerMetric: cache_read_input_tokens
thresholdRatio: 0.8
recentMessageCount: 10
summarizer: session-summarizer
options:
defaultModel: gpt-5.4
openai-compatible:
enabled: false
command: node
contextWindowTokens: 256000
contextManagement:
enabled: true
triggerMetric: input_tokens
thresholdRatio: 0.75
recentMessageCount: 10
summarizer: session-summarizer
options:
baseUrl: ${OLLAMA_BASE_URL}
defaultModel: glm-5.1
providerId: ollama
gemini-cli:
enabled: false
command: gemini
contextWindowTokens: 1000000
FieldDefaultDescription
defaultProviderclaude-codeProvider to use when none is specified per-persona
providers.<name>.enabledfalseEnable this provider. The built-in claude-code entry is enabled when you omit providers
providers.<name>.commandrequiredCLI command to invoke
providers.<name>.contextWindowTokens200000Context window size for rotation calculations
providers.<name>.options{}Provider-specific options (e.g. defaultModel: gpt-5.4 for codex-cli)
contextManagement.enabledfalseEnable automatic session rotation. When true, triggerMetric, thresholdRatio and summarizer are required
contextManagement.triggerMetric—Token metric to monitor: input_tokens, cache_read_input_tokens, cache_creation_input_tokens or cache_total_input_tokens
contextManagement.thresholdRatio—Fraction of contextWindowTokens that triggers rotation (0–1)
contextManagement.recentMessageCount10Verbatim messages to include after rotation
contextManagement.summarizer—Sub-agent used to compress history

When you omit agentRunner.providers, Talon uses a built-in claude-code entry with context management enabled: cache_read_input_tokens, ratio 0.5, session-summarizer.

For openai-compatible, options.toolOutputCap caps tool output in characters before it enters the message history. It defaults to 4000. An MCP server can override it. See MCP integration.

Talon supports multiple agent providers. Configure them under agentRunner.providers:

agentRunner:
defaultProvider: claude-code
providers:
claude-code:
enabled: true
command: claude
contextWindowTokens: 200000
contextManagement:
enabled: true
triggerMetric: cache_read_input_tokens
thresholdRatio: 0.5
recentMessageCount: 10
summarizer: session-summarizer
codex-cli:
enabled: false
command: codex
contextWindowTokens: 400000
contextManagement:
enabled: true
triggerMetric: cache_read_input_tokens
thresholdRatio: 0.8
recentMessageCount: 10
summarizer: session-summarizer
options:
defaultModel: gpt-5.4
gemini-cli:
enabled: false
command: gemini
contextWindowTokens: 1000000

Available providers:

  • claude-code — Claude Code CLI (default). SDK strategy, resumable sessions, context management.
  • gemini-cli — Google Gemini CLI. CLI strategy, 1M token context. No session resumption.
  • codex-cli — OpenAI Codex CLI. SDK-style foreground streaming, 400k context, resumable sessions. Set model via options.defaultModel.
  • openai-compatible — Experimental wrapper-backed provider for Ollama and other OpenAI-compatible endpoints. Set endpoint and auth mapping via options.baseUrl, options.defaultModel, and options.providerId.

Set a per-persona provider override with the provider field:

personas:
- name: researcher
model: gemini-2.0-flash
provider: gemini-cli

See the Providers guide for full configuration details and per-persona provider routing.


Long-running Claude Code workers for deep tasks.

backgroundAgent:
enabled: true
maxConcurrent: 3
defaultTimeoutMinutes: 30
defaultProvider: claude-code
providers:
claude-code:
enabled: true
command: claude
contextWindowTokens: 200000
codex-cli:
enabled: false
command: codex
contextWindowTokens: 400000
options:
defaultModel: gpt-5.4
openai-compatible:
enabled: false
command: node
contextWindowTokens: 256000
options:
baseUrl: ${OLLAMA_BASE_URL}
defaultModel: glm-5.1
providerId: ollama
FieldDefaultDescription
enabledtrueGlobally enable background workers
maxConcurrent3Max simultaneous background workers (1–10)
defaultTimeoutMinutes30Wall-clock timeout per worker (15–480 min)
defaultProviderclaude-codeProvider for background workers
claudePath—Explicit path to the Claude Code binary
providers.<name>.options{}Provider-specific options (for example defaultModel: gpt-5.4 for codex-cli, or baseUrl / providerId for openai-compatible)

AI provider credentials.

auth:
mode: subscription
providers:
anthropic:
apiKey: ${SUBAGENT_ANTHROPIC_API_KEY}
openai:
apiKey: ${OPENAI_API_KEY}
ollama:
apiKey: ${OLLAMA_API_KEY}
baseURL: http://localhost:11434/v1
openai-compatible:
apiKey: ${OPENAI_COMPATIBLE_API_KEY}
baseURL: https://example.com/v1
FieldDefaultDescription
modesubscriptionsubscription (Claude Code login) or api_key
apiKey—API key for api_key mode
providers.<name>.apiKey—API key for a specific provider
providers.<name>.baseURL—Custom base URL (for Ollama or proxies)

For openai-compatible, Talon looks up credentials under auth.providers.<options.providerId> first. If that slot does not exist, it falls back to auth.providers.openai-compatible.

Browser voice also reads its secrets from auth.providers. See voice.


Optional browser voice session at /voice/. Disabled by default. Keep the access token and the live provider key in environment variables and reference them through auth.providers.

auth:
providers:
voice:
apiKey: ${TALON_VOICE_ACCESS_TOKEN}
openai:
apiKey: ${OPENAI_API_KEY}
voice:
enabled: true
host: 127.0.0.1
port: 8787
publicHost: voice.example.com
accessTokenRef: voice
liveApiKeyRef: openai
persona: assistant
allowedOrigins:
- https://voice.example.com
FieldDefaultDescription
enabledfalseEnable the browser voice listener
host127.0.0.1Listener address. Change it only when the reverse proxy runs in another network namespace
port0Listener port. Set a fixed port for a reverse proxy
publicHost—Public host name. Adds https://<publicHost> to the allowed origins. Does not change the listener address
accessTokenRefvoiceName of the auth.providers entry that holds the browser access token
liveApiKeyRefopenaiName of the auth.providers entry that holds the live provider key
persona—Existing persona that voice uses. Its provider, model, capabilities, skills and MCP servers apply
model—Live voice model sent to the live provider. Separate from the persona’s model
voicemarinOutput voice
usdPerMinute—Provider rate for cost estimates. Without it, voice cost is reported as unavailable
allowedOrigins[]Allowed browser origins (URLs)
allowedTransportTypes[webrtc]Allowed browser transports
maxSessionLifetimeMs900000Max length of one live call (15 minutes)
maxConcurrentSessions1Max live sessions at once
maxSessionCreations5Max session creations per sessionCreationWindowMs
sessionCreationWindowMs60000Window for the session creation limit

voice.provider, voice.allowedToolNames and voice.allowedMcpServerNames are deprecated and ignored. The selected persona’s policy applies.

See the Browser voice guide for the login flow, proxy setup and limits, and the Config schema reference for all fields.


Limits and retention for inbound images on Telegram, WhatsApp and email. The defaults apply when you omit the block.

images:
maxInputBytes: 10485760
maxPerMessage: 5
maxPerInspection: 5
maxEdge: 4096
jpegQuality: 85
maxInputPixels: 100000000
maxNormalizedBytes: 3750000
retentionHours: 24
FieldDefaultDescription
maxInputBytes10485760Max input bytes per image (10 MiB). Talon checks actual bytes
maxPerMessage5Upload slots per message
maxPerInspection5Max image IDs per vision Inspection
maxEdge4096Longest edge of the normalized file in pixels
jpegQuality85JPEG quality of the normalized file (1–100)
maxInputPixels100000000Max decoded source pixels (width × height). Max value 268402689
maxNormalizedBytes3750000Max bytes of the normalized JPEG
retentionHours24How long normalized files are kept. Fractions are allowed. Image records, metadata and Findings stay

A change to images needs a daemon restart. talonctl reload keeps the running values and logs a warning.

A persona can ask about images only with the vision sub-agent in its subagents list and the subagent.invoke capability. The separate image.read:thread capability exposes image_lookup for text lookup of images and Findings:

personas:
- name: assistant
subagents:
- vision
capabilities:
allow:
- subagent.invoke:*
- image.read:thread

See the Vision guide and the Config schema reference.


Per-sub-agent model overrides. Each entry is a model chain. Talon tries the entries in order.

subagents:
vision:
model:
- provider: anthropic
name: claude-sonnet-4-6
timeoutMs: 60000
- provider: openai
name: gpt-5.4
timeoutMs: 60000
FieldDefaultDescription
<name>.modelrequiredModel chain with at least one entry
model[].providerrequiredProvider name
model[].namerequiredModel ID
model[].maxTokens—Max output tokens
model[].timeoutMs—Request timeout in ms (minimum 1000)
model[].providerOptions—Provider-specific options

The vision sub-agent uses claude-haiku-4-5-20251001 by default. Every entry in its chain must be a vision-capable inference provider: anthropic, openai, google or ollama. Config loading rejects a text-only provider such as claude-code or codex-sandbox. If no entry answers, Talon creates no Finding.

See the Sub-agents guide and the Vision guide.


Controls how often the scheduler checks for due tasks.

scheduler:
tickIntervalMs: 5000
FieldDefaultDescription
tickIntervalMs5000Scheduler tick interval in ms (minimum 1000)

Observability tracing. Disabled by default. See the Observability guide.

langfuse:
enabled: true
publicKey: ${LANGFUSE_PUBLIC_KEY}
secretKey: ${LANGFUSE_SECRET_KEY}
baseUrl: https://cloud.langfuse.com
environment: production
exportMode: batched
flushAt: 20
flushIntervalSeconds: 5
FieldDefaultDescription
enabledfalseEnable Langfuse tracing
publicKey—Required when enabled
secretKey—Required when enabled
baseUrlhttps://cloud.langfuse.comLangfuse instance URL
environmentproductionEnvironment tag on traces
release—Optional version tag
exportModebatchedbatched or immediate
flushAt20Batch size before flush
flushIntervalSeconds5Max seconds between flushes

Internal daemon-to-CLI communication. Rarely needs changing.

ipc:
pollIntervalMs: 500
daemonSocketDir: data/ipc/daemon

logLevel: info # trace | debug | info | warn | error | fatal
dataDir: data # root directory for all runtime data