Axon · v5.6.0
User Manual: indexing a codebase, asking questions from the command line, the Explorer and your AI assistant, and managing your subscription
Axon reads your code once and builds a graph: which modules, types and functions exist, who calls whom, which tests, endpoints, commands and tables they reach, and which commits touched them. You then ask questions in three ways, all backed by the same local index:
axon search, axon callers, axon impact, ...);axon explore);axon serve.Everything runs on your machine and is read-only: Axon never writes into your repositories. The only network use is licensing, and only for projects over 10,000 lines of code (see Subscribing).
Installing
This manual assumes axon is installed and on your PATH (axon version works). See the Installation Manual otherwise.
axon index ~/src/app
A target is a folder or a .code-workspace file. Progress goes to stderr; the result goes to stdout.
axon doctor --target ~/src/app
cd ~/src/app axon search "payment retry policy" axon callers PaymentService --depth 2 axon impact PaymentService
From another folder, name the target: axon --target ~/src/app search "feature flag".
axon explore ~/src/app
Indexing (axon index, or the code-index MCP tool) scans the target, parses every supported file and links the pieces into a graph. It runs in eight phases:
axon index asks whether to index the current folder. Without a terminal (CI, scripts) pass the path.axon index ~/src/app --watch.axon index ~/src/app --dry-run prints how many files each phase would process (including resumed or deferred catch-up work, marking disabled phases) without locking or modifying index.db. Supports --format json; cannot be combined with --watch.--format json prints one JSON event per line on stderr; -q silences progress..gitignore or .axonignore, hidden files and symlinks are skipped (see Ignoring files).On a terminal each phase shows a live line that becomes a summary, for example:
==> scan: 3866 files discovered, 3866 to index, 0 skipped, 512340 lines of code ==> index run #1 (manual): 3866 files ✔︎ filesystem 3866/3866 files 0.8s ✔︎ tree_sitter 3866/3866 files 39.4s ==> Phase 4/8: resolver ██████████░░░░░░░░░░ 1930/3866 files 50% 46 files/s ETA 42.1s
A full 8-phase index of ~4,000 files (~1M lines of code) takes roughly 1.5–2.5 minutes on an Apple Silicon laptop; incremental re-indexes after edits take under a second. Pass --skip-if-locked (used by editor hooks) to exit cleanly when another index run is already in progress.
axon doctor prints one line per check: database (the index was built, with file, node and edge counts), git, loc (your line count, and whether a license is required above 10,000), vector and one lsp:* line per language server. config [missing] only means you have not changed a setting yet.
Index a VS Code .code-workspace file and each of its folders becomes a federated repository, with edges between repositories and a --repo filter on queries:
axon index ~/src/platform.code-workspace axon --target ~/src/platform.code-workspace search "sharedLogic" --repo api
Query commands only read the index. Names are positional (axon callers loadUser). When a name matches several symbols, the command still succeeds (exit code 0): the result has ambiguous: true and lists the candidates with their ids and qualified names; repeat it with one of them, or narrow with --kind or --lang. With --format json, every query result carries a freshness block that says how many indexed files changed on disk since the index was built (nodes in them are marked stale); the command never re-indexes.
| Goal | Command |
|---|---|
| Hybrid search (names, text, graph, and semantic vectors when enabled) | axon search "payment retry policy" --limit 20 |
| Text search with filters | axon grep TODO --type rust --context 2 |
| Several patterns, file names only | axon grep -i -e retry -e backoff -l |
| Find a symbol | axon symbol PaymentService |
| Jump to a definition | axon definition PaymentService |
Find references (alias refs) | axon references PaymentService |
| Who calls it | axon callers PaymentService --depth 2 |
| What it calls | axon callees PaymentService --depth 2 |
| Neighborhood graph | axon graph PaymentService --direction incoming --depth 2 |
| Paths between two symbols | axon trace listUsers loadUser --max-paths 5 |
| Blast radius of a change | axon impact loadUser saveUser --depth 3 |
| What my branch reaches (tests to run, endpoints, commands, pages, tables) | axon impact --since main (or --format mermaid) |
| Type supertypes, subtypes and method overrides | axon hierarchy Repository |
| Tests exercising a symbol, nearest first | axon tests loadUser |
| Functions nothing calls (candidates) | axon unused --path src |
| AI-ready context within a token budget (or legacy COBOL/VB.NET dossier) | axon context loadUser --task "Explain the request flow" --tokens 4000axon context AccountProg --mode legacy-dossier |
| Read a slice of a file | axon file src/main.rs --start-line 1 --end-line 80 |
| Recent commits for a symbol | axon history loadUser --limit 5 |
| Complexity-weighted git hotspots & single-author silos | axon hotspots --limit 10 |
| Goal | Command |
|---|---|
| Communities, layers and cycles | axon architecture |
| Deterministic PageRank & Louvain orientation report | axon report (axon report --output GRAPH_REPORT.md) |
| Diff-scoped architecture, cycle, complexity & impact safeguards | axon check --diff (axon check --diff --format sarif) |
| Health of the target, with advice | axon doctor, axon doctor --fix |
| Show or change a setting | axon config show, axon config set lsp.enabled true (see Settings reference) |
| List or clean stored indexes and shared vector cache | axon indexes, axon indexes purge, axon cache stats |
| Configure MCP clients, Claude hooks & IDE deeplinks | axon setup claude --hooks, axon setup --deeplink |
| Shell completions | axon completions zsh |
--format json on any command prints one JSON document, for scripts. --target and -q work on every command.nodes table and is referred to by id; --detail full keeps doc comments and evidence. axon architecture prints a summary (communities, layers, cycles) and lists one community's members only with --community and the --analysis token from the summary.pub Rust symbol called from another file). Calls never link two language families. Cycle detection ignores edges below --cycle-min-confidence (0.7); use 0.6 to see the guesses.--repo limits a query to one repository of a workspace; --relation CALLS (repeatable) limits graph edges; --min-confidence 0.6 drops weak edges.unused results are candidates: reflection, dependency injection, generated code or callers outside the target can still use them. Check each before deleting.history needs a git repository, and --repo on a workspace with several repositories.axon serve)axon serve is Axon's MCP 2.0 compliant (protocol 2026-07-28, with backward compatibility for older revisions) Model Context Protocol server. Register it in one command with axon setup (recommended), or add it manually to your MCP client (Claude Desktop, Claude Code, Cursor, VS Code, Codex, Copilot CLI):
axon setup claude --hooks # register MCP server + PostToolUse auto-reindex hook axon setup cursor # or vscode / codex axon setup --deeplink # print clickable cursor:// and vscode:mcp/install URIs
{
"mcpServers": {
"axon": {
"command": "/absolute/path/to/axon",
"args": ["serve"]
}
}
}axon serve beats raw grep and file readscode-context return only the relevant subgraph and slices — typically 1–20 KB (~250–5,000 tokens). All 23 tool schemas together fit in ~4,550 tokens.code-safeguard) in a single tool call instead of 10–30 sequential grep/read round-trips.Every tool except code-indexes needs a target: the absolute path of a folder or .code-workspace file (~ is not expanded). So name the project, or its path, in your prompt. Read tools need the target to be indexed; ask the assistant to run code-index first, or run axon index yourself.
| Tool | Ask your assistant |
|---|---|
code-search | "Search this repo for the payment retry policy." |
code-grep | "Find TODO in Rust files with two lines of context." |
code-symbol, code-definition | "Where is PaymentService defined?" |
code-references | "Where is PaymentService referenced?" |
code-callers, code-callees | "Who calls PaymentService? What does it call?" |
code-graph | "Expand the graph around PaymentService." |
code-trace | "Trace from loadUser to listUsers." |
code-impact | "What could break if I change loadUser?" or, with since, "Which tests and endpoints does my branch reach?" |
code-hierarchy | "What does Repository implement, and what implements it?" |
code-tests | "Which tests exercise loadUser?" |
code-unused | "Which functions does nothing call?" |
code-context | "Build context for loadUser" (symbol), "Summarize this repo" (repo_report), or "Build a legacy dossier for AccountProg" (legacy_dossier). |
code-file | "Read src/main.rs lines 1 through 80." |
code-history | "Show recent history, complexity hotspots, co-changes or bus factor for loadUser." |
code-architecture | "Summarize the architecture clusters, layers and cycles." |
code-safeguard | "Check my uncommitted diff for architecture breaks, cycles or complexity spikes." |
code-doctor | "Check this target's setup and tell me what to fix." |
code-index, code-index-status | "Re-index this project." "Is indexing still running?" |
code-indexes | "Which folders are indexed?" |
axon-explore | "Launch the Explorer and give me the URL." |
Alongside the 23 tools, axon serve implements full MCP 2.0 capabilities:
using-axon, explain-symbol, review-impact, onboard, dead-code, architecture-check, doctor, and legacy-modernization) served via skills/list, skills/get (with SHA-256 manifests), and skill://<name>/SKILL.md resources for progressive disclosure (e.g. /axon:<skill> in Claude Code).code-index returns a native MCP Task with live phase progress (tasks/get) and cooperative cancellation (tasks/cancel), falling back automatically to job_id + code-index-status polling for older clients./mcp__axon__explain-symbol, review-impact, onboard, dead-code, architecture-check and doctor) and 6 resources (axon://indexes, and per URL-encoded target axon://{target}/status, /doctor, /architecture, /policy and /symbol/{id}) with live subscriptions/listen notifications when a code-index job finishes.axon serve --max-response-bytes; a longer result is cut with truncated: true, a next_cursor to continue and a hint naming the arguments that narrow it), and every answer carries a freshness block that says whether files changed since the index was built. A name that matches several symbols is a normal answer listing the candidates, not an error.AXON_MCP_BEARER_TOKEN=replace-me axon serve --http 127.0.0.1:8080, then point it at http://127.0.0.1:8080/mcp.axon explore ~/src/app axon explore ~/src/app --port 4000 --no-open
The target must be indexed. Axon prepares a graph snapshot, prints a URL on stdout and opens it in your browser (--no-open only prints it). It serves on loopback only, one Explorer per target, and stops with Ctrl+C.
The details pane lists every edge of the selected node (Calls and Called by, Imports and Imported by, Changed by, and so on) with counts; the + next to a group draws only that relation. Neighbours the index could not resolve appear as (unresolved) or (external). Expand makes the details pane fill the window.
Axon recognizes a file by its extension, in any letter case (PROG.CBL works), or by its name. Source languages are parsed into symbols (modules, types, functions, methods, variables) and the calls, imports and references between them. The language server column names the optional server that adds compiler-grade evidence (LSP enrichment) and its key under lsp.servers.
| Language | Files | Language server (key) |
|---|---|---|
| Rust | .rs | rust-analyzer (rust) |
| TypeScript | .ts, .tsx | typescript-language-server or TypeScript 7's tsc --lsp (typescript) |
| JavaScript | .js, .jsx, .mjs, .cjs | the TypeScript server (typescript) |
| Python | .py, .pyw | pyright-langserver (python) |
| C# | .cs | Roslyn language server or csharp-ls (csharp) |
| Visual Basic .NET | .vb | vb-ls (vbnet) |
| Java | .java | jdtls (java) |
| Kotlin | .kt, .kts | kotlin-language-server (kotlin) |
| C | .c, .h (a header with C++ code is read as C++) | clangd (c) |
| C++ | .cc, .cpp, .cxx, .hpp, .hh, .hxx, .ipp, .tpp | clangd (cpp) |
| Go | .go | gopls (go) |
| Swift | .swift | sourcekit-lsp (swift) |
| Dart | .dart | dart language-server (dart) |
| PHP | .php, .phtml | intelephense (php) |
| Ruby | .rb, .rake, .gemspec, and Rakefile, Gemfile, Guardfile, Capfile, Podfile, Vagrantfile | ruby-lsp (ruby) |
| Perl | .pl, .pm, .t, .psgi, .plx, and scripts with no extension whose first line is a perl shebang | perlnavigator (perl) |
| COBOL (IBM Enterprise COBOL with CICS, DB2 and IMS) | .cbl, .cob, .cobol (programs), .cpy, .copy (copybooks), .dcl (DCLGEN members) | none |
| Language | Files | Language server (key) |
|---|---|---|
| JCL (jobs and procedures) | .jcl, .proc, .jclproc, and a .prc whose first line starts with // | none |
| CICS BMS map sources | .bms | none |
CICS resource definitions (CSD exports from DFHCSDUP) | .csd | none |
| SQL: DB2, T-SQL, Oracle PL/SQL, PostgreSQL, MySQL | .sql, .ddl, .pks, .pkb, .pls, .pck, .prc, .fnc, .trg, .psql | none (dialect: sql.dialect) |
| Configuration | .toml, .yaml, .yml, .json, .jsonc, .ini, .cfg, .conf, .xml, .properties, .prisma, .env files, Dockerfile | none: indexed for search, settings, environment variables and services |
| Pages, templates, styles and UI markup | .html, .htm, .xhtml, .css, .scss, .sass, .less, .cshtml, .razor, .aspx, .ascx, .jsp, .jspx, .vue, .svelte, .astro, .xaml, .axaml, .erb, .hbs, .handlebars, .mustache, .ejs, .pug, .njk, .jinja, .jinja2, .j2, .twig, .liquid | none: indexed as text (search, grep and the names they mention), not parsed into symbols |
Every source language above counts toward the 10,000 lines of the free limit, including COBOL, JCL, BMS and SQL. Configuration files, markup and .csd exports do not count.
Beyond symbols, Axon recognizes entry points and data access: HTTP endpoints (Express, ASP.NET, Spring, FastAPI and Flask, gin, net/http), CLI commands (clap, click, typer, argparse, cobra, commander and more), table reads and writes (SQL in code, Entity Framework, SQLAlchemy, Django, JPA, Prisma, TypeORM, Diesel, GORM and others), stored procedures and triggers, and pages. That is what lets axon impact say which endpoint or command a deep change reaches.
Axon reads IBM Enterprise COBOL with the CICS, DB2 and IMS code embedded in it, next to the other languages, together with the JCL, BMS and CSD sources around it. Both COBOL formats are read: fixed (sequence area in columns 1 to 6, indicator in column 7, text up to column 72) and free (>>SOURCE FORMAT FREE or $SET SOURCEFORMAT"FREE"). A file that declares neither is read as fixed.
| In the source | In the graph |
|---|---|
PROGRAM-ID | a module (nested and several per file work) |
| Section, paragraph | a function |
| Level 01 and 77 data items | a structure (group item) or a variable |
PERFORM (with THRU), GO TO, falling into the next paragraph | calls between paragraphs, tagged perform, goto or fallthrough |
CALL, EXEC CICS LINK and XCTL | calls to a program; a call through a variable links to every program name it can hold |
EXEC CICS HANDLE ABEND LABEL, HANDLE CONDITION, HANDLE AID | calls to the paragraph CICS jumps to, tagged cics_handle |
COPY, EXEC SQL INCLUDE | an import of the copybook |
EXEC SQL | a query with DB2 table reads and writes |
DCLGEN DECLARE ... TABLE | the table and its columns, so programs link to it without DDL in the repository |
EXEC DLI | IMS segment access |
CICS file reads and writes, SEND and RECEIVE MAP | reads and writes to CICS files and BMS maps |
JCL JOB and PROC | a module for the job or procedure |
JCL EXEC PGM=, EXEC PROC= | a step that calls the COBOL program, an IBM utility (IDCAMS, SORT, ...) or the procedure |
JCL DD DSN=... DISP= | reads (SHR), writes (NEW, MOD) or both (OLD) of the dataset; temporary datasets are skipped |
BMS DFHMSD, DFHMDI | the mapset and its maps, with their field names |
CSD DEFINE FILE ... DSNAME | the CICS file, linked to its dataset, so a program reading the file connects to the job steps that read the dataset |
CSD DEFINE TRANSACTION ... PROGRAM | a transaction that calls the program |
axon callers 9000-READ-ACCT --depth 2 # who performs, jumps to or falls into it axon grep -t cobol "EXEC SQL" # COBOL files only axon grep -t jcl "DSN=PROD.ACCT" # JCL files only axon callers ACCTDAT --relation READS # paragraphs that read a CICS file axon impact carddemo.transaction_type # blast radius of a DB2 table axon impact --since main
COPY ... REPLACING is not expanded, copybook VALUE clauses are invisible to the programs that copy them, there is no ALTER support and no COBOL language server.CEE*, CBLTDLI, DSN*, MQ*, DFH*, ...) appear as external nodes, not as unresolved ones..csd files do not.Language servers add compiler-grade evidence to the graph (resolved calls, references and types). It is off by default.
| Key | Install |
|---|---|
rust | rustup component add rust-analyzer |
typescript (also JavaScript) | npm install -g typescript-language-server typescript |
python | npm install -g pyright (macOS: brew install pyright) |
csharp | dotnet tool install --global roslyn-language-server --prerelease, or dotnet tool install --global csharp-ls |
vbnet | dotnet tool install -g vb-ls |
java | brew install jdtls, or eclipse.jdt.ls from your package manager (needs a JDK) |
kotlin | brew install kotlin-language-server, or from your package manager (needs a JDK) |
c, cpp | macOS: xcode-select --install or brew install llvm; Linux: apt install clangd |
go | go install golang.org/x/tools/gopls@latest (macOS: brew install gopls) |
swift | ships with Xcode and the Swift toolchain |
dart | ships with the Dart SDK and Flutter (brew install dart-sdk) |
php | npm i -g intelephense |
ruby | gem install ruby-lsp |
perl | npm i -g perlnavigator-server |
axon config set lsp.enabled true --target ~/src/app axon index ~/src/app axon doctor --target ~/src/app
doctor shows one lsp:<key> line per language in the target, with the server it found or how to install it.
.sln, .slnx or .csproj (.vbproj) exists at or above the files.clangd reads its compiler flags from compile_commands.json in the repository root or build/ (CMake: -DCMAKE_EXPORT_COMPILE_COMMANDS=ON; Make: bear -- make). Without it, calls behind include paths are missed.lsp.servers.<key> settings.axon index automatically retries only the deferred files on the lsp phase (axon doctor reports remaining files as lsp-pending, and axon index --dry-run previews how many deferred files remain for lsp).Vectors let search find a symbol from a paraphrase ("where do we retry failed payments" finds PaymentRetryPolicy). They are off by default and unavailable on Intel macOS.
axon config set storage.vectors true --target ~/src/app axon index ~/src/app
models/fastembed in Axon's data directory. Later runs work offline, and so do machines that get a copy of that folder.embeddings.model and embeddings.device, and what gets embedded with storage.embed_*.secret, token, password, key, URLs with passwords, private-key blocks) are replaced with [REDACTED] before anything is embedded or stored. It is a key-name heuristic: do not rely on it for secrets under other names.embedding-cache.db, at most 200,000 entries). axon cache stats, axon cache prune and axon cache clear manage it.axon config set storage.vectors false, then axon index.Settings belong to a target (a folder or a .code-workspace file). They live in config.toml in the target's storage directory inside Axon's data directory, never in the repository; axon doctor prints its path. Unchanged settings keep their defaults, so the file only exists once you set something.
axon config show # every setting of the current folder's target axon config show lsp # one section axon config show storage.vectors # one key axon config set storage.vectors true # change it (creates config.toml if needed) axon --target ~/src/app config set sql.dialect plsql axon doctor --fix # apply the setting changes doctor suggests
--target.true, 5000, "text", '["--stdio"]' for a list, '[]' for an empty one. Anything that is not valid TOML is stored as text.storage.vectros) fails with exit code 3 and is not stored; a value of the wrong type (lsp.request_timeout_ms abc) is refused. Under lsp.servers. any name is accepted, so check the key against the table below.axon index.storage)| Key | Default | Values and effect |
|---|---|---|
storage.vectors | false | true embeds symbols with the semantic model while indexing (Semantic vectors). Example: axon config set storage.vectors true |
storage.embed_bodies | true | With vectors: add an excerpt of each function body to its embedding. false embeds signatures and docs only; the symbols are re-embedded once. |
storage.embed_docs | true | With vectors: embed Markdown and other documentation by section. false deletes those chunks on the next index. |
storage.embed_file_chunks | true | With vectors: embed windows of code, script, SQL and config files that no symbol covers. false deletes those chunks on the next index. |
storage.vector_dimension | 768 | Internal fallback; the semantic model always uses 384 dimensions. Leave it unchanged. |
storage.index_file_content | false | Internal storage option. Leave it unchanged. |
embeddings)| Key | Default | Values and effect |
|---|---|---|
embeddings.model | bge-small | bge-small (BAAI/bge-small-en-v1.5), bge-small-q (its quantized build: a smaller file, same quality, not faster on Apple Silicon) or minilm (all-MiniLM-L6-v2: about 1.8 times faster, lower quality on some code). Changing it makes the next axon index embed everything again; search always uses the model the index was made with. Example: axon config set embeddings.model minilm |
embeddings.device | cpu | cpu, auto (the best accelerator this build has, else the CPU), cuda (NVIDIA, builds with CUDA support), coreml (Apple Silicon; works but measured much slower than the CPU) or directml (Windows). Changing it re-embeds nothing. An accelerator that cannot be used falls back to the CPU with one warning, which doctor shows. Example: axon config set embeddings.device auto |
sql)| Key | Default | Values and effect |
|---|---|---|
sql.dialect | auto | auto, tsql, plsql, postgres or mysql: how SQL files are read. A line -- axon:dialect=plsql in a file always wins; with auto, the extension and the content decide. Applies to files as they are indexed. Example: axon config set sql.dialect tsql |
lsp)| Key | Default | Values and effect |
|---|---|---|
lsp.enabled | false | true runs the installed language servers while indexing (LSP enrichment). |
lsp.request_timeout_ms | 5000 | Milliseconds each request to a server may take. Raise it for slow servers. |
lsp.initialize_timeout_ms | 30000 | Milliseconds a server may take to start; jdtls needs several seconds. |
lsp.ready_timeout_ms | 300000 | Milliseconds indexing waits for a started server to finish loading the project. rust-analyzer can take minutes on a large workspace. |
lsp.servers.<key>.enabled | on | false turns one server off and keeps the others. |
lsp.servers.<key>.command | the default program | The program to start: a name found on PATH or an absolute path. Use an absolute path when an editor or MCP client starts Axon with a short PATH. |
lsp.servers.<key>.args | the default arguments | The arguments, as a TOML list. |
lsp.servers.csharp.server | Roslyn when installed, else csharp-ls | "roslyn" or "csharp-ls". Ignored when command is set. |
The keys are rust, typescript, python, csharp, vbnet, java, kotlin, c, cpp, go, swift, dart, php, ruby and perl. Their default programs and arguments:
| Key | Default command and arguments |
|---|---|
rust | rust-analyzer |
typescript | tsc --lsp --stdio when the tsc on PATH is TypeScript 7 or later, else typescript-language-server --stdio |
python | pyright-langserver --stdio |
csharp | Roslyn language server, else csharp-ls |
vbnet | vb-ls --stdio --autoLoadProjects (also found in ~/.dotnet/tools) |
java | jdtls |
kotlin | kotlin-language-server |
c, cpp | clangd |
go | gopls |
swift | sourcekit-lsp |
dart | dart language-server |
php | intelephense --stdio |
ruby | ruby-lsp (also found in RubyGems' executable folders) |
perl | perlnavigator --stdio |
axon config set lsp.servers.go.command /Users/you/go/bin/gopls # gopls outside the PATH axon config set lsp.servers.csharp.server csharp-ls # prefer csharp-ls over Roslyn axon config set lsp.servers.csharp.command /path/to/omnisharp # another C# server axon config set lsp.servers.csharp.args '["-lsp"]' axon config set lsp.servers.java.enabled false # skip one server axon config set lsp.request_timeout_ms 15000 # slow servers
workspace)| Key | Default | Values and effect |
|---|---|---|
workspace.name | the folder name | The repository name a plain folder target gets in results and --repo. axon init --name platform sets it too. |
workspace.repositories | [] | Explicit repositories of a folder target, as a TOML list: axon config set workspace.repositories '[{ name = "api", path = "services/api" }, { name = "web", path = "apps/web" }]'. A .code-workspace file is usually simpler (Multi-repository workspaces). |
| Variable | Effect |
|---|---|
AXON_HOME | Moves Axon's data directory (indexes, settings, model cache, license). Default: ~/Library/Application Support/axon (macOS), ~/.config/axon (Linux), %APPDATA%\axon (Windows). |
AXON_GIT_THREADS | Workers of the commit-history phase, 1 to 64. Default min(cores, 8). |
AXON_GIT_RENAME_LIMIT | Files per side of a commit above which renames are not detected. Default 1000. |
AXON_EMBEDDING_CACHE | off, 0 or false turns the shared vector cache off. |
AXON_MCP_BEARER_TOKEN | The bearer token HTTP clients must send to axon serve --http. |
AXON_LICENSE_MACHINE_ID | A stable machine id for CI and containers. Each value counts as one device (see Your devices). |
AXON_LICENSE_NO_RENEW | 1 turns off automatic token renewal, for example on offline CI. |
NO_COLOR | Turns off colors in progress output. |
Axon skips what .gitignore ignores, hidden files and symlinks. To keep other files out of the index, add a .axonignore file to the repository root, with the same syntax as .gitignore, then re-index:
echo 'dist/' >> .axonignore echo 'generated/**/*.ts' >> .axonignore axon index .
axon doctor warns when dependency or build folders (node_modules/, vendor/, dist/, build/, target/, .venv/, bin/, obj/) were indexed. Ignored files do not count toward the free limit.
Axon is free for projects up to 10,000 lines of code (supported source languages, comments and blank lines included, config files and ignored files excluded; axon doctor shows the count). Above that you need a subscription to the single plan Axon: US$10 per month, up to 3 devices. Without one, index, queries, explore and MCP tools refuse to run on that project with exit code 5 (MCP error -32001) and tell you how to fix it. Small projects keep working untouched.
Open https://stripe.guerche.digital/p/axon, enter your email and pay on Stripe's secure page. Axon never sees your card.
After paying, a page shows your account key, starting with axk_, once. It is also emailed to you. Store it in a password manager: anyone with it can use your 3 device slots.
axon license activate <KEY>
Output: License active until 2026-11-05. Devices: 1/3.
axon license status
That is all. Tokens last 7 days, renew themselves in the background whenever you use Axon, and are checked offline. You only need to be online for about a second once a week.
If someone sent you a link like https://stripe.guerche.digital/t/<code>, you can try Axon without a card:
axon license trial https://stripe.guerche.digital/t/<code>
The command checks that the link belongs to the billing hub and opens it in your browser. Complete the short form, copy the account key, and run axon license activate <KEY>. axon license status shows when the trial ends. If you add no card before it ends, the subscription is cancelled; add a card (the hub emails you a link before the trial ends) to continue with the same key.
axon license status showsLicense: valid Licensee: you@example.com Issued: 2026-10-29 Expires: 2026-11-05 (7 days left) Max lines of code: unlimited Machine: 985ec9c6d254 Subscription: active, plan axon Current period ends: 2026-11-25 Devices: 1 MacBook-Air.local (Darwin 27.0.1), token until 2026-11-05
The first block is local and works offline; the Subscription and Devices lines need the hub. The command exits with code 5 when the license is invalid or expired.
axon license status, or sign in at https://stripe.guerche.digital/account (the hub emails you a sign-in link).axon license remove on that machine. A machine you stop using frees its slot by itself within 7 days.all device slots are in use (3/3), release one and run the command again.AXON_LICENSE_MACHINE_ID (containers, CI), each value counts as one device. Give every container or runner its own stable value, for example derived from the runner or pod name, and keep it the same across restarts. Reusing one value across several machines counts as sharing a license: the hub flags a machine id seen from many hosts or IPs, and the account owner may be contacted. Lost or retired machines free their slot within 7 days, or right away when you release them on the account page.axon license recover --email you@example.com
The hub always answers "If an account exists, a link was emailed." The link creates a new key and the old one stops working. Run axon license activate <NEW KEY> on every machine again. The same form is at https://stripe.guerche.digital/p/axon/recover. If you suspect the key leaked, use it too.
| Command | Use it to |
|---|---|
axon license activate <KEY> | Register this machine with your account key. |
axon license renew | Get a fresh token now, with the stored key. |
axon license status | Show the license, the subscription and your devices. |
axon license recover --email <address> | Email yourself a link that creates a new key. |
axon license trial <link> | Open a trial invite link in the browser. |
axon license remove | Delete the token and key on this machine and free its slot. |
Only the license commands talk to the hub, and only for projects over 10,000 lines. They send your account key, a hash of your machine id (never the id itself), the machine name, the operating system and the Axon version. No code, paths, project names or line counts are ever sent.
| You see | What it means and what to do |
|---|---|
no index found for <path> | The folder is not indexed, or you ran a query from another folder. Run axon index <path>, or pass --target. |
| "This project has N lines of code (limit 10,000 without a license)", exit code 5 | Subscribe or start a trial, then axon license activate <KEY>. If you deleted code and are now under the limit, run axon index once. |
Reason: license expired | The token ran out and could not be renewed. Run axon license renew; if it fails, check the subscription (axon license status). |
the account key was not accepted | Mistyped or replaced key. Use axon license recover --email. |
the subscription for this account is not active | The subscription ended or a payment failed. Subscribe again or fix the payment method. |
all device slots are in use (3/3) | Release a device at the account page, then retry. |
could not reach the billing hub (exit 4) | You are offline or behind a proxy. Existing tokens keep working until they expire. |
license was issued for a different machine | The machine id changed. Activate again. |
| A clock message | Your system clock is more than 24 hours behind the last license check. Fix the clock; if it is right, delete license.seen in the data directory and run axon license status. |
index already running for this target | Another axon index, --watch, Explorer refresh or code-index job is running. Wait for it. |
| MCP client shows no tools | Use the absolute path to axon in the client configuration and restart the client. |
A language server shows disabled or missing in doctor | Install it (LSP enrichment) and set lsp.enabled true; GUI clients may need an absolute lsp.servers.<key>.command. |
config key ... was not found (exit 3) | A typo in the key. Compare it with the Settings reference. |
| Results seem outdated | Re-index. After upgrading Axon, run axon index once per project. |
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General failure |
| 2 | Usage error (unknown flag, missing argument) |
| 3 | Not found |
| 4 | Unavailable (no git history, or the billing hub could not be reached) |
| 5 | Licensing |
| 130 | Interrupted |
Every command and option is listed by axon --help and axon <command> --help.