Stoat Quickstart
chimera stoat Quickstart
Section titled “chimera stoat Quickstart”chimera stoat is the sixth Chimera coding-agent CLI. Where
chimera weasel ships a four-mode minimal
harness and chimera shrew tunes for small
local models, stoat ships a shell-mode toggle: in the same REPL,
each line either feeds the LLM agent or runs as a direct shell command,
and the user flips between the two without leaving the prompt.
The headline trade is ergonomic. Stoat is for users who live in their
terminal and want one buffer for both ls -la and “explain this repo”.
A single slash (/shell) toggles between agent mode (stoat>) and
shell mode (stoat$); each input runs as bash -c <input> until the
user toggles back.
This page walks through installation, the toggle, and the headline subcommands. Deeper dives:
shell-mode.md— the toggle in detail.slash-commands.md— the slash palette.providers.md— Kimi-first provider chain.sessions.md— list / show / cost / share.parity-matrix.md— surface mapping vs upstream.security-and-trademarks.md— policy.
Prerequisites
Section titled “Prerequisites”- Python 3.11+
uv- One of: a Moonshot API key (recommended for the upstream-tuned defaults), an Anthropic key, an OpenAI key, an OpenRouter key, or a reachable Ollama daemon
uv --version # >= 0.4uv sync --extra dev --extra anthropic # core + Anthropic SDKProvider configuration
Section titled “Provider configuration”Stoat’s provider chain is Kimi-first because the upstream shell-mode-toggle harness is tuned for Kimi K2.6 chat models. Resolution order (first match wins):
--model <id>on the CLI.$STOAT_MODELenvironment variable.$MOONSHOT_API_KEYset → defaults tokimi-k2.6(routed through the OpenAI-compatible adapter againstapi.moonshot.ai).$ANTHROPIC_API_KEYset → defaults toclaude-sonnet-4-6.$OPENAI_API_KEYset → defaults togpt-4o.$OPENROUTER_API_KEYset → defaults tomoonshot/kimi-k2.6.$OLLAMA_API_KEYset → defaults toqwen3.5:cloud.- Friendly error pointing at the env vars above.
export MOONSHOT_API_KEY=...# ORexport ANTHROPIC_API_KEY=sk-ant-...# ORexport OPENAI_API_KEY=sk-...The Moonshot path is OpenAI-compatible; you can override
$MOONSHOT_BASE_URL for self-hosted gateways. Full chain detail in
providers.md.
First run — the toggle
Section titled “First run — the toggle”chimera stoatstoat — Chimera coding agent (shell-mode toggle: /shell)model: kimi-k2.6 · mode: agent · cwd: /Users/me/projType /help for commands, /exit to quit.stoat> list the top-level files and read the READMEI'll list the repo first, then read the README.…stoat> /shell(shell mode: each input runs as 'bash -c <input>'. Type /shell to return to agent mode.)stoat$ lsCHANGELOG.md CLAUDE.md README.md chimera/ docs/ examples/ tests/stoat$ git statusOn branch master…stoat$ /shell(agent mode)stoat> commit the staged changes with a one-line message…Two lines, two modes. The same buffer; no extra terminal, no subshell,
no escape characters. /shell is the only ceremony.
You can also boot stoat directly into shell mode:
chimera stoat --shell-mode…then /shell flips you back into agent mode whenever you want the LLM.
One-shot print mode
Section titled “One-shot print mode”-p runs a single agent turn and exits. Plain text on stdout by default,
JSON with --json:
chimera stoat -p "list the top-level files and read the README"chimera stoat -p "summarize TODO comments in src/" --jsonchimera stoat -p "ship it" --max-steps 5chimera stoat --model gpt-4o -p "draft a release note"chimera stoat -p "audit" --allowed-tools Read,BashPrint mode does not engage shell mode — it always runs the agent loop. For one-off shell commands, use your shell directly; that’s the whole point of stoat’s toggle.
Sessions and shares
Section titled “Sessions and shares”Every interactive run journals to
~/.chimera/eventlog/stoat-<utc>-<uuid>/. List, inspect, cost, and
share with the same UX as the other coding-agent CLIs:
chimera stoat sessions listchimera stoat sessions show stoat-20260430T101455-1f3c2a8bchimera stoat sessions cost --since 7dchimera stoat share stoat-20260430T101455-1f3c2a8b --share-format mdThe cost rollup re-uses chimera mink runs cost
under the hood so the JSON / CSV / text schema is byte-identical
across all six CLIs.
Env vars at a glance
Section titled “Env vars at a glance”| Variable | Default | Meaning |
|---|---|---|
STOAT_MODEL | (unset) | Default model id when --model is not passed. |
MOONSHOT_API_KEY | (unset) | Activates the Kimi-first provider path. |
MOONSHOT_BASE_URL | https://api.moonshot.ai/v1 | Override for self-hosted gateways. |
ANTHROPIC_API_KEY | (unset) | Activates the Anthropic chain. |
OPENAI_API_KEY | (unset) | Activates the OpenAI chain. |
OPENROUTER_API_KEY | (unset) | Activates the OpenRouter (compatible) chain. |
OLLAMA_HOST | http://localhost:11434 | Ollama daemon root for remote daemons. |
BASH | bash | Override the bash binary used in shell mode. |
NO_COLOR | (unset) | Force the plain output handler. |
What gets written to disk
Section titled “What gets written to disk”| Path | What |
|---|---|
~/.chimera/eventlog/stoat-<id>/ | Per-run event stream + summary. |
~/.chimera/shares/stoat-<id>.<ext> | Rendered share files. |
~/.chimera/credentials.json | OAuth-issued tokens (mode 0o600). |
Everything is local and plaintext. No remote telemetry. Purge old runs
with rm -rf ~/.chimera/eventlog/stoat-*.
Where to go next
Section titled “Where to go next”- Master the toggle:
shell-mode.md. - Inventory the slash palette:
slash-commands.md. - Pick a provider:
providers.md. - Walk the surface-by-surface upstream parity:
parity-matrix.md. - Trademark + security policy:
security-and-trademarks.md.