[{"data":1,"prerenderedAt":436},["ShallowReactive",2],{"post-2026-06-02-ccswitch":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"tags":11,"body":14,"_type":430,"_id":431,"_source":432,"_file":433,"_stem":434,"_extension":435},"\u002Fblog\u002F2026-06-02-ccswitch","blog",false,"","CC Switch - API 中转站","CC Switch 桌面工具使用指南，一键切换多款AI编程工具的API配置，支持本地代理与用量统计。","2026-06-02",[12,13],"工具","API",{"type":15,"children":16,"toc":416},"root",[17,25,31,36,40,45,151,154,159,165,194,203,208,222,227,258,266,269,274,317,320,325,331,338,343,351,357,370,378,384,389,397,403,408],{"type":18,"tag":19,"props":20,"children":22},"element","h2",{"id":21},"背景",[23],{"type":24,"value":21},"text",{"type":18,"tag":26,"props":27,"children":28},"p",{},[29],{"type":24,"value":30},"随着 Claude Code、OpenAI Codex、Gemini CLI 等 AI 编程工具的流行，开发者往往需要在多个 API 提供商之间频繁切换——官方 API、国内镜像、第三方代理……每次手动修改配置文件既繁琐又容易出错。",{"type":18,"tag":26,"props":32,"children":33},{},[34],{"type":24,"value":35},"CC Switch 就是解决这个痛点的桌面工具，它提供一个统一的图形界面。",{"type":18,"tag":37,"props":38,"children":39},"hr",{},[],{"type":18,"tag":19,"props":41,"children":43},{"id":42},"核心功能",[44],{"type":24,"value":42},{"type":18,"tag":46,"props":47,"children":48},"table",{},[49,68],{"type":18,"tag":50,"props":51,"children":52},"thead",{},[53],{"type":18,"tag":54,"props":55,"children":56},"tr",{},[57,63],{"type":18,"tag":58,"props":59,"children":60},"th",{},[61],{"type":24,"value":62},"功能",{"type":18,"tag":58,"props":64,"children":65},{},[66],{"type":24,"value":67},"说明",{"type":18,"tag":69,"props":70,"children":71},"tbody",{},[72,86,99,112,125,138],{"type":18,"tag":54,"props":73,"children":74},{},[75,81],{"type":18,"tag":76,"props":77,"children":78},"td",{},[79],{"type":24,"value":80},"一键切换 Provider",{"type":18,"tag":76,"props":82,"children":83},{},[84],{"type":24,"value":85},"保存多套 API 配置，点一下即可切换，无需手动编辑 JSON",{"type":18,"tag":54,"props":87,"children":88},{},[89,94],{"type":18,"tag":76,"props":90,"children":91},{},[92],{"type":24,"value":93},"多应用统一管理",{"type":18,"tag":76,"props":95,"children":96},{},[97],{"type":24,"value":98},"同时管理 Claude Code、Codex、Gemini CLI、OpenCode、OpenClaw 五款工具",{"type":18,"tag":54,"props":100,"children":101},{},[102,107],{"type":18,"tag":76,"props":103,"children":104},{},[105],{"type":24,"value":106},"本地 API 代理",{"type":18,"tag":76,"props":108,"children":109},{},[110],{"type":24,"value":111},"内置高性能 HTTP 代理，支持自动故障转移与请求监控",{"type":18,"tag":54,"props":113,"children":114},{},[115,120],{"type":18,"tag":76,"props":116,"children":117},{},[118],{"type":24,"value":119},"MCP 服务器管理",{"type":18,"tag":76,"props":121,"children":122},{},[123],{"type":24,"value":124},"可视化添加、编辑和同步 MCP 服务器配置",{"type":18,"tag":54,"props":126,"children":127},{},[128,133],{"type":18,"tag":76,"props":129,"children":130},{},[131],{"type":24,"value":132},"用量统计",{"type":18,"tag":76,"props":134,"children":135},{},[136],{"type":24,"value":137},"实时查看 Token 消耗与 API 费用",{"type":18,"tag":54,"props":139,"children":140},{},[141,146],{"type":18,"tag":76,"props":142,"children":143},{},[144],{"type":24,"value":145},"备份与恢复",{"type":18,"tag":76,"props":147,"children":148},{},[149],{"type":24,"value":150},"自动备份配置，防止误操作导致数据丢失",{"type":18,"tag":37,"props":152,"children":153},{},[],{"type":18,"tag":19,"props":155,"children":157},{"id":156},"安装",[158],{"type":24,"value":156},{"type":18,"tag":160,"props":161,"children":163},"h3",{"id":162},"下载地址",[164],{"type":24,"value":162},{"type":18,"tag":166,"props":167,"children":168},"ul",{},[169,183],{"type":18,"tag":170,"props":171,"children":172},"li",{},[173,175],{"type":24,"value":174},"官网：",{"type":18,"tag":176,"props":177,"children":181},"a",{"href":178,"rel":179},"https:\u002F\u002Fccswitch.io\u002Fzh\u002F",[180],"nofollow",[182],{"type":24,"value":178},{"type":18,"tag":170,"props":184,"children":185},{},[186,188],{"type":24,"value":187},"GitHub Releases：",{"type":18,"tag":176,"props":189,"children":192},{"href":190,"rel":191},"https:\u002F\u002Fgithub.com\u002Ffarion1231\u002Fcc-switch\u002Freleases\u002Flatest",[180],[193],{"type":24,"value":190},{"type":18,"tag":26,"props":195,"children":196},{},[197],{"type":18,"tag":198,"props":199,"children":202},"img",{"alt":200,"src":201},"1780209507417","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780209507417.png",[],{"type":18,"tag":160,"props":204,"children":206},{"id":205},"安装过程",[207],{"type":24,"value":205},{"type":18,"tag":26,"props":209,"children":210},{},[211,213,220],{"type":24,"value":212},"选择 ",{"type":18,"tag":214,"props":215,"children":217},"code",{"className":216},[],[218],{"type":24,"value":219},"CC-Swith-v.16.0-Windows.msi",{"type":24,"value":221}," 安装向导进行安装。",{"type":18,"tag":26,"props":223,"children":224},{},[225],{"type":24,"value":226},"成功安装后启动时，CC Switch 会自动检测已安装的 CLI 工具并尝试导入现有配置。",{"type":18,"tag":228,"props":229,"children":230},"blockquote",{},[231,240],{"type":18,"tag":26,"props":232,"children":233},{},[234],{"type":18,"tag":235,"props":236,"children":237},"strong",{},[238],{"type":24,"value":239},"我的工具配置情况",{"type":18,"tag":166,"props":241,"children":242},{},[243,248,253],{"type":18,"tag":170,"props":244,"children":245},{},[246],{"type":24,"value":247},"Claude Code：配置的美团 Longcat 大模型",{"type":18,"tag":170,"props":249,"children":250},{},[251],{"type":24,"value":252},"Codex CLI：登录的 ChatGPT Plus 账户",{"type":18,"tag":170,"props":254,"children":255},{},[256],{"type":24,"value":257},"OpenClaw：配置的 Deepseek V4 大模型",{"type":18,"tag":26,"props":259,"children":260},{},[261],{"type":18,"tag":198,"props":262,"children":265},{"alt":263,"src":264},"1780210385753","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780210385753.png",[],{"type":18,"tag":37,"props":267,"children":268},{},[],{"type":18,"tag":19,"props":270,"children":272},{"id":271},"通用配置",[273],{"type":24,"value":271},{"type":18,"tag":228,"props":275,"children":276},{},[277,285,290,298,312],{"type":18,"tag":26,"props":278,"children":279},{},[280],{"type":18,"tag":235,"props":281,"children":282},{},[283],{"type":24,"value":284},"关于通用配置片段",{"type":18,"tag":26,"props":286,"children":287},{},[288],{"type":24,"value":289},"「通用配置片段」可以在不同供应商之间共享插件、环境变量等配置，避免切换供应商时丢失这些设置。",{"type":18,"tag":26,"props":291,"children":292},{},[293],{"type":18,"tag":235,"props":294,"children":295},{},[296],{"type":24,"value":297},"使用方法",{"type":18,"tag":299,"props":300,"children":301},"ol",{},[302,307],{"type":18,"tag":170,"props":303,"children":304},{},[305],{"type":24,"value":306},"编辑供应商时点击「编辑通用配置」→「从编辑内容提取」",{"type":18,"tag":170,"props":308,"children":309},{},[310],{"type":24,"value":311},"新建供应商时勾选「写入通用配置」（默认已勾选）",{"type":18,"tag":26,"props":313,"children":314},{},[315],{"type":24,"value":316},"如果您新安装了插件或 Hook，请重新提取一次通用配置。",{"type":18,"tag":37,"props":318,"children":319},{},[],{"type":18,"tag":19,"props":321,"children":323},{"id":322},"配置供应商",[324],{"type":24,"value":322},{"type":18,"tag":160,"props":326,"children":328},{"id":327},"场景给-claude-code-配置-deepseek-大模型",[329],{"type":24,"value":330},"场景：给 Claude Code 配置 Deepseek 大模型",{"type":18,"tag":332,"props":333,"children":335},"h4",{"id":334},"步骤一添加供应商",[336],{"type":24,"value":337},"步骤一：添加供应商",{"type":18,"tag":26,"props":339,"children":340},{},[341],{"type":24,"value":342},"找到 Claude Code 卡片，点击右上角的加号来添加供应商 API。",{"type":18,"tag":26,"props":344,"children":345},{},[346],{"type":18,"tag":198,"props":347,"children":350},{"alt":348,"src":349},"1780212862132","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780212862132.png",[],{"type":18,"tag":332,"props":352,"children":354},{"id":353},"步骤二选择并输入",[355],{"type":24,"value":356},"步骤二：选择并输入",{"type":18,"tag":26,"props":358,"children":359},{},[360,362,368],{"type":24,"value":361},"选中 ",{"type":18,"tag":214,"props":363,"children":365},{"className":364},[],[366],{"type":24,"value":367},"Deepseek",{"type":24,"value":369}," 供应商，输入自己的 API，点击添加。",{"type":18,"tag":26,"props":371,"children":372},{},[373],{"type":18,"tag":198,"props":374,"children":377},{"alt":375,"src":376},"1780212950846","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780212950846.png",[],{"type":18,"tag":332,"props":379,"children":381},{"id":380},"步骤三启用配置",[382],{"type":24,"value":383},"步骤三：启用配置",{"type":18,"tag":26,"props":385,"children":386},{},[387],{"type":24,"value":388},"启动 Deepseek 的配置项。",{"type":18,"tag":26,"props":390,"children":391},{},[392],{"type":18,"tag":198,"props":393,"children":396},{"alt":394,"src":395},"1780213092334","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780213092334.png",[],{"type":18,"tag":332,"props":398,"children":400},{"id":399},"步骤四验证",[401],{"type":24,"value":402},"步骤四：验证",{"type":18,"tag":26,"props":404,"children":405},{},[406],{"type":24,"value":407},"重新打开 Claude CLI，可以看到模型已更新为 Deepseek。",{"type":18,"tag":26,"props":409,"children":410},{},[411],{"type":18,"tag":198,"props":412,"children":415},{"alt":413,"src":414},"1780213187728","\u002Fimages\u002Fblog\u002Fccswitch\u002F1780213187728.png",[],{"title":7,"searchDepth":417,"depth":417,"links":418},2,[419,420,421,426,427],{"id":21,"depth":417,"text":21},{"id":42,"depth":417,"text":42},{"id":156,"depth":417,"text":156,"children":422},[423,425],{"id":162,"depth":424,"text":162},3,{"id":205,"depth":424,"text":205},{"id":271,"depth":417,"text":271},{"id":322,"depth":417,"text":322,"children":428},[429],{"id":327,"depth":424,"text":330},"markdown","content:blog:2026-06-02-CCSwitch.md","content","blog\u002F2026-06-02-CCSwitch.md","blog\u002F2026-06-02-CCSwitch","md",1780801017575]