Guide13 / CLI reference
Topics
CLI reference
The complete list. Run cachycli --help for the same thing in your terminal.
Common examples
$ cachycli open the interface here $ cachycli "fix the failing test" open with a first request $ cachycli -p "review this diff" answer once and exit $ cachycli -c continue the last session $ cachycli --provider opencode use your opencode $ cachycli --provider claude-code use Claude Code $ cachycli agent stdio let an editor connect
Flags
| Flag | What it does |
|---|---|
-p, --single <PROMPT> | Ask one question and exit |
-m, --model <MODEL> | Use a specific model |
-r, --resume [<ID_OR_TITLE>] | Resume a session |
-c, --continue | Continue the most recent session |
-s, --session-id <ID> | Keep a named session for scripts |
-w, --worktree [<NAME>] | Work in a new git worktree |
--backend <NAME> | opencode, native or acp |
--opencode-url <URL> | Use a running opencode server |
--acp-command <CMD> | The agent command to connect to |
--output-format <FMT> | plain, json or streaming formats |
--always-approve | Approve tools without asking |
--permission-mode <MODE> | How much the agent may do unattended |
--allow / --deny <RULE> | Allow or block specific actions |
--tools / --disallowed-tools | Limit which tools exist |
--max-turns <N> | Stop after N turns |
--rules <TEXT> | Add your own instructions |
Subcommands
| Command | What it does |
|---|---|
cachycli agent stdio | Let an editor connect to CachyCLI |
cachycli mcp | Manage, test and serve tool servers |
cachycli models | List available models |
cachycli sessions | List, search, restore or delete sessions |
cachycli export | Save a conversation as Markdown |
cachycli inspect | Show what was found for this folder |
cachycli doctor | Check your setup |
cachycli memory | Manage saved notes |
cachycli completions | Shell tab-completion for bash, zsh, fish, PowerShell |
cachycli update | Check for or install updates |
cachycli usage | Show tokens for a session |
cachycli du | Show how much disk CachyCLI uses |
cachycli worktree | Manage git worktrees |
cachycli login / logout | Store or remove a key |
cachycli dashboard | Open the sessions view |
Output formats
| Format | Shape |
|---|---|
plain | Just the answer, for humans |
json | One object at the end — text, session id, stop reason |
streaming-json | One line per event as it happens |
streaming-messages-json | The same stream in the widely used messages format |
$ cachycli -p "list the TODOs" --output-format json | jq -r .text