Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Daemon-first proxy control plane for Codex and Claude Code, with MCP sync for Gemini CLI and OpenCode.
Jump to setup instructionsFetched from the repository for this visit.
CC Switch Web 是一个面向 Linux 的 AI CLI 配置与代理控制台。
它统一管理 Codex、Claude Code 的接入、切换、观测与恢复,并支持发现和同步 Gemini CLI、OpenCode 的 MCP 配置。
如果你的机器上同时跑多个 AI CLI,配置分散、切换麻烦、故障难排、回滚靠手工,这个项目就是为这类场景准备的。
在真实使用里,AI CLI 往往会很快从“单机小工具”变成“本机基础设施”,常见问题包括:
CC Switch Web 的目标,就是把这些零散动作收敛成一个可持续使用的本地控制面。
Claude Code / Codex 请求的模型名改写成第三方上游真实可用的模型Codex 提供 OpenAI Responses → Chat Completions 桥接:wire_api = "responses" 也能接只支持 chat/completions 的第三方 ProviderClaude Code 提供 Anthropic → OpenAI 兼容桥接(文本 / SSE 流式 / 工具调用 / 图片 / thinking / count_tokens 本地估算)codex、claude-code 等本机 CLI 配置codex、claude-code 提供 file-rewrite / environment-override 双接管模式/metrics当前不提供 Gemini API / Gateway 代理,因此 Gemini CLI 仅支持配置发现和 MCP 同步,不支持代理接管。
Codex、Claude Code、Gemini CLI 收敛到统一入口的团队一键安装或升级到最新版本:
curl -fsSL https://raw.githubusercontent.com/MokoYee/cc-switch-web/main/install.sh | bash
脚本使用当前用户安装到 ~/.local,数据保存在 ~/.cc-switch-web。安装完成后会自动启动并输出内网管理地址;如果系统不支持用户服务,则输出手动启动命令。
查看登录令牌:
~/.local/bin/ccsw auth print-token
默认卸载会停止用户服务并移除程序,但保留数据库、令牌、快照以及 Node.js:
curl -fsSL https://raw.githubusercontent.com/MokoYee/cc-switch-web/main/uninstall.sh | bash
需要同时删除 ~/.cc-switch-web 数据和项目配置时,显式执行:
curl -fsSL https://raw.githubusercontent.com/MokoYee/cc-switch-web/main/uninstall.sh | bash -s -- --purge
npm install -g cc-switch-web
ccsw daemon start
无需全局安装也可以直接运行:
npx cc-switch-web daemon start
npm install
npm run build
node apps/cli/dist/index.js daemon start
手动启动后默认从本机访问:
http://localhost:8787/http://localhost:8787/ui/http://localhost:8787/metrics一键安装后请使用脚本输出的内网管理地址。
查看控制令牌:
ccsw auth print-token
接管 codex:
ccsw host setup codex
接管 claude-code:
ccsw host setup claude-code
如果需要先预览再决定是否接管:
ccsw host preview codex
ccsw host apply codex
如果你不想先改本机配置文件,可以先走环境变量接管:
ccsw host preview codex --mode environment-override
ccsw host apply codex --mode environment-override
environment-override 模式会生成受管脚本并返回 source / 清理命令,不会自动修改你的 shell rc 文件。
如果需要回滚:
ccsw host rollback codex
默认运行模型是:
/ui 控制台systemd --user 作为长期运行方式常用命令:
ccsw daemon service print
ccsw daemon service install
ccsw daemon service status
ccsw daemon service logs --lines 200
ccsw daemon service follow --lines 100
ccsw daemon service logs --since "today" --grep "error|warn"
ccsw daemon service logs --boot -1 --priority warning..alert
当前稳定命名:
ccsw、cc-switch-webCCSW_*systemd unit:cc-switch-web.service20.19.0 或更高版本systemd --user8787 限制在可信内网GitHub checked 207h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.