CLI reference¶
Generated page
This page is generated by scripts/gen_reference.py from aeon.cli.main.build_parser(). Do not edit it; change the source and run the script again.
The aeon command uses only the standard library. Every command that prints data accepts --json. Expected failures print a message and a fix hint and exit non-zero; they never print a stack trace. Exit codes: 0 ok, 1 failure (including a failed --strict campaign or a broken audit chain), 2 usage error.
aeon¶
usage: aeon [-h] [--config CONFIG] <command> ...
Gate the actions of LLM agents and check that they fail safe.
| Option | Default | Description |
|---|---|---|
--config |
path to aeon.toml (default: discover from cwd) |
aeon doctor¶
check environment, config, storage and run a gate self-test
usage: aeon doctor [-h] [--json]
| Option | Default | Description |
|---|---|---|
--json |
print JSON |
aeon init¶
scaffold aeon.toml and example axioms (shadow mode)
usage: aeon init [-h] [--json] [--force] [path]
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
path |
. |
project directory (default: .) |
--force |
overwrite existing files |
aeon axioms¶
list and validate axioms
usage: aeon axioms [-h] <subcommand> ...
aeon axioms list¶
list axioms from config or files
usage: aeon axioms list [-h] [--json] [files ...]
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
files |
aeon axioms check¶
import an axiom file and self-test it
usage: aeon axioms check [-h] [--json] file
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
file |
aeon run¶
run a Python agent script under the gate
usage: aeon run [-h] [--mode {shadow,enforce}] script [script_args ...]
| Option | Default | Description |
|---|---|---|
script |
||
--mode |
override the configured mode (default: from aeon.toml, else shadow) | |
script_args |
arguments for the script, after -- (aeon run a.py -- --flag) |
aeon chaos¶
fault catalog and campaigns
usage: aeon chaos [-h] <subcommand> ...
aeon chaos list¶
list the fault catalog
usage: aeon chaos list [-h] [--json]
| Option | Default | Description |
|---|---|---|
--json |
print JSON |
aeon chaos run¶
run a fault or a campaign file
usage: aeon chaos run [-h] [--json] [--blast-radius {dev,staging,prod-shadow}] [--seed SEED]
[--runs RUNS] [--controls CONTROLS] [--mode {shadow,enforce}] [--markdown]
[--strict]
target
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
target |
fault name or alias (e.g. "degrade gateway latency"), campaign id, or campaign .toml | |
--blast-radius |
||
--seed |
||
--runs |
||
--controls |
||
--mode |
||
--markdown |
also print the full report | |
--strict |
exit 1 if the hypothesis is not supported (for CI) |
aeon report¶
render a campaign report (markdown + JSON)
usage: aeon report [-h] [--json] [-o OUTPUT] [campaign]
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
campaign |
campaign id or result .json; omit to list | |
-o, --output |
write |
aeon audit¶
read and verify the audit log
usage: aeon audit [-h] <subcommand> ...
aeon audit verify¶
recompute the hash chain
usage: aeon audit verify [-h] [--json] [--file FILE] [--expect-head EXPECT_HEAD]
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
--file |
audit log (default: from config) | |
--expect-head |
fail unless the chain ends at this hash |
aeon audit tail¶
show the last records
usage: aeon audit tail [-h] [--json] [--file FILE] [-n N] [--type TYPE]
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
--file |
||
-n |
20 |
|
--type |
only records of this type (decision, result, ...) |
aeon audit export¶
export records as JSONL or CSV
usage: aeon audit export [-h] [--file FILE] [--format {jsonl,csv}] [-o OUTPUT]
| Option | Default | Description |
|---|---|---|
--file |
||
--format |
jsonl |
|
-o, --output |
aeon runtime¶
local HTTP + MCP service (extra: runtime)
usage: aeon runtime [-h] <subcommand> ...
aeon runtime start¶
start the HTTP runtime
usage: aeon runtime start [-h] [--host HOST] [--port PORT]
| Option | Default | Description |
|---|---|---|
--host |
127.0.0.1 |
|
--port |
8787 |
aeon runtime mcp¶
serve the gate over MCP (stdio)
usage: aeon runtime mcp [-h]
aeon serve¶
alias of aeon runtime start
usage: aeon serve [-h] [--host HOST] [--port PORT]
| Option | Default | Description |
|---|---|---|
--host |
127.0.0.1 |
|
--port |
8787 |
aeon ui¶
open the control plane against a local runtime
usage: aeon ui [-h] [--host HOST] [--port PORT] [--no-browser]
| Option | Default | Description |
|---|---|---|
--host |
127.0.0.1 |
|
--port |
8787 |
|
--no-browser |
aeon docs¶
documentation tools
usage: aeon docs [-h] <subcommand> ...
aeon docs mcp¶
serve the docs over MCP (stdio) for coding agents
usage: aeon docs mcp [-h] [--docs-dir DOCS_DIR]
| Option | Default | Description |
|---|---|---|
--docs-dir |
docs directory (default: bundled docs) |
aeon agent¶
run a real LLM agent with its tools behind the gate
usage: aeon agent [-h] <subcommand> ...
aeon agent run¶
run one prompt through the agent loop
usage: aeon agent run [-h] [--json] --tools TOOLS [--model MODEL]
[--provider {anthropic,compatible,groq,ollama,openai,openrouter}]
[--base-url BASE_URL] [--system SYSTEM] [--agent AGENT]
[--max-steps MAX_STEPS] [--max-tokens MAX_TOKENS] [--mode {shadow,enforce}]
prompt
| Option | Default | Description |
|---|---|---|
--json |
print JSON | |
prompt |
the user prompt | |
--tools |
Python file with the tool functions | |
--model |
model name (default: $AEON_LLM_MODEL) | |
--provider |
default: the first of OPENROUTER_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY set | |
--base-url |
override the provider's API URL | |
--system |
system prompt | |
--agent |
cli-agent |
agent name in the gate and audit |
--max-steps |
10 |
|
--max-tokens |
output token cap per model call | |
--mode |
override the configured mode |
aeon version¶
print version information
usage: aeon version [-h] [--json]
| Option | Default | Description |
|---|---|---|
--json |
print JSON |