Manage agent APIs with ease

Built-in local proxy: turn Claude Code and Codex subscriptions into a local API in one click, and switch agent APIs just as easily.

Install CLI
$npm i -g @clovapi/cli
$clovapi add --name prod
$clovapi switch --cli claude-code prod

The added API profile is served to your target Agent CLI via the local proxy

ClovAPI Switcher desktop app managing API upstreams for Claude Code, Codex, and other agents

What the CLI does

Manage official subscriptions and third-party APIs in one place — switch upstreams for Claude Code, Codex, and more.

clovapi add

Save upstream profiles (official subscriptions or third-party APIs) with a connectivity probe before persist.

clovapi switch

Apply a profile to a target CLI. Interactive picker or --cli for Claude Code, Codex, and others.

Official subscriptions

Supports Claude Code and Codex official subscription upstreams, switchable just like third-party API profiles.

Multi-CLI support

Works with Claude Code, Codex, OpenCode, OpenClaw, Hermes, Kimi Code CLI, and more.

Automatic API-style mapping

Matches anthropic, openai-responses, gemini, and other upstream formats per CLI at switch time.

Open source & cross-platform

Written in Go. Install via npm, Homebrew, or winget. Config lives in ~/.config/clovapi.

Deep support for four API formats

At switch time, clovapi picks the best upstream API style for each CLI — no manual style matrix.

openai-chat

/v1/chat/completions · Chat Completions format, compatible with most OpenAI-style SDKs.

anthropic

/v1/messages · Anthropic Messages API, the native format for Claude Code and similar agents.

openai-responses

/v1/responses · OpenAI Responses API, preferred by Codex and related agents.

gemini

GenerateContent · Google Gemini API for Gemini-based CLIs and toolchains.

FAQ

Quick answers about clovapi, supported agents, and how it compares to cc-switch.

What is clovapi? How is it different from an API gateway?
clovapi manages upstream API profiles for coding agent CLIs with a built-in local proxy at its core. After switch, agent requests go through localhost while clovapi routes upstream and transcodes API formats. Use clovapi add to save profiles and clovapi switch to apply them.
Which agent CLIs are supported?
Claude Code, Codex, OpenCode, OpenClaw, Hermes, Kimi Code CLI, and more. At switch time clovapi picks the right API format (anthropic, openai-responses, gemini, etc.) for each CLI.
Can I manage official subscriptions and third-party APIs together?
Yes. Claude Code and Codex official subscriptions can be saved as profiles alongside third-party providers such as OpenRouter or SiliconFlow.
How does clovapi compare to cc-switch?
Both ship desktop apps and support multiple agent CLIs such as Claude Code, Codex, and OpenCode. clovapi is built around a local proxy: switch routes agents through localhost and transcodes anthropic / openai-responses / gemini formats in one place. cc-switch emphasizes GUI provider management, MCP/Skills/Prompts sync, and optional proxy takeover. See /compare/cc-switch for details.
How do I install clovapi?
Install the CLI via npm (npm i -g @clovapi/cli), Homebrew, or winget — or download the macOS / Windows desktop app for a GUI workflow.

Multiple ways to use clovapi

Manage agent APIs in a GUI — or install the CLI for one-line switching.