talos init walkthrough
talos init is the canonical bootstrap. It is idempotent — re-running detects existing config and prompts to keep, reset, or partial-reset (re-do OAuth only).
pnpm dev:cli init# or, after pnpm build + link:talos initThe wizard walks you through seven steps:
- OpenAI API key — written to
.envwith mode0600. - Burner wallet — viem mnemonic generated, exported as a private key, persisted to
~/.config/talos/burner.jsonmode0600. SetEVM_PRIVATE_KEYin your env to override. - KeeperHub OAuth — opens a browser, RFC 8252 loopback redirect, no manual API key.
- Channel configuration — writes
channels.yaml(CLI / Telegram / MCP enabled flags). - Daemon bearer token — written to
~/.config/talos/daemon.tokenmode0600. Used by all thin clients to authenticate totalosd. - Database migrations — Drizzle migrations applied to PGLite at
~/.config/talos/db/. - Optional service install — launchd (macOS) or systemd-user (Linux) unit so
talosdstarts on login.
| Flag | What it does |
|---|---|
--non-interactive | Skip all prompts; fail if any required input is missing. For CI. |
--skip-keeperhub | Defer the KeeperHub OAuth handoff. Talos starts without KH; mutating tools fail until you either finish OAuth via talos doctor --keeperhub or set KEEPERHUB_DISABLE_MUTATES=true to route mutates directly through viem (audit log stays on). |
--reset-keeperhub | Forget existing KeeperHub credentials; re-run OAuth only. |
--reset-wallet | Generate a fresh burner. Destructive — your old burner address is forgotten. |
Idempotency
Section titled “Idempotency”Re-running talos init shows you each existing piece of config and asks:
Found existing OpenAI API key in .env (sk-...gE7). [k] Keep [r] Reset (re-prompt) [s] SkipSelecting Keep for everything is a no-op — useful for verifying state without rewriting anything.
Troubleshooting
Section titled “Troubleshooting”If init fails after step 3, run talos doctor to check what’s missing. Doctor will print exactly which file is absent or malformed and how to recover it.