Skip to content

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 with repl’s -m/--model.
  • --ignore-approval (aliases --ignore, typo --ingroe) — skip interactive approval for this process only; does not rewrite config.json.

Subcommands that read/write config (run, tui, repl, model, channel, etc.) honor -c.

bash
anycode config

See Config & security for security.*, memory fields, and env vars.

Section guides

TopicPage
run, repl, fullscreen TUI, task logsRun, REPL & TUI
HTTP daemon (removed)HTTP daemon (removed)
model* subcommandsModel commands
list-agents, list-tools, test-securityDiscovery & test-security
setup, wechatWeChat & setup
enable / disable / status / modeFeature flags & routing snapshot (see Feature flags)
workspaceProject 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 --help

MCP: 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/.

MIT License