Skip to content

Security & Capabilities

Talon uses a default-deny capability model. Every host-tool call is rejected unless the executing persona has an explicit grant. No capability, no execution — the tool isn’t even listed to the agent.

Capabilities limit what Talon exposes through its host-tools bridge. They do not sandbox a provider runtime, and they do not make an external model or MCP server safe by themselves.

Capabilities are declared in the persona config under capabilities.allow. Labels use the syntax domain.action:scope.

personas:
- name: assistant
capabilities:
allow:
- memory.access:thread
- net.http:egress
- channel.send:my-telegram
- schedule.manage:own
- subagent.invoke
- subagent.background
- db.query:own

The engine enforces this at two points:

  1. Listing — only tools with a matching capability label are exposed to the agent in the first place
  2. Execution — the host-tools bridge re-checks the grant immediately before running the tool
LabelControls
channel.send:<channel>Send messages to a specific channel
channel.send:*Send to any channel. Also grants channel_list and channel_broadcast
channel.react:*React with an emoji in the current conversation (channel_react). Not implied by channel.send
schedule.manage:ownCreate/modify/delete schedules owned by this persona
memory.access:threadRead/write per-thread structured memory
net.http:egressFetch external URLs
db.query:ownExecute read-only database queries
subagent.invokeInvoke sub-agents
subagent.backgroundLaunch background agent workers
execution.envManage isolated Sprite execution environments
image.read:threadList the current thread’s Images and read their saved Findings as text (image_lookup)
persona.send:*Delegate tasks to any persona, list personas, and fetch or cancel delegated tasks
persona.send:<persona>Delegate only to that persona. Repeat the label to allow several

Wildcard scopes (channel.send:*) match any suffix. Specific scopes (channel.send:my-telegram) match that name only.

Run npx talonctl list-capabilities to print the current labels.

persona.send:<persona> restricts a persona to named delegation targets. Talon enforces the scope on the host side in persona_send. persona_list and the persona roster in the system prompt show only the allowed targets. Talon logs a warning at config load when a scoped label names an unknown persona.

Only the persona that delegated a task can cancel it with persona_task_cancel, and only for tasks in its own thread. See the A2A guide.

channel_send accepts an explicit externalChatId. The capability decides whether the send is allowed. Talon stores the outbound message in a thread’s history only when the persona has a binding for that thread or a default binding for the channel. A send to an unbound chat is delivered but does not write to that thread’s history. If the binding lookup fails, Talon skips the write and logs a warning.

The config schema accepts a capabilities.requireApproval list. It is not an approval control today. Talon exposes tools listed in requireApproval in the same way as tools listed in allow. It does not prompt a user and does not block execution. Approval enforcement at the bridge is future work.

Browser voice is the exception. A capability in requireApproval is unavailable to voice sessions, because voice has no approval channel.

Every side-effecting operation — tool calls, channel sends, approval grants and rejections — is written to the audit_log table. Entries are append-only: there are no UPDATE or DELETE paths.

Each record contains:

FieldDescription
run_idThe agent run that triggered the action
thread_idThe conversation thread
persona_idThe executing persona
actione.g., tool.execute, channel.send, approval.grant
toolTool name (if applicable)
request_idMCP request ID for correlation
detailsJSON blob with action-specific fields
created_atUnix timestamp

Query it with any SQLite client:

Terminal window
sqlite3 data/talond.sqlite "SELECT action, tool, created_at FROM audit_log ORDER BY created_at DESC LIMIT 20"

When an agent uses db_query, the query passes through five independent layers before execution:

  1. Regex pre-check — only SELECT is accepted; write keywords are rejected immediately
  2. Table whitelist — only memory_items, schedules, messages, and threads are queryable
  3. Thread/persona scoping — Talon auto-injects WHERE thread_id = ? and WHERE persona_id = ? clauses
  4. Row limit — results are capped at 1,000 rows regardless of the query
  5. Read-only connection — the query runs on a { readonly: true } SQLite connection

UNION, EXCEPT, INTERSECT, CTEs, and subqueries are rejected. User-supplied WHERE conditions are wrapped in parentheses so an OR cannot escape the scoping.

Codex CLI searches upward from its working directory for an AGENTS.md file and injects the first one it finds into the prompt. Talon runs Codex in the thread workspace under the data directory, so Codex could pick up an AGENTS.md from a parent directory, such as the repository that Talon runs from. Codex has no flag to turn this off.

