CLI interface for CC Switch — manage AI coding tool configurations from the terminal
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-ccswitch-ceb266cff852 ,按照其中的说明把「cli-anything-ccswitch」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
CLI harness for CC Switch, a desktop app that manages AI coding tool (Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes) configurations. Built with Click and the CLI-Anything methodology.
~/.cc-switch/cc-switch.dbpip install -e .
After installation, the command cli-anything-ccswitch is available.
| Group | Description |
|---|---|
status | Show a quick database overview |
providers | Manage AI provider configurations (list, get, set-current) |
proxy | Manage the local HTTP proxy server (status, config) |
mcp | Manage MCP (Model Context Protocol) servers (list, enable) |
skills | Manage installed skills (list, repos) |
usage | View API usage and cost statistics (stats, logs) |
settings | View and manage CC Switch settings (list, get, set) |
sessions | Browse and search AI conversation sessions (list) |
--json — Output in machine-readable JSON format (recommended for agent use)--db PATH — Override the database pathAlways use --json for programmatic consumption. Place it before the
subcommand:
cli-anything-ccswitch --json providers list
cli-anything-ccswitch --json usage stats --days 30
cli-anything-ccswitch --json providers get <id> --app claude
API tokens, keys, and secrets are masked in all output. The settings_config
field in provider details shows masked values (e.g., sk-bc089...5cbb).
0 — Success1 — Error (e.g., resource not found, invalid app type)Valid app types: claude, codex, gemini, opencode, openclaw, hermes.
cli-anything-ccswitch providers list
cli-anything-ccswitch --json providers list --app claude
cli-anything-ccswitch providers set-current <provider-id> --app claude
cli-anything-ccswitch proxy status --app claude
cli-anything-ccswitch proxy config --app claude --set-port 8080
cli-anything-ccswitch usage stats --days 7
cli-anything-ccswitch --json usage stats --days 30 --app claude
cli-anything-ccswitch usage logs --limit 10
cli-anything-ccswitch skills list
cli-anything-ccswitch skills repos
cli-anything-ccswitch mcp list
cli-anything-ccswitch mcp enable <server-id> --app claude --on
cli-anything-ccswitch settings list
cli-anything-ccswitch settings get <key>
cli-anything-ccswitch settings set <key> <value>
cli-anything-ccswitch sessions list --app claude --limit 10
cli-anything-ccswitch status
cli-anything-ccswitch
cli-anything-ccswitch --json
When a resource is not found, the CLI prints an error message to stderr and exits with code 1. Agents should check the exit code before parsing output.
The CLI reads from the live CC Switch SQLite database. All read operations
are safe and do not modify the database. Write operations (providers set-current, proxy config, mcp enable, settings set) modify the
database directly.