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:
node dist/index.js --config /etc/talon/talond.yamlThis page covers the sections you edit most often. The Config schema reference lists every field.
Environment variable substitution
Section titled “Environment variable substitution”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.
storage
Section titled “storage”SQLite database location.
storage: type: sqlite path: data/talond.sqlite| Field | Default | Description |
|---|---|---|
type | sqlite | Database backend. Only sqlite is supported. |
path | data/talond.sqlite | Path to the SQLite file. Created on first run. |
personas
Section titled “personas”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| Field | Default | Description |
|---|---|---|
name | required | Unique identifier for this persona |
model | claude-sonnet-4-6 | Model 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 |
queryTimeoutMinutes | 10 | Max 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.
Tool instruction files
Section titled “Tool instruction files”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.
channels
Section titled “channels”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"| Field | Default | Description |
|---|---|---|
name | required | Unique identifier for this channel |
type | required | telegram, slack, discord, whatsappBusiness, whatsappBaileys, email, terminal |
enabled | true | Enable or disable this channel at startup |
showToolCalls | false | Send 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.
bindings
Section titled “bindings”Route channels to personas.
bindings: - persona: assistant channel: my-telegram isDefault: true - persona: researcher channel: my-slack isDefault: true| Field | Default | Description |
|---|---|---|
persona | required | Persona name |
channel | required | Channel name |
isDefault | false | Mark as the default binding for this channel |
thread | none | Bind 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| Field | Default | Description |
|---|---|---|
maxAttempts | 3 | Max delivery attempts before dead-lettering |
backoffBaseMs | 1000 | Initial retry delay in ms |
backoffMaxMs | 60000 | Max retry delay in ms (exponential backoff cap) |
concurrencyLimit | 5 | Max messages processed simultaneously |
agentRunner
Section titled “agentRunner”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| Field | Default | Description |
|---|---|---|
defaultProvider | claude-code | Provider to use when none is specified per-persona |
providers.<name>.enabled | false | Enable this provider. The built-in claude-code entry is enabled when you omit providers |
providers.<name>.command | required | CLI command to invoke |
providers.<name>.contextWindowTokens | 200000 | Context window size for rotation calculations |
providers.<name>.options | {} | Provider-specific options (e.g. defaultModel: gpt-5.4 for codex-cli) |
contextManagement.enabled | false | Enable 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.recentMessageCount | 10 | Verbatim 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.
Multiple providers
Section titled “Multiple providers”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: 1000000Available 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, andoptions.providerId.
Set a per-persona provider override with the provider field:
personas: - name: researcher model: gemini-2.0-flash provider: gemini-cliSee the Providers guide for full configuration details and per-persona provider routing.
backgroundAgent
Section titled “backgroundAgent”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| Field | Default | Description |
|---|---|---|
enabled | true | Globally enable background workers |
maxConcurrent | 3 | Max simultaneous background workers (1–10) |
defaultTimeoutMinutes | 30 | Wall-clock timeout per worker (15–480 min) |
defaultProvider | claude-code | Provider 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| Field | Default | Description |
|---|---|---|
mode | subscription | subscription (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| Field | Default | Description |
|---|---|---|
enabled | false | Enable the browser voice listener |
host | 127.0.0.1 | Listener address. Change it only when the reverse proxy runs in another network namespace |
port | 0 | Listener 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 |
accessTokenRef | voice | Name of the auth.providers entry that holds the browser access token |
liveApiKeyRef | openai | Name 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 |
voice | marin | Output 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 |
maxSessionLifetimeMs | 900000 | Max length of one live call (15 minutes) |
maxConcurrentSessions | 1 | Max live sessions at once |
maxSessionCreations | 5 | Max session creations per sessionCreationWindowMs |
sessionCreationWindowMs | 60000 | Window 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.
images
Section titled “images”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| Field | Default | Description |
|---|---|---|
maxInputBytes | 10485760 | Max input bytes per image (10 MiB). Talon checks actual bytes |
maxPerMessage | 5 | Upload slots per message |
maxPerInspection | 5 | Max image IDs per vision Inspection |
maxEdge | 4096 | Longest edge of the normalized file in pixels |
jpegQuality | 85 | JPEG quality of the normalized file (1–100) |
maxInputPixels | 100000000 | Max decoded source pixels (width × height). Max value 268402689 |
maxNormalizedBytes | 3750000 | Max bytes of the normalized JPEG |
retentionHours | 24 | How 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:threadSee the Vision guide and the Config schema reference.
subagents
Section titled “subagents”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| Field | Default | Description |
|---|---|---|
<name>.model | required | Model chain with at least one entry |
model[].provider | required | Provider name |
model[].name | required | Model 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.
scheduler
Section titled “scheduler”Controls how often the scheduler checks for due tasks.
scheduler: tickIntervalMs: 5000| Field | Default | Description |
|---|---|---|
tickIntervalMs | 5000 | Scheduler tick interval in ms (minimum 1000) |
langfuse
Section titled “langfuse”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| Field | Default | Description |
|---|---|---|
enabled | false | Enable Langfuse tracing |
publicKey | — | Required when enabled |
secretKey | — | Required when enabled |
baseUrl | https://cloud.langfuse.com | Langfuse instance URL |
environment | production | Environment tag on traces |
release | — | Optional version tag |
exportMode | batched | batched or immediate |
flushAt | 20 | Batch size before flush |
flushIntervalSeconds | 5 | Max seconds between flushes |
Internal daemon-to-CLI communication. Rarely needs changing.
ipc: pollIntervalMs: 500 daemonSocketDir: data/ipc/daemonlogLevel and dataDir
Section titled “logLevel and dataDir”logLevel: info # trace | debug | info | warn | error | fataldataDir: data # root directory for all runtime data