# CLIProxyAPI

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

Source: https://talira.ai/catalog/cliproxyapi-sg34tvnz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, API, Command-line tool, Library
- Categories: [ai / llm / gateways / subscription proxies](https://talira.ai/categories/ai/llm/gateways/subscription-proxies), [ai / llm / gateways](https://talira.ai/categories/ai/llm/gateways)
- Platforms: linux, macos, windows, docker, cli[^6][^9][^10]
- Licence: MIT[^5]
- Pricing: Free and open source[^4][^5]
- Pricing notes: Free and MIT-licensed; it uses the plans and keys you already have with each provider. The README carries sponsor ads for paid API relay services and residential proxies.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^4][^6]
- API: yes[^4][^7]
- Plugins: yes[^8]
- Backed by: [Router-For.ME](https://talira.ai/orgs/router-for-me.md)

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](https://talira.ai/catalog/claude-code-jqv5000a.md), OpenAI [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md), [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md) or Antigravity, Grok Build, Kimi, Meta's Muse Code or Devin (or add [Gemini](https://talira.ai/catalog/gemini-api-r5x8ntes.md), AI Studio, Vertex or OpenAI-compatible API keys such as [OpenRouter](https://talira.ai/catalog/openrouter-7b9zt83p.md)), and any OpenAI (including Responses), [Gemini](https://talira.ai/catalog/gemini-api-r5x8ntes.md) or [Claude](https://talira.ai/catalog/claude-w14d0j2d.md) 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](https://talira.ai/catalog/macos-8swyggxb.md), Windows and [FreeBSD](https://talira.ai/catalog/freebsd-d628b1cm.md), a [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image and a [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md) formula, and a wide set of community desktop apps, dashboards and ports (including [OmniRoute](https://talira.ai/catalog/omniroute-v3a86e5b.md)) build on it.

## Links

- Website: https://help.router-for.me/
- GitHub: https://github.com/router-for-me/CLIProxyAPI
- Docs: https://help.router-for.me/

## Ways to install

### On your own server

- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/cliproxyapi>[^1]

### Hosted for you

- [Railway](https://talira.ai/catalog/railway-mczwyt8g.md): <https://railway.com/deploy/cliproxyapi>[^2]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/cliproxyapi>[^3]

## 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
- 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 history[^4]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.43 out of 1.
Signals: backing 0.30, extensibility 0.60.

- backed by Router-For.ME
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md)
- Works with [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md)

## Alternatives

- [9Router](https://talira.ai/catalog/9router-315aa8x2.md): FREE AI Router & Token Saver
- [OmniRoute](https://talira.ai/catalog/omniroute-v3a86e5b.md): The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback
- [LiteLLM](https://talira.ai/catalog/litellm-dcj2btwh.md): The AI Gateway for platform teams.
- [One API](https://talira.ai/catalog/one-api-d8mv61ah.md): Access all LLM through the standard OpenAI API format, easy to deploy & use
- [pansy](https://talira.ai/catalog/pansy-b6bggsm9.md): A local gateway that lets every coding agent use every provider's models, with a desktop window
- [New API](https://talira.ai/catalog/new-api-c7b0h9w9.md): An AI gateway for models, applications, and agents

## Sources

[^1]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/cliproxyapi.sh (checked 21 Nov 2026)
[^2]: https://railway.com/deploy/cliproxyapi (checked 20 Nov 2026)
[^3]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^4]: https://github.com/router-for-me/CLIProxyAPI/blob/main/README.md (checked 20 Nov 2026)
[^5]: https://github.com/router-for-me/CLIProxyAPI/blob/main/LICENSE (checked 20 Nov 2026)
[^6]: https://help.router-for.me/introduction/quick-start.html (checked 20 Nov 2026)
[^7]: https://help.router-for.me/management/api.html (checked 20 Nov 2026)
[^8]: https://help.router-for.me/plugin/development.html (checked 20 Nov 2026)
[^9]: https://github.com/router-for-me/CLIProxyAPI/releases/latest (checked 20 Nov 2026)
[^10]: https://help.router-for.me/docker/docker.html (checked 20 Nov 2026)
