CLI overview
Binary: anycode.
Global flags
--debug— verbose logging.-c/--config <PATH>— config file path; if the path is given and missing, the CLI exits with an error.--model <ID>— long option only on the default TUI entry (no subcommand); avoids clashing withrepl’s-m/--model.--ignore-approval(aliases--ignore, typo--ingroe) — skip interactive approval for this process only; does not rewriteconfig.json.
Subcommands that read/write config (run, tui, repl, model, channel, etc.) honor -c.
bash
anycode configSee Config & security for security.*, memory fields, and env vars.
Section guides
| Topic | Page |
|---|---|
run, repl, fullscreen TUI, task logs | Run, REPL & TUI |
HTTP daemon (removed) | HTTP daemon (removed) |
model* subcommands | Model commands |
list-agents, list-tools, test-security | Discovery & test-security |
setup, wechat | WeChat & setup |
enable / disable / status / mode | Feature flags & routing snapshot (see Feature flags) |
workspace | Project registry & per-directory defaults (see Routing) |
Runtime feature names are defined in anycode_core::FeatureFlag (skills, workflows, goal-mode, channel-mode, approval-v2, context-compression, workspace-profiles).
Build from source
bash
cargo build --release
./target/release/anycode --helpMCP: build with --features tools-mcp; env ANYCODE_MCP_COMMAND, ANYCODE_MCP_SERVERS, etc.
Locale
CLI UI language: ANYCODE_LANG, LANGUAGE, LC_*, LANG, then OS (see Config & security).
Chinese pages mirror this structure under /zh/guide/.
