Built-in local proxy: turn Claude Code and Codex subscriptions into a local API in one click, and switch agent APIs just as easily.
npm i -g @clovapi/cliclovapi add --name prodclovapi switch --cli claude-code prodThe added API profile is served to your target Agent CLI via the local proxy

Manage official subscriptions and third-party APIs in one place — switch upstreams for Claude Code, Codex, and more.
Save upstream profiles (official subscriptions or third-party APIs) with a connectivity probe before persist.
Apply a profile to a target CLI. Interactive picker or --cli for Claude Code, Codex, and others.
Supports Claude Code and Codex official subscription upstreams, switchable just like third-party API profiles.
Works with Claude Code, Codex, OpenCode, OpenClaw, Hermes, Kimi Code CLI, and more.
Matches anthropic, openai-responses, gemini, and other upstream formats per CLI at switch time.
Written in Go. Install via npm, Homebrew, or winget. Config lives in ~/.config/clovapi.
At switch time, clovapi picks the best upstream API style for each CLI — no manual style matrix.
/v1/chat/completions · Chat Completions format, compatible with most OpenAI-style SDKs.
/v1/messages · Anthropic Messages API, the native format for Claude Code and similar agents.
/v1/responses · OpenAI Responses API, preferred by Codex and related agents.
GenerateContent · Google Gemini API for Gemini-based CLIs and toolchains.
Quick answers about clovapi, supported agents, and how it compares to cc-switch.
Manage agent APIs in a GUI — or install the CLI for one-line switching.