The AI coding agent that shows its work: see every LLM call, tool, token, cache hit and cent, right in your terminal.
pip install axon-terminal==0.29.1 Copy PIP instructions
123 slash commands · 22 built-in tools · 16 provider presets
Axon is an agentic coding assistant that reads, searches, edits and runs code in your repository, much like Claude Code. The difference is that nothing is hidden. Each turn is drawn as a numbered timeline: the model that was called and why, the tokens it consumed, how much of the prompt came from cache, which tools ran with which arguments, what each one fed back to the model, who approved it, which hooks fired, and what it all cost, to four decimal places.
> fix the failing test in tests/test_cart.py ┌ Turn 1 · "fix the failing test in tests/test_cart.py" │ ◆ Step 1 · claude-sonnet-4-5 · 1 message · ~11.8k tokens │ ▍ ANSWER │ ▎ I'll look at the test and the code it exercises. │ │ ▣ TOOLS · 2 calls · in parallel · allowed: read-only │ 1 Read input tests/test_cart.py │ run ✓ 0.01s · 48 lines · 375 B │ output 1 line 1 │ 2 line 2 │ … +46 more lines · /output 1 │ 2 Grep input "def total" in src/ │ run ✓ 0.04s · 1 match in 1 file │ output src/shop/cart.py:31 def total(self) -> Decimal: │ → 2 results (857 B, ~204 tokens) go to step 2 │ │ ◆ Step 2 · claude-sonnet-4-5 · 4 messages · ~12.5k tokens │ ▣ TOOLS · 1 call · allowed: rule │ Bash input pytest -q tests/test_cart.py │ run ✓ 1.80s · allowed (rule) │ output F.... │ FAILED tests/test_cart.py::test_discount_rounding - assert Decimal('9.99') =… │ 1 failed, 4 passed in 0.21s │ → 1 result (128 B, ~34 tokens) goes to step 3 │ │ ◆ Step 3 · claude-sonnet-4-5 · 6 messages · ~12.7k tokens │ ▍ ANSWER │ ▎ The discount is truncated instead of rounded. Fixing `total()`. │ │ ▣ TOOLS · 1 call · allowed │ Edit input src/shop/cart.py │ run ✓ 0.03s │ output ✎ Edited src/shop/cart.py · +1 −1 │ - return (subtotal * rate).quantize(CENTS, ROUND_DOWN) │ + return (subtotal * rate).quantize(CENTS, ROUND_HALF_UP) │ note › hook PostToolUse ran (1 command) │ → 1 result (39 B, ~10 tokens) goes to step 4 │ │ ◆ Step 4 · claude-sonnet-4-5 · 8 messages · ~12.9k tokens │ ▣ TOOLS · 1 call · allowed: rule │ Bash input pytest -q tests/test_cart.py │ run ✓ 1.70s · allowed (rule) │ output ..... │ 5 passed in 0.19s │ → 1 result (23 B, ~6 tokens) goes to step 5 │ │ ◆ Step 5 · claude-sonnet-4-5 · 10 messages · ~13.0k tokens │ ▍ ANSWER │ ▎ Fixed. `Cart.total()` now rounds the discount with `ROUND_HALF_UP`, so 9.995 │ ▎ becomes 10.00. All 5 cart tests pass. │ → final answer written in step 5 by claude-sonnet-4-5 │ usage by step │ step model time in cached cache write out cost │ 1 claude-sonnet-4-5 2.1s 11.8k 92% - 164 $0.0061 │ 2 claude-sonnet-4-5 1.4s 12.5k 94% - 96 $0.0052 │ 3 claude-sonnet-4-5 2.6s 12.7k 98% - 212 $0.0068 │ 4 claude-sonnet-4-5 1.2s 12.9k 97% - 88 $0.0049 │ 5 claude-sonnet-4-5 1.1s 13.0k 99% - 58 $0.0045 └ ✓ Done in 10.6s · 5 LLM calls · 5 tool calls · 62.9k in · 618 out · $0.0275 context █░░░░░░░ 7% of 200k Contents Start here: What you need · Install · Set up a model · Your first task · Cheat sheet · Reading a turn · Update or uninstall · Your data · FAQ · Troubleshooting
Reference: Highlights · Providers · Tracing · Commands · Tools · Extending Axon · Memory · Settings · Storage · Analytics · Solver · SDK and HTTP API · Testing · Project structure · Docs
Check Python (open a terminal: Terminal on macOS, PowerShell on Windows):
python3 --version # macOS / Linux py --version # Windows (or: python --version) You need 3.10 or higher. If it is missing or older:
Axon is on PyPI as axon-terminal. Pick one of the commands below. Each one adds an axon command to your terminal.
On Windows, use py -m pip install axon-terminal if pip is not found.
The package is called axon-terminal, not axon. pip install axon installs an unrelated project from someone else.
axon --version Which one should I use? They all install the same package from PyPI; the difference is where it goes.
uv tool install axon-terminal==0.29.1 pipx install axon-terminal==0.29.1 pip install axon-terminal==0.29.1 Set up a model Run the guided setup once:
axon setup It asks which provider, your API key (typed hidden, checked live before it is saved) and which model, then your default permission mode and trace level. Keys are stored in ~/.axon/.env on your machine only.
No key, no cost, works offline: install Ollama, run ollama pull qwen2.5-coder:7b, then pick Ollama (Local) in axon setup.
You can change any of this later from inside Axon: /model (switch model), /provider (switch provider), /keys (add, replace, test or remove keys), /endpoint (use a proxy or custom URL) and /settings (every option in one menu). axon doctor checks that everything is set up correctly.
Go to a project folder and start Axon there. It works on the files in that folder:
cd path/to/your/project axon Then just type what you want, in plain words, and press Enter:
explain how this project is structured find why the tests in tests/test_cart.py fail and fix it add a --verbose flag to the CLI and update the README Axon plans the work, reads and searches your files, runs commands and edits code, and shows every step as it goes (what each mark means). Things to know:
axon "explain the auth flow" # start with a prompt axon -p "list TODOs in src/" --output-format json # one answer, no interactive session (scripts, CI) axon --mode plan # read-only planning axon --model deepseek-v4-flash --context-limit 256k # choose model and context size for this run axon -w feature-x # work in a separate git worktree Reading a turn Every turn is drawn as a timeline. Each kind of row has its own mark, so you can always tell what the model thought, what it did and what it said:
› fix the failing test ┌ Turn 3 · "fix the failing test" deepseek-v4-flash · bypass mode │ ◆ Step 1 LLM call · deepseek-v4-flash · reads 5 messages (~9.3k tokens) │ ✻ Thinking │ ┊ The test fails on rounding. Let me run it first. │ ✻ thought for 1.2s │ ↪ replied in 3.8s · 9.1k in · 287 out · $0.0398 · context █░░░░░░░ 1% of 1M │ ● Bash pytest -q tests/test_cart.py │ runs a shell command · why: Let me run it first. │ ⎿ exit code 1 · 3 lines of output · 1.80s │ FAILED tests/test_cart.py::test_discount_rounding │ 1 failed, 4 passed in 0.21s │ │ ◆ Step 2 LLM call · deepseek-v4-flash · reads 8 messages (~10.4k tokens) │ → includes 1 tool result from step 1 (128 B · ~32 tokens) │ ▎ The discount is truncated instead of rounded. Fixing it. │ ↪ replied in 2.5s · 10.4k in (89% cached) · 128 out · $0.0093 └ ✓ Done in 6.4s · 2 LLM calls · 1 tool call · 19.5k in · 415 out · $0.0491 Mark Meaning ┌ Turn … └ ✓ Done One prompt and everything it caused, closed by the totals for the turn ◆ Step N LLM call One request to the model: which model, and how much it reads ✻ Thinking, ┊ The model's reasoning. /thinking switches between the full text and a one-line summary ↪ replied in … That call's time, tokens (and how many came from cache), cost and context use → runs 3 tools … Several tool calls at once: in parallel when all are read-only, otherwise one after another ● Tool target A tool call, followed by what the tool does and why the model called it ⎿ The tool's result: a summary, a short preview, and /output n for everything → includes … Which tool results the next LLM call receives ▎ Text written by the model ⚠, ✗ Retries, warnings and failures While Axon works, the bottom of the screen shows a spinner with a live timer for the current tool or step, the tokens streamed so far, and a tip underneath. Ctrl+F (or /transcript) opens the whole session full-screen, where every block can be expanded or collapsed with a click.
Uninstalling keeps your settings, keys and sessions in ~/.axon. Delete that folder too if you want everything gone.
Everything stays on your computer, under ~/.axon (%USERPROFILE%\.axon on Windows), organised per project. Nothing is deleted automatically.
/project shows the folder for the project you are in. /delete moves a session to a trash folder (/restore brings it back). axon purge is the only thing that really deletes data, and it asks first. ~/.axon/README.md explains the layout in detail.
Does it cost money? Axon itself is free. The model provider charges for the tokens each request uses; Axon shows the cost of every step, every turn (/cost) and over time (/stats). Local models through Ollama or LM Studio cost nothing. Use /budget 2 to stop a session at $2.
Is my code sent anywhere? Only to the model provider you chose, and only what the model needs for your request (the files it reads, command output). Nothing is sent to Axon's authors. With a local model nothing leaves your machine.
Which model should I use? deepseek-v4-flash (the default on AgentRouter) is fast and cheap for most work; switch to a larger model (/model) for hard problems. /model lists what your provider offers.
Does it work on Windows? Yes: PowerShell 7, Windows PowerShell 5.1, Command Prompt, Windows Terminal, Git Bash and WSL. See docs/windows.md.
Can I use it in scripts or CI? Yes: axon -p "…" --output-format json prints one answer (or stream-json for every event) and exits. There is also a Python SDK and a local HTTP API (below).
I use Claude Code. Does my setup carry over? Axon reads CLAUDE.md, .claude/commands, .claude/agents, .claude/skills, .mcp.json and the same hook format. Claude Code's own model choice is not used; Axon's model comes from /model.
Pick a model with /model, or switch provider with /provider and --provider . The endpoint and key follow the model you select. Keys are read from the environment, then from ~/.axon/.env.
Any other OpenAI-compatible endpoint works with --base-url and AXON_API_KEY. Use /pricing to see per-model token prices and /keys to check which keys are configured.
Every turn is recorded as a structured trace and rendered live at one of four levels. Set the level with --trace, /trace, Ctrl+O, or trace_level in settings.
123 built-in commands. Run /help for the list or /help for details; the full reference is in docs/commands.md.
Subcommands run outside the REPL: axon setup, axon doctor, axon mcp …, axon keys …, axon endpoint …, axon stats, axon report, axon serve, axon map, axon new, axon activity, axon projects, axon library and axon purge. For every flag, see docs/commands.md.
MCP tools appear as mcp__ __ . Use --tools "Read,Grep" to restrict the set, and --allowedTools / --disallowedTools (or permissions rules) to control approval.
Every extension point is a plain file. The full formats are in docs/extending.md, and ready-to-copy files are in examples/.
The matching .claude/ locations are read too.
axon mcp add github --env 'GITHUB_TOKEN=${GITHUB_TOKEN}' -- npx -y @modelcontextprotocol/server-github axon mcp add --transport http docs https://example.com/mcp --header 'Authorization: Bearer ${DOCS_TOKEN}' axon mcp add --scope project db -- python tools/db_mcp.py # saved to /.mcp.json axon mcp list ${VAR} and ${VAR:-default} are expanded when the server starts, so the file keeps the reference and not the secret. Inside a session, /mcp manages servers, tools, resources, prompts and logs. MCP prompts become slash commands (/server:prompt). Remote servers support OAuth sign-in (axon mcp login ), headersHelper, WebSocket ("type": "ws") and allow/deny lists; a project's .mcp.json servers wait for your approval; axon mcp serve exposes Axon's own tools as an MCP server. Details: docs/extending.md.
Hooks run at SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SubagentStop, PreCompact, Notification, SessionEnd and the other Claude Code events. A handler is a command, an HTTP endpoint, an MCP tool, or a model prompt/check; if narrows tool events. Each hook receives the event as JSON. Exit code 2 blocks the action, and JSON output can allow, ask, deny, rewrite tool input or output, or add context. /hooks browses the hooks that are loaded. See docs/extending.md.
Subagents. The model delegates work through the Task tool. The built-in agents are general-purpose, explore, plan, code-reviewer, test-runner and analytics. Use /agents to create your own, /subagents to open a subagent's transcript, and --agent to run the whole session as one.
When the model starts several Task calls in one step they run in parallel. Each one is numbered in the order the model asked for it (#1, #2, …) and gets a live view: 0 shows the overview, 1–9 opens one subagent's feed (what it was asked, its model, its steps and its reason if it failed), Q shows the prompt queue, Tab / arrows move between them and Esc returns to the overview. When they finish, one table lists each subagent with its status, steps, time and tokens; a failed subagent shows its reason there and in its own card. /subagents opens its transcript.
Output styles. Built-in styles are default, explanatory, learning and concise, plus any custom Markdown style you add. Switch with /output-style.
Marketplace. /marketplace (aliases /connectors, /store) is a browser for connectors (MCP servers), skills and plugins, with Yours and Discover views, search, and filters for category, free and installed. It installs a connector into your MCP config, asks for any API key it needs (stored owner-only in ~/.axon/.env), connects once to check it and rolls the change back if the server is unreachable. It also scaffolds new skills and plugins. The same commands work in scripts:
axon marketplace list --free axon marketplace search postgres axon marketplace install context7 axon marketplace create-skill Details and the verification rules for catalog entries: docs/marketplace.md.
Instruction files load broadest first and are concatenated, so a narrower file never overrides a broader one:
@path imports are followed up to 4 levels deep. /init writes an AXON.md from an analysis of the repository, and /memory lists everything that was loaded.
Settings are applied from lowest to highest priority:
Permission rules and hooks are merged across all of these layers rather than replaced. Project files may not set api_key or base_url.
Every key, with its environment variable and settings.json spelling, is listed in docs/configuration.md.
All state lives under ~/.axon, or under AXON_HOME if you set it. Axon writes inside your project only when you ask it to, for example with /init or a project-scoped memory. Everything a project produces is kept in that project's own folder; ~/.axon/README.md (generated) explains every file, and /project (alias /where) shows which project you opened and where its data is.
~/.axon/ README.md generated guide to this folder settings.json config.toml .env mcp.json AXON.md user-level config & memory agents/ commands/ skills/ plugins/ rules/ output-styles/ memory/ user-wide memory (all projects) history.jsonl prompt history (all projects) usage.jsonl every LLM call: tokens + cost logs/ cache/ logs and scratch data backup/ / originals kept by migrations projects/index.json every project: path, last opened, size projects/ / project.json README.md name, workspace path, git, counts activity.jsonl append-only journal of everything memory/MEMORY.md auto memory for this project plans/ tips.json plan-mode files, cached tips trash/ deleted sessions (/restore) sessions/ / ONE folder per chat session, holding all of it: session.jsonl full transcript subagents/ .jsonl subagent transcripts ( .trace.jsonl: traces) screen.log plain-text copy of the terminal trace.jsonl per-turn traces outputs/ full tool/shell outputs cut for the model, background shell logs checkpoints/ file snapshots for /rewind (+ rewound/) images/ pastes/ pasted images and large pastes todos.json exports/ debug.log todo list, /export files, --debug log Nothing is deleted automatically: cleanup_period_days defaults to 0 (keep forever). Set it to N > 0 to prune whole session folders older than N days at startup (the journal, memory and trash are never pruned). /delete moves a session's folder to the project's trash/ and /restore brings it back. Run axon purge [project|caches|all] to delete stored data on purpose.
The activity journal records every prompt, slash command, ! shell command, # note, /btw question and answer, queued message, permission decision, settings change, turn (stop reason and cost), tool call, error, retry, rewind, resume and delete, with secrets redacted. Read it with /activity [N] [--kind k] [--session id] [--since 2h] [--all-projects] [--export file.md|.jsonl] or axon activity with the same flags; axon projects lists every project, and /history all shows a transcript including messages a rewind removed. Transcripts that older versions kept in ~/.axon/sessions/ are moved into their project once (copied, verified, the originals kept in ~/.axon/backup/). Sessions stored in the older flat layout (sessions/ .jsonl next to traces/, outputs/ /, checkpoints/ /, todos/, screen/, exports/, debug/) are still readable and are moved, never copied, into their session folder when the session is opened and at startup; a file that would collide with a different one is parked in /legacy/. Images and pastes of that old layout carry no session id and stay in images/ and pastes/.
Every LLM call is appended to ~/.axon/usage.jsonl, recording model, source, tokens, cache use, latency and cost.
To replace the detected checks, set verify_commands in your settings.
from axon.features.sdk import AxonOptions, query, run for event in query("explain src/app.py", AxonOptions(mode="plan")): if event["type"] == "text_delta": print(event["text"], end="") result = run("fix the failing test", AxonOptions(mode="acceptEdits", max_turns=20)) print(result.text, result.cost_usd, result.session_id) Each event is a JSON-serialisable dict, such as llm_call_start, tool_use, permission, tool_result, llm_call_end (with usage and cost), cache_status and finally result. Approvals are non-interactive: anything that would need a human is denied unless you pass can_use_tool.
axon serve exposes the same events over HTTP:
axon serve --port 8765 # binds 127.0.0.1 and prints a bearer token curl -N -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ -d '{"prompt":"summarise README.md","stream":true}' http://127.0.0.1:8765/v1/query The endpoints are GET /health, GET /v1/sessions, GET /v1/usage and POST /v1/query (SSE or JSON). Binding to a non-loopback address requires --allow-remote.
python -m pip install -e ".[dev]" python -m pytest -q -m "not e2e" # unit and integration suite python -m pytest -q -m e2e tests/e2e # end-to-end: the real CLI against a fake LLM server The end-to-end suite (about 1,200 tests) starts the real axon process against a local fake OpenAI/Anthropic-compatible server and a fake MCP server, so it needs no network access and no API key. For details, see docs/testing.md.
axon/ ├── install.sh · install.ps1 · install.bat installers: one-line remote install or from a clone ├── .github/workflows/ CI (lint, tests on Linux/macOS/Windows, installers) and PyPI release ├── pyproject.toml package metadata and the only dependency list ├── check_models.py live latency/health check across models ├── scripts/ │ ├── setup_env.py installer core used by install.* │ ├── axon_run.py run from a checkout without installing │ └── gen_docs.py regenerates the reference parts of the docs ├── src/axon/ │ ├── cli.py argument parsing, print mode, REPL, subcommands │ ├── config.py · storage.py · platform.py settings, on-disk layout, OS/terminal layer │ ├── agent/ loop, prompt, context, memory, subagents, trace, worktrees │ ├── providers/ Anthropic + OpenAI-compatible clients, catalog, pricing, failover │ ├── tools/ built-in tools (files, search, shell, web, tasks, …) │ ├── permissions/ rules engine, path jail │ ├── commands/ slash-command registry and the built-in commands │ ├── hooks/ · mcp/ · skills/ extension systems │ ├── session/ transcripts, checkpoints, cost ledger │ ├── features/ analytics, solver, planner, SDK, server, scaffolding, onboarding │ └── ui/ renderer, markdown, input editor, pickers, theme ├── examples/ ready-to-copy config, hooks, agents, commands, skills ├── docs/ architecture, configuration, commands, extending, Windows, testing └── tests/ unit/integration suites and tests/e2e Documentation Document Covers docs/architecture.md Module map and the data flow of a single turn docs/configuration.md Every setting, file location and precedence rule docs/commands.md Every slash command and CLI flag docs/extending.md Formats for hooks, skills, commands, agents, plugins, MCP and output styles docs/marketplace.md Browsing and installing connectors, skills and plugins; the catalog format docs/windows.md PowerShell and cmd specifics, shells, troubleshooting docs/testing.md Running and writing tests CHANGELOG Release notes (also shown by /release-notes) Contributing Fork the repository and create a branch. Run python -m pip install -e ".[dev]". Make your change, adding tests next to the existing ones in tests/. Run ruff check src scripts tests and the test suite. Both must pass. If you changed commands, tools, providers or settings, run python scripts/gen_docs.py to refresh the generated reference sections. --check exits non-zero when they are stale. Open a pull request that describes the change and how you verified it. License No license file has been published yet, so all rights are reserved by the author until one is added. Please open an issue if you would like to use Axon under specific terms.
ai agent coding-assistant llm cli terminal anthropic openai mcp developer-tools
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




