Command line
Every command and flag of anu (and parmanu, the same program). anu --help prints the short form. This page is written from src/cli-options.ts by bun run docs:cli.
Commands
| Command | What it does |
|---|---|
parmanu ["<first message>"] | the chat, in a terminal (anu starts it too) |
anu -p "<task>" | one headless agent run with your settings, then exit |
anu --mode rpc | a chat session driven by JSON lines on stdin and stdout |
anu run [options] "<task>" | one agent run on a task; --agent for the append-only conversation |
anu resume [run-id] | continue an interrupted --agent run (the latest by default) |
anu ledger [run-id] | what a run did, step by step |
anu config | the settings in effect, and the files they came from |
anu config set [--project] <key> <value> | set model, baseUrl or env.NAME, globally or for this project |
anu trust | read this repo's .anu models, skills, prompts, packages and system prompt from now on |
anu docs [topic] | read parmanu's documentation in the terminal |
anu install <source> [-l] | install a package or Claude Code plugin: a path, npm:<name>, a git repo, or plugin@marketplace |
anu remove <name> | remove a package |
anu update [name] | update one package, or all of them |
anu list | the installed packages |
anu marketplace add <source> | list | update [name] | remove <name> | Claude Code plugin marketplaces |
anu learn [show | approve <name> | reject <name>] | skills learned from past sessions' ledgers, for you to approve |
anu export <id|dir> [--html | --jsonl] [-o <file>] | save a session as a web page or a JSONL export |
anu import <file> | import a JSONL export into this repo |
anu libindex <command> | index the libraries a project uses, so the model looks up real APIs (see anu libindex --help) |
anu eval <command> | run the benchmarks (see the eval docs) |
The chat
| Flag | What it does |
|---|---|
--model <id> | the model to use (setting model, variable ANU_MODEL) |
--base-url <url> | the OpenAI-compatible server, default http://localhost:8080/v1 |
--thinking <level> | how hard the model thinks: off, minimal, low, medium (default), high, xhigh, max |
--no-context-files | don't read AGENTS.md or CLAUDE.md into the system prompt |
--system-prompt <text|file> | replace the system prompt |
--append-system-prompt <text|file> | add to the end of the system prompt |
-e, --extension <file> | load an extension file for this session; repeat for more |
--no-extensions | load no extensions, package extensions included |
--no-hooks | run no Claude Code hooks, package hooks included |
--mcp-config <file> | MCP servers from this file, besides .mcp.json, .anu/mcp.json and ~/.anu/mcp.json; repeat for more |
--strict-mcp-config | use only the servers from --mcp-config |
--permission-mode <mode> | when the chat asks before a tool runs: auto, default, acceptEdits, plan or bypassPermissions |
--allowedTools <rules> | allow rules for this session, such as "Bash(git *)"; repeat for more |
--allowed-tools <rules> | the same as --allowedTools |
--disallowedTools <rules> | deny rules for this session; repeat for more |
--disallowed-tools <rules> | the same as --disallowedTools |
Without the chat screen
| Flag | What it does |
|---|---|
--mode rpc | a chat session driven by JSON lines on stdin and stdout |
-p, --print | one message or task without the chat screen, then exit |
--output-format <format> | with -p, a chat message's output: text, json or stream-json |
--include-partial-messages | with --output-format stream-json, also stream the text as it arrives |
Sessions
| Flag | What it does |
|---|---|
-c, --continue | continue the newest session in this folder |
-r, --resume | pick a session to open |
--session <id> | open this session |
--fork <id> | copy this session and continue the copy |
--no-session | don't save this session |
--name <name> | name the session |
--session-dir <dir> | keep sessions here instead of .anu/runs |
Agent runs (anu run)
| Flag | What it does |
|---|---|
--agent | one append-only conversation, with a registered check, compaction and resume |
--loose | one free loop with every tool, instead of the foreman's phases |
--headless | nobody to ask: the agent takes its own default and notes it (also when stdout isn't a terminal) |
--json | print the result as JSON |
--wall-min <n> | stop after this many minutes (default 30) |
--no-global | don't load skills and packages from ~/.anu |
--task-file <path> | read the task from a file |
Other
| Flag | What it does |
|---|---|
--list-models | list the models you can pick (the server's, models.json's, the providers'), filtered by an optional query |
--html | with anu export, write a web page |
--jsonl | with anu export, write a JSONL export |
-o, --output <file> | with anu export, the file to write |
-v, --version | print the version |
-h, --help | print the usage |
Settings and environment variables are on the settings page.
This page is built from docs/cli.md in parmanu 0.4.14.