talira

CLIProxyAPI

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code and Devin as an OpenAI/Gemini/Claude/Codex compatible API service

open sourceMITself-hostablefree

CLIProxyAPI is a Go proxy server that signs in to the accounts behind AI coding tools and serves them as an API: you log in with OAuth to Claude Code, OpenAI Codex, Gemini CLI or Antigravity, Grok Build, Kimi, Meta's Muse Code or Devin (or add Gemini, AI Studio, Vertex or OpenAI-compatible API keys such as OpenRouter), and any OpenAI (including Responses), Gemini or Claude compatible client or SDK can call the models those accounts include. It load-balances round-robin across several accounts per provider, supports streaming, WebSocket, tool calling and image input, and has a management API, an official web management center, a native plugin system and a Go SDK for embedding the proxy. It is MIT-licensed by Router-For.ME, ships as single binaries for Linux, macOS, Windows and FreeBSD, a Docker image and a Homebrew formula, and a wide set of community desktop apps, dashboards and ports (including OmniRoute) build on it.

Ways to install

Problems it solves

  • use my Claude Code subscription from tools that only accept an OpenAI-compatible API
  • call the GPT models in my ChatGPT Codex plan from my own scripts
  • point an OpenAI SDK at Gemini, Claude and Codex accounts through one local endpoint
  • load-balance requests across several Claude or Codex accounts so one doesn't hit its limit
  • run Claude Code against a Codex or Gemini backend instead of Anthropic's API
  • a local proxy that turns coding CLI logins into an API for my other AI tools
  • self-host a small proxy on a VPS or in Docker that keeps my OAuth logins between restarts
  • translate between OpenAI, Anthropic Messages and Gemini request formats
  • embed an OpenAI-compatible model proxy into my own Go program
  • add a custom upstream model provider to my proxy with a plugin
  • manage OAuth accounts and client API keys for my model proxy from a web panel
  • store my proxy's config and login files in Git, PostgreSQL or S3 for a stateless cloud deploy

Features

  • OpenAI (Chat Completions and Responses), Gemini (including Interactions), Claude and Codex compatible endpoints
  • OAuth login for Claude Code, OpenAI Codex, Antigravity, Grok Build (xAI), Kimi, Muse Code and Devin
  • Gemini API key, AI Studio, Vertex AI and Gemini CLI accounts
  • round-robin load balancing across multiple accounts per provider
  • OpenAI-compatible upstream providers via config, such as OpenRouter
  • streaming, non-streaming and WebSocket responses; function calling; text and image input
  • Management API (v8) and an official web Management Center
  • native plugin system (C ABI) for model providers, credentials, routing, translators and interceptors
  • reusable Go SDK to embed the proxy
  • config and auth storage in files, Git, PostgreSQL or S3-compatible object storage
View 4 more
  • hot reloading of configuration
  • Redis usage queue for external usage tracking
  • binaries for Linux, macOS, Windows and FreeBSD; Docker image; Homebrew formula and AUR package
  • EasyCLIProxyAPI desktop client with a configuration UI and tray

Limitations

  • No built-in usage statistics: since v6.10.0 you need a separate tool such as CPA Usage Keeper for usage and cost history4

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what CLIProxyAPI does.

  1. 9Router FREE AI Router & Token Saver
  2. OmniRoute The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback
  3. LiteLLM The AI Gateway for platform teams.
  4. One API Access all LLM through the standard OpenAI API format, easy to deploy & use
  5. pansy A local gateway that lets every coding agent use every provider's models, with a desktop window
  6. New API An AI gateway for models, applications, and agents

Compare CLIProxyAPI with the top 3