Talos AI agent: the field manual
Talos is a self-hosted AI agent for terminal and Telegram. It reasons with a language model, and runs tools: a real shell, a confined Claude worker, a browser on request. No tool runs until a deterministic kernel has ruled on the action. The model proposes; it does not decide.
New here? Read the Talos FAQ: models, costs and permissions before choosing your setup.
That one decision shapes the rest of this manual. It is why the command list is short, and why a few obvious conveniences are missing on purpose.
Section 01Install
One line. It downloads the signed public release selected by the installer, verifies the signature and the checksum, runs the full test suite · and then stops.
# read it first · it is served as plain text on purpose curl -fsSL https://talos-agent.ch/install.sh | less # then run it curl -fsSL https://talos-agent.ch/install.sh | sh
Or from source, if you would rather see everything:
git clone https://github.com/talos-kernel/talos.git cd talos python3 -m venv .venv && . .venv/bin/activate pip install --require-hashes -r requirements.lock -r requirements-dev.lock python -m pytest tests/ -q
It proves the build and hands you back your shell. Nothing starts listening until you say so. I didn't want an installer that quietly launches a process holding a shell tool · that thing would be running before you ever reviewed its configuration or its state.
Python 3.11 or newer, Linux or macOS. The shell tool needs
bubblewrap on Linux; macOS uses the built-in sandbox-exec.
Where there is no isolation, the shell refuses rather than running
unprotected.
Talos contains a generic QmpInputAdapter, but the local Mac VM is
still a planned deployment, not a hardware-qualified Computer option. The fixed
target is an x86_64 Debian guest with Hyprland under QEMU TCG on Apple silicon,
not HVF. It requires a signed, operator-supplied VM bundle and matching
pre-provisioned disk; Talos neither bundles nor downloads QEMU or the disk.
Earlier guest evidence is not reusable. See the
planned QMP VM boundary.
Section 02Give it an identity
Talos ships with zero identities allowed to command it. That is not an oversight. It is the starting state, and the reason you can install it before you have decided anything.
Start in your terminal with two guided steps: confirm your local identity, then choose your model connection. No Telegram account is needed.
python -m talos setup terminal python -m talos chat
For a Telegram bot, run python -m talos setup, then
python -m talos. The wizard prints the file it writes and the next
command. It preserves other settings, stores the detected CLI path, and saves
each section atomically with mode 0600. The key that matters:
TALOS_ALLOWED_PRINCIPALS=telegram:123456789,cli:1000
For live tool tracking, set TALOS_STATUS_STYLE=expressive. One
activity card updates in place while the answer stays separate. Answers retain
their formatting after approval buttons; tables become compact labelled rows.
Approval prompts show the exact command, and stored approvals apply only to the
action you approved.
Telegram work cards now show native command blocks for known diagnostic argument grammars, plus file and skill names and remote-host aliases. Unknown arguments and inline scripts are visibly omitted. Each action carries its own result state; a request is not proof that it ran.
An identity is channel-qualified. The same number on a different channel is a different identity · so a Telegram account that may command Talos grants nothing to an email address spelling the same name.
The command line is a channel like any other. On a fresh install · allowlist still
empty · the local caller is admitted as cli:<uid> automatically, so the
first run works. The moment the list names one identity it becomes exhaustive: add a
Telegram account and your uid must appear as cli:<uid> too, or
talos chat and talos ask fall silent. A shell next to the
agent is not an argument for granting it something.
talos.env carries the bot token, the API keys and the
allowlist. It is Tier A in the kernel's own floor: reading is refused, writing needs
a human. Otherwise the kernel would stay intact while the list of who may command it
came from a file the agent could rewrite.
On a real deployment, hand it to another user entirely · root:agent,
mode 640, directory owned by root too. doctor treats that
as the better state, not a finding.
Section 03Give it a mind
Talos does not ship a model. It talks to one · through an API key, or through a CLI you already have installed and logged in. Use local models with Ollama, Claude through the Claude Code CLI, or a configured API provider. Self-hosting Talos does not make a cloud model local; your provider's charges and terms still apply.
python -m talos models # the catalogue python -m talos models --refresh # ask the providers directly python -m talos setup model
Find and understand a setting before changing it:
python -m talos config list model python -m talos config describe TALOS_STATUS_STYLE python -m talos config set TALOS_STATUS_STYLE expressive python -m talos config validate python -m talos help setup
config works on the selected file; process environment variables
can override it. Restart a running service after changing file settings. For a
different Claude executable, rerun setup model or set
TALOS_CLAUDE_BIN in the protected configuration.
Each provider carries its own key and its own base url, resolved at the moment of the call:
ANTHROPIC_API_KEY=sk-ant-… OPENAI_API_KEY=sk-…
Until 2026-08-05 a single value served every provider, so selecting an OpenAI-shaped route sent an Anthropic key to OpenAI as a bearer token. Tests with identical placeholder keys cannot see that bug. Switching to a provider whose key is missing now fails the switch · the previous provider stays active instead of a conversation dying mid-turn.
0.20.3Move from Hermes or OpenClaw
Upgrade to 0.20.3 to use these commands. Preview the fingerprinted plan before applying it; staged content grants no permissions.
Preview first. Talos inventories only portable profile text, memory documents and Agent Skills, redacts the plan and gives it a fingerprint.
talos import list talos import hermes --source "$HOME/.hermes" --dry-run talos import openclaw --source "$HOME/.openclaw" --dry-run # apply exactly the reviewed plan into inactive private staging talos import hermes --source "$HOME/.hermes" --apply --confirm <fingerprint> # public connector inventory and disabled secret-free drafts talos connections list talos connections draft --help
--apply does not overwrite active state or activate imported skills.
One imported skill can be activated later through the managed-skill validator;
staging can be moved intact to a recovery archive. Passwords, permissions,
schedules, plugins, sessions, databases and live MCP access are not imported.
Talos Connections lists the operator-owned isolated-worker registry and stores only disabled, secret-free drafts. A draft cannot execute and grants no permission.
Section 04Run it
Empty API replies and stream errors remain failures through the configured fallback chain. If all permitted routes fail, the task ends with an explicit error and keeps its context. Short promises to act get one bounded follow-up; completed tool actions are never replayed. Failed channel polling backs off from 1 to 30 seconds and resets on recovery; healthy channels keep delivering messages.
/stop reaches the provider currently doing the work, including an
active fallback. Model switching remains busy until that call ends. Background
tasks keep their configured fallback routes with independent cancellation.
A successful tool receipt permits one correction at the next step; repeated
announcements without progress end explicitly as unfinished.
| Command | What it is |
|---|---|
| python -m talos | The service. Long-polls Telegram, runs schedules, stays up. |
| talos chat | A session in this terminal. Multi-turn; approvals possible at a tty. |
| talos ask "…" | One turn, answer on stdout, then gone. For scripts and cron. |
| python -m talos --once | A single cycle, for diagnosis. |
setup, update and every diagnostic stop when they are
done. The switch stays with the human.
Section 05The terminal session
$ talos chat Talos 0.20.3 · anthropic-api/claude-opus-4-8 · autonomy 3 speaking as cli:1000 · approvals possible · you are at a terminal /help for commands, `exit` to leave › what changed in the log today?
The second line is the one to read. Before you ask for anything, it tells you whether an approval is even possible in this session. A refusal later is explained up front instead of guessed at.
Approvals hang on the terminal
When the kernel needs a person to answer, whether one is there is
measured: both stdin and stdout must be a
real terminal.
| How you started it | What happens when a human is needed |
|---|---|
| talos chat | A person is there · you are asked, and you answer with the next line. |
| talos chat < jobs.txt | No terminal → refused, with the reason stated. |
| talos chat > out.log | Nobody would read the question → refused. |
| talos ask "…" | Always refused. A one-liner waits for nothing. |
The four grants
A question from the gate does not mean a fresh click for every step. In a button-capable channel, Talos offers four choices. You choose the breadth; the model cannot choose a wider grant.
| Choice | What it grants |
|---|---|
Allow once | One approval for one exact action. It is consumed when used. |
Allow this task | All approval-required actions in this present foreground task until it ends or you stop it. A new task asks again. Kernel denials still stand. |
Always allow | A standing rule for the exact action fingerprint · its command or kernel-derived target · never the tool in general. It can be revoked later. |
Deny | The writ closes. Nothing runs, and the denial never becomes permission. |
At a terminal, the same choices are typed as yes, allow this task,
always, or no. The choice is yours; the kernel still checks every
action.
The agent has a shell. If it could run talos chat inside it, it
would be giving itself orders with no channel and no reader. Both
chat and ask refuse when they detect the agent's own
sandbox around them.
Section 06Work on the side
Some questions take two minutes, and the conversation should not stand still for them.
› /background go through /var/log and summarise today's errors Background #1 started: go through /var/log and summarise today's… id bg_a1b2c3d4e5f6 · runs unattended, so anything needing approval is refused
The result arrives later as its own message, marked as a report rather than as a reply to whatever you asked in the meantime.
Timed schedules are also quiet while they work. Their final result arrives once as a labelled scheduled-run notification with its job ID and management commands; detailed tool evidence remains in the audit log.
Nobody is sitting in front of it. So the same ceiling applies as for a timed run: anything that would need a human becomes a refusal. A question dropped into a chat where another conversation is running is the most reliable way to get a “yes” on the wrong thing.
Its context is empty · it gets the task and nothing else. Two runs sharing one history write into each other, and afterwards nobody can say which of them said what. The result does not go back into the history either.
At most three run at once. Each one costs a thread, tokens and model time; without a cap a dozen typed tasks leave you with a machine that has stopped answering.
Section 07What it remembers
The conversation is kept per channel, in memory only, and it is bounded twice · by turns and by characters. An unbounded history is an unbounded prompt (cost, latency, drift) and an unbounded leak: what was said three weeks ago would go out to the model again today.
When the bound is reached, the middle is summarised and the ends are kept verbatim. The head usually carries the actual task; the tail carries whatever “and that too” refers to.
You: set up the backup for the NAS
Agent: done · see /etc/backup.d
Earlier (summarised): discussed retention, settled on 30 days; the
NFS mount needed the hard option
You: and add the offsite copy
It is never disguised as a verbatim turn. A summary that looks like something actually said is a claim about words nobody used · and the model could quote it back as if it were.
If summarising fails, the oldest turns are dropped as before. The bound is not a comfort feature: a history that kept growing after a failed summary would turn a cost question into a leak.
/new clears the active context, summary included. The event log and
the searchable archive stay · “forgotten” here means precisely: out of the prompt.
Skills it writes for itself
Talos can preserve proven workflows as skills and improve them later. A compact
catalog enters the prompt; bodies load on demand. skill_view reads the
managed library, current file hashes and archived revisions. skill_manage
creates, edits, patches, deactivates and restores skills, and manages text files in
references/, scripts/, templates/ and
assets/. Scripts never execute automatically.
Every mutation requires operator approval and the expected current hash; unattended
runs get DENY. Prior content is archived, and restore verifies its hash.
Delete removes SKILL.md while retaining support files and history.
Secret-shaped content and allowed-tools are refused. Skills are guidance,
never authority. Avoid simultaneous external edits: the hash check is not an atomic
compare-and-swap against another editor.
The original create-only skill_write remains available. The weekly
skill-distillation blueprint checks existing skills before proposing at
most one proven workflow, or parks the candidate in the vault when approval is unavailable.
Section 08Every command
Twenty-five top-level commands, each answering a question an operator actually asks. Every one takes
--help.
| Command | What it answers |
|---|---|
| chat | A session here, with approvals at a terminal. |
| ask "…" | One turn from a script or a cron line. |
| setup | How do I set this up. Writes a file and stops. |
| doctor | Why doesn't something work. Changes nothing; no network without --online. |
| config | What's in there, and how do I change it. |
| import | Preview or stage portable Hermes/OpenClaw data without inheriting authority. |
| connections | List isolated-worker connections or store a disabled secret-free draft. |
| models | What can it think with. |
| local-check | Probe a local Ollama or LM Studio endpoint without operator data. |
| status | What did it do last. |
| health [--json] | Is it well · runs, errors, schedules, anchor. |
| dashboard | Open a localhost-only observing view. |
| proof | Compact outcome receipt without prompts or result bodies. |
| computer | Inspect or open the separately qualified private desktop boundary. |
| events | What happened · filter by run, type or tool. |
| why <id> | Why was that allowed or refused, and what came of it. |
| verify | Prove the log was not edited after the fact. |
| anchor [--send] | Pin the chain head · catches tail truncation. |
| briefing | Build or deliver a morning status from recorded health and chain facts. |
| report | The log as a record someone else can read, with a chain digest. |
| metrics | Latency and tool-success measurements from the event log. |
| review | What this installation should change about itself. |
| update | New version beside the old one; signature checked, tests first. |
| version | Which build is this. |
| help | The current command list or help for one command. |
Otherwise setup would die on the missing configuration it exists to
create, and doctor on exactly the state it is meant to diagnose. That
was once the case, and it is the reason for the order.
Section 09In-session commands
The same set in the terminal and in the messenger · one command centre, not two. There is deliberately no separate vocabulary for the CLI.
| Command | What it does |
|---|---|
| /help | What this installation understands. |
| /policy <path|cmd> | What the kernel would decide · without doing it. |
| /background <task> | Run it beside this conversation, unattended. |
| /autonomy [0-5] | Show or tighten the dial. It can only ever narrow what the kernel allows. |
| /undo | Reverse the last write, from the snapshot the executor took. |
| /new | Clear the active context, summary included. |
| /log | The recent events, in the chat. |
| /revoke <n> | Drop a standing approval, by its number from /allowed. |
| /stop | End the running task, including any open question. A parked approval outlives it until its TTL (5 min). |
| /stopall | Stop everything stoppable: thought, queue, background tasks, pending approvals · discarded, never approved. Timed runs stay. |
Every verdict the kernel can return:
It runs, and the receipt says what it touched.
You are asked · with the kernel's facts, not the model's description of itself.
No path forward except a different request.
Section 10When something won't work
Start with the doctor. It reads, counts and looks · it creates no directory, writes no file, starts no service, and shows no secret.
python -m talos doctor
Every finding carries its remedy in its own text, because the agent reads these lines too: a finding without a remedy becomes “it isn't set up”, which is right and useless.
capabilities ok grab_frame (ffmpeg) /usr/bin/ffmpeg · web_search (ddgs) missing · `pip install ddgs`, no key needed
Why did it refuse that?
talos events --tool run_shell # find the id talos why 4831 # the verdict, the rule, and what followed
why names the rule that applied and the targets it applied to · and
says out loud that those targets were derived from the real arguments, never
taken from what the model wrote. Then it shows the rest of the same run, because
“refused, and then?” is the question that makes people stop reading logs.
What should this installation change?
talos review
It reads its own log and reports patterns worth acting on: the same wall hit repeatedly, approval prompts worn out by repetition, proposals the kernel refuses every time, and capabilities that are missing and have actually cost runs. It also runs by itself after a turn, at most once a day, and says nothing when there is nothing to say.
The review never applies anything and has no function that could. A standing rule created out of “you approved this three times” would be a second source of permission built from the agent's own history · the exact thing capability tokens exist to prevent.
Section 11Channels
Every way in fetches. Telegram long-polls; mail pulls over IMAP. Nothing listens on a port, because a webhook would turn an outbound-only process into a reachable one.
WhatsApp has two implementations of one channel name. The Cloud-API variant stays
delivery-only: Meta's inbound path is a webhook, and a webhook is exactly the port
this design refuses to open. The broker variant receives without one. A listener on
an operator-controlled WhatsApp broker reachable over SSH appends
the messages routed to Talos to a JSONL queue. Talos pulls that queue over SSH with
a persisted byte cursor: first run at end-of-file, cursor never advanced by a failed
poll. Replies go back through the broker's send script. The sender number comes out
of the operator's own WhatsApp account, so this variant carries
Trust.FULL · conversations live in the same
whatsapp:<number> namespace either way. Off by default:
TALOS_WA_BROKER_SSH (the SSH target),
TALOS_WA_BROKER_QUEUE, TALOS_WA_BROKER_CLI_DIR. Configured,
the broker wins over the Cloud API · the registry demands unique names, and this is
the one that fetches.
| Channel | Trust | Notes |
|---|---|---|
| telegram | FULL | Approval buttons, native safe command blocks, named file/skill actions, tool outcomes and images. Set TALOS_STATUS_STYLE=expressive for the live work card; TALOS_STATUS_ANIMATION=0 disables its indicator. |
| cli | FULL | chat and ask. Approvals only at a terminal. |
| ASK | Sender proven from the receiving server's Authentication-Results, fail-closed. | |
| FULL · NOTIFY | Broker over SSH pull (FULL) · or Cloud API, outbound only (NOTIFY). |
It is chosen by the sender and IMAP verifies nothing, so an allowlist keyed on it
is bypassed by one line of text. Talos trusts only an
Authentication-Results header stamped by the
TALOS_MAIL_AUTHSERV_ID it is configured to expect · and without that
configuration the sender stays unproven, fail-closed.
Section 12What it doesn't have
If you have used other agent CLIs, some things will be missing. Each was considered and left out for the same reason.
| Not here | Why not |
|---|---|
| gateway | A gateway terminates foreign identities and then claims channel:id to the kernel instead of proving it. Identity checking would hang on a component outside the kernel. |
| setup --portal | A web portal is a network service with its own authentication · by definition a second source of permission beside the allowlist. |
| config.yaml | The config carries the allowlist, and the path floor protects that exact file. Two places means two truths about who may command it. |
| --tui | Pure surface. It buys optics and costs a render path plus test surface; the kernel decisions are already printed. |
| tool calling | The API request carries no tools field. Provider-side tool calling would let the model reach an executor the kernel never saw. |
| a plan you can approve | That would be consent to actions nobody has seen yet. A plan may set order and an abort condition; every step still passes the gate on its own. |
Many views are fine. There may be exactly one dispatcher, one path from arguments to targets, and one source of permission. What weakens a guardian is not the number of commands · it is a second way in.
Optional worker
Let Codex take a scoped coding task
Enable the worker on both sides. The agent needs its existing worker switch and socket, plus TALOS_CODEX_BACKEND=1. The worker needs an installed Codex CLI and an authenticated, private credential home:
TALOS_CLAUDE_WORKER_CODEX_BIN=/usr/bin/codex
TALOS_CLAUDE_WORKER_CODEX_HOME=/var/lib/talos/codex-home
Authenticate as the worker user. Protect the directory with mode 0700 and its auth file with 0600. Each job gets an auth-only copy in its disposable workspace. Missing configuration fails before the job starts. MCP and browser tasks remain on the Claude backend.
The CLI runs inside Talos's mandatory outer sandbox. A completed worker turn still needs the appropriate file or test check before you call the task finished. Read the full worker setup and boundaries →
Your first useful run
Start with something you can check.
After configuring your model and chat identity, try these in your own conversation. No sample needs a secret, an external message or a production change.
- Read: ask Talos to read a README in its workspace and explain how the project starts.
- Make: ask for a small notes file inside the workspace. Read it back and use
/undoto verify recovery. - Inspect: use
/logto see the recorded calls, or/stopto interrupt a running thought.
For an enabled coding worker, describe the task, the relevant source material and a testable result. Wait for the job's terminal receipt, then inspect its artifacts.