Title: 内置本地代理 · Agent CLI API 切换 · clovapi
Open Graph Title: 内置本地代理 · Agent CLI API 切换 · clovapi
X Title: 内置本地代理 · Agent CLI API 切换 · clovapi
Description: 开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。
Open Graph Description: 开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。
X Description: 开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。
Opengraph URL: https://clovapi.com/
Domain: clovapi.com
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://clovapi.com/#faq","mainEntity":[{"@type":"Question","name":"clovapi 是什么?和 API 网关有什么区别?","acceptedAnswer":{"@type":"Answer","text":"clovapi 是面向编程 Agent CLI 的上游 API 管理工具,内置本地代理为核心:switch 后 Agent 请求经 localhost 转发,由代理完成上游路由与 API 形态转码。用 clovapi add 保存 profile,clovapi switch 一键应用到目标 CLI。"}},{"@type":"Question","name":"支持哪些 Agent CLI?","acceptedAnswer":{"@type":"Answer","text":"目前支持 Claude Code、Codex、OpenCode、OpenClaw、Hermes、Kimi Code CLI 等。switch 时会按 CLI 自动选择 anthropic、openai-responses、gemini 等 API 形态。"}},{"@type":"Question","name":"官方订阅和第三方 API 可以同时管理吗?","acceptedAnswer":{"@type":"Answer","text":"可以。Claude Code 与 Codex 官方订阅可作为 profile 保存,与 OpenRouter、SiliconFlow 等第三方 API 同样支持 add 与 switch。"}},{"@type":"Question","name":"clovapi 和 cc-switch 有什么区别?","acceptedAnswer":{"@type":"Answer","text":"两者都提供桌面客户端,并支持 Claude Code、Codex、OpenCode 等多 Agent CLI。clovapi 的核心是内置本地代理:switch 默认经 localhost 转发,由同一代理内核完成 anthropic / openai-responses 等形态转码。cc-switch 更侧重可视化 provider 管理、MCP/Skills/Prompts 同步与可选代理接管。详见 /compare/cc-switch。"}},{"@type":"Question","name":"如何安装?","acceptedAnswer":{"@type":"Answer","text":"可通过 npm(npm i -g @clovapi/cli)、Homebrew 或 winget 安装 CLI,也可下载 macOS / Windows 桌面客户端进行图形化管理。"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://clovapi.com/#organization","name":"clovapi","url":"https://clovapi.com","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","logo":"https://clovapi.com/clover-light.svg"},{"@type":"WebSite","@id":"https://clovapi.com/#website","url":"https://clovapi.com","name":"clovapi","description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","publisher":{"@id":"https://clovapi.com/#organization"},"inLanguage":["zh-CN","en"]},{"@type":"SoftwareApplication","@id":"https://clovapi.com/#software","name":"clovapi","applicationCategory":"DeveloperApplication","operatingSystem":"Windows, macOS, Linux","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"开源 CLI 与桌面客户端,以内置本地代理为核心:switch 后 Claude Code、Codex、OpenCode 等 Agent 统一走 localhost,由代理完成上游路由与 API 形态转码。add 保存 profile,switch 一键应用。","url":"https://clovapi.com","downloadUrl":"https://www.npmjs.com/package/@clovapi/cli","publisher":{"@id":"https://clovapi.com/#organization"}}]}
| og:site_name | clovapi |
| og:locale | zh_CN |
| og:image | https://clovapi.com/use-case-zh.png |
| og:image:width | 730 |
| og:image:height | 731 |
| og:image:alt | 内置本地代理 · Agent CLI API 切换 · clovapi |
| og:locale:alternate | en_US |
| og:type | website |
| twitter:card | summary_large_image |
| twitter:image | https://clovapi.com/use-case-zh.png |
Links:
Viewport: width=device-width, initial-scale=1