Talon writes an empty AGENTS.md into the Codex working directory before each run. Codex stops at that file, so instructions from a parent directory do not reach persona runs.

Talon manages OAuth tokens for HTTP and SSE MCP servers itself. Token bundles are stored with mode 0600, and providers never receive the OAuth cache or client credentials. When a persona uses an OAuth-authenticated MCP server, Talon disables the provider’s native shell and filesystem tools for that run. Codex CLI cannot disable its native tools, so those runs fail closed.

Talon expands ${ENV_VAR} references in MCP headers and stdio environment values once. If the result still contains expandable $VAR syntax, Talon stops before the provider starts.

See MCP integration.

Browser voice is disabled by default. When enabled, the listener binds 127.0.0.1 unless you change voice.host.

  • Login. The browser sends the operator-configured access token once to POST /voice/login. Talon exchanges it for an expiring, opaque HttpOnly session cookie and a CSRF cookie.
  • Lifetime. The login lasts 15 minutes by default, or 365 days when the user selects the remember option. There is no sliding refresh.
  • No bearer in the browser. The access token and the raw session value are not returned to browser APIs, not written to Web Storage, and not written to logs.
  • Hashed at rest. The server stores only hashed session and CSRF verification values.
  • CSRF and origin checks. Mutating requests need the CSRF cookie and the X-CSRF-Token header. Origin checks use voice.allowedOrigins. These checks apply on every listener address.
  • Revocation. Logout, rotation of the access token, and a configuration reload revoke the affected logins.
  • No unauthenticated work. An unauthenticated request cannot create a session or reach the queue or the provider.
  • Persona policy. Voice uses the capabilities, skills and MCP servers of the persona in voice.persona. Capabilities in requireApproval are unavailable to voice.
  • No raw audio. Talon stores bounded text, usage and lifecycle state in SQLite. It does not store raw audio.

The reverse proxy must preserve the public Host and Origin headers and send X-Forwarded-Proto: https. See the Browser voice guide.

Talon accepts images on Telegram, WhatsApp and email. The main agent never receives pixels. Only the vision sub-agent does. The main agent gets text descriptors and saved Findings. See the Vision guide.

  • Bounded input. Talon checks actual bytes against images.maxInputBytes during download and again before conversion. It does not trust declared sizes.
  • Decompression-bomb guard. Talon reads the pixel dimensions from the header and rejects a source over images.maxInputPixels before decoding. Config cannot raise this limit above the image library’s own default.
  • Bounded output. Talon converts accepted input to a JPEG without metadata. If the result exceeds images.maxNormalizedBytes, Talon re-encodes at lower quality, then at a smaller size. An image that never fits is rejected.
  • No animation. Animated images are rejected, including APNG.
  • Email after authorization. Email attachments are parsed before the sender and DMARC checks, but Talon normalizes only parts from an authorized message.
  • EXIF text. Sender-controlled EXIF text is neutralized and capped at 64 characters before it enters a descriptor.
  • Durable recovery. Attempts and deadlines survive a restart. An image that cannot be recovered is marked rejected. It is not retried without limit.
  • No billing without a record. Talon refuses a vision Inspection that it could not save, before it calls any model. A background agent cannot run an Inspection for this reason.
  • Vision model chain. Config loading rejects a text-only provider in the vision model chain, and startup validates the whole chain again. An Inspection is never rerouted to the foreground model.

Retention removes only the normalized file. Image records, EXIF data including GPS, and Findings stay until you delete them.

The Docker image runs as a non-root user with all Linux capabilities dropped. See Docker deployment. The image includes GitHub CLI. If you set GH_TOKEN, every process that talond starts can read it. Use a fine-grained token limited to the repositories and permissions your agents need.

The November 2026 dependency update moved the runtime, mail, telemetry and AI SDK packages to newer versions within their declared ranges, and moved the WhatsApp Baileys library to 7.0.0-rc14.

Credentials never go in config files as plaintext. Use environment variable substitution instead.

In talond.yaml:

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

At startup Talon loads .env from the working directory and substitutes all ${ENV_VAR} references. Two CLI commands help:

Terminal window
# show resolved config with secrets masked
npx talonctl config-show
# report missing variables before the daemon starts
npx talonctl env-check

config-show masks the values of known secret keys such as apiKey, token and password with ***MASKED***. It is not a complete redaction boundary, so do not paste its output in public. env-check prints variable names and status only, never values.