CLI Reference
Commands
axm-smelt compact
Compact input and print the result.
| Flag | Default | Description |
|---|---|---|
--file PATH |
stdin | Read from file instead of stdin |
--strategies LIST |
— | Comma-separated strategy names |
--preset NAME |
safe |
Named preset (safe, moderate, aggressive) |
--output PATH |
stdout | Write compacted text to file |
Compacted text goes to stdout (or --output). Savings summary goes to stderr.
Exits with code 1 on unknown preset, unknown strategy, or missing file.
axm-smelt check
Analyze input without transforming it. Shows per-strategy savings estimates (only strategies with positive savings are listed).
| Flag | Default | Description |
|---|---|---|
--file PATH |
stdin | Read from file instead of stdin |
axm-smelt count
Count tokens in input.
| Flag | Default | Description |
|---|---|---|
--file PATH |
stdin | Read from file instead of stdin |
--model MODEL |
o200k_base |
tiktoken encoding name |
axm-smelt version
Print the version string.
Python API
Auto-generated API reference is available under Python API.