A proxy server that provides OpenAI/Gemini/Claude/Codex compatible API interfaces for CLI.
It now also supports OpenAI Codex (GPT models) and Claude Code via OAuth.
So you can use local or multi-account CLI access with OpenAI(include Responses)/Gemini/Claude-compatible clients and SDKs.
This project is sponsored by Z.aisupporting us with their GLM CODING PLAN.
GLM CODING PLAN is a subscription service designed for AI codingstarting at just $10/month. It provides access to their flagship GLM-4.7 & (GLM-5 Only Available for Pro Users)model across 10+ popular AI coding tools (Claude CodeClineRoo Codeetc.)offering developers top-tierfastand stable coding experiences.
Get 10% OFF GLM CODING PLAN:https://z.ai/subscribe?ic=8JVLJQFSKB
![]() |
Thanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provideroffering relay services for Claude CodeCodexGeminiand more. PackyCode provides special discounts for our software users: register using this link and enter the "cliproxyapi" promo code during recharge to get 10% off. |
![]() |
Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code / Codex / Gemini CLIwith enterprise-grade concurrencyfast invoicingand 24/7 dedicated technical support. Claude Code / Codex / Gemini official channels at 38% / 2% / 9% of original pricewith extra discounts on top-ups! AICodeMirror offers special benefits for CLIProxyAPI users: register via this link to enjoy 20% off your first top-upand enterprise customers can get up to 25% off! |
![]() |
Huge thanks to BmoPlus for sponsoring this project! BmoPlus is a highly reliable AI account provider built strictly for heavy AI users and developers. They offer rock-solidready-to-use accounts and official top-up services for ChatGPT Plus / ChatGPT Pro (Full Warranty) / Claude Pro / Super Grok / Gemini Pro. By registering and ordering through BmoPlus - Premium AI Accounts & Top-upsusers can unlock the mind-blowing rate of 10% of the official GPT subscription price (90% OFF)! |
![]() |
Thanks to LingtrueAPI for its sponsorship of this project! LingtrueAPI is a global large - model API intermediary service platform that provides API calling services for various top - notch models such as Claude CodeCodexand Gemini. It is committed to enabling users to connect to global AI capabilities at low cost and with high stability. LingtrueAPI offers special discounts to users of this software: register using this linkand enter the promo code "LingtrueAPI" when making the first recharge to enjoy a 10% discount. |
![]() |
Thanks to Poixe AI for sponsoring this project! Poixe AI provides reliable LLM API services. You can leverage the platform's API endpoints to seamlessly build AI-powered products. Additionallyyou can become a vendor by providing AI API resources to the platform and earn revenue. Register through the exclusive CLIProxyAPI referral link and receive a bonus of $5 USD on your first top-up. |
![]() |
Thanks to VisionCoder for supporting this project. VisionCoder Developer Platform is a reliable and efficient API relay service provideroffering access to mainstream AI models such as Claude CodeCodexand Gemini. It helps developers and teams integrate AI capabilities more easily and improve productivity. VisionCoder is also offering our users a limited-time Token Plan promotion: buy 1 month and get 1 month free. |
- OpenAI/Gemini/Claude compatible API endpoints for CLI models
- OpenAI Codex support (GPT models) via OAuth login
- Claude Code support via OAuth login
- Amp CLI and IDE extensions support with provider routing
- Streaming and non-streaming responses
- Function calling/tools support
- Multimodal input support (text and images)
- Multiple accounts with round-robin load balancing (GeminiOpenAIClaude)
- Simple CLI authentication flows (GeminiOpenAIClaude)
- Generative Language API Key support
- AI Studio Build multi-account load balancing
- Gemini CLI multi-account load balancing
- Claude Code multi-account load balancing
- OpenAI Codex multi-account load balancing
- OpenAI-compatible upstream providers via config (e.g.OpenRouter)
- Reusable Go SDK for embedding the proxy (see
docs/sdk-usage.md)
CLIProxyAPI Guides: https://help.router-for.me/
CLIProxyAPI includes integrated support for Amp CLI and Amp IDE extensionsenabling you to use your Google/ChatGPT/Claude OAuth subscriptions with Amp's coding tools:
- Provider route aliases for Amp's API patterns (
/api/provider/{provider}/v1...) - Management proxy for OAuth authentication and account features
- Smart model fallback with automatic routing
- Model mapping to route unavailable models to alternatives (e.g.
claude-opus-4.5→claude-sonnet-4) - Security-first design with localhost-only management endpoints
When you need the request/response shape of a specific backend familyuse the provider-specific paths instead of the merged /v1/... endpoints:
- Use
/api/provider/{provider}/v1/messagesfor messages- backends. - Use
/api/provider/{provider}/v1beta/models/...for model-scoped generate endpoints. - Use
/api/provider/{provider}/v1/chat/completionsfor chat-completions backends.
These routes help you select the protocol surfacebut they do not by themselves guarantee a unique inference executor when the same client-visible model name is reused across multiple backends. Inference routing is still resolved from the request model/alias. For strict backend pinninguse unique aliasesprefixesor otherwise avoid overlapping client-visible model names.
→ Complete Amp CLI Integration Guide
- Usage: docs/sdk-usage.md
- Advanced (executors & translators): docs/sdk-advanced.md
- Access: docs/sdk-access.md
- Watcher: docs/sdk-watcher.md
- Custom Provider Example:
examples/custom-provider
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Those projects are based on CLIProxyAPI:
Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys needed
Browser-based tool to translate SRT subtitles using your Gemini subscription via CLIProxyAPI with automatic validation/error correction - no API keys needed
CLI wrapper for instant switching between multiple Claude accounts and alternative models (GeminiCodexAntigravity) via CLIProxyAPI OAuth - no API keys needed
Native macOS menu bar app that unifies ClaudeGeminiOpenAIand Antigravity subscriptions with real-time quota tracking and smart auto-failover for AI coding tools like Claude CodeOpenCodeand Droid - no API keys needed.
Native macOS SwiftUI app for managing CLI AI sessions (CodexClaude CodeGemini CLI) with unified provider managementGit reviewproject organizationglobal searchand terminal integration. Integrates CLIProxyAPI to provide OAuth authentication for CodexClaudeGeminiand Antigravitywith built-in and third-party provider rerouting through a single proxy endpoint - no API keys needed for OAuth providers.
Windows-native CLIProxyAPI fork with TUIsystem trayand multi-provider OAuth for AI coding tools - no API keys needed.
VSCode extension for quick switching between Claude Code modelsfeaturing integrated CLIProxyAPI as its backend with automatic background lifecycle management.
Windows desktop app built with Tauri + React for monitoring AI coding assistant quotas via CLIProxyAPI. Track usage across GeminiClaudeOpenAI Codexand Antigravity accounts with real-time dashboardsystem tray integrationand one-click proxy control - no API keys needed.
A lightweight web admin panel for CLIProxyAPI with health checksresource monitoringreal-time logsauto-updaterequest statistics and pricing display. Supports one-click installation and systemd service.
A Windows tray application implemented using PowerShell scriptswithout relying on any third-party libraries. The main features include: automatic creation of shortcutssilent runningpassword managementchannel switching (Main / Plus)and automatic downloading and updating.
霖君 is a cross-platform desktop application for managing AI programming assistantssupporting macOSWindowsand Linux systems. Unified management of Claude CodeGemini CLIOpenAI Codexand other AI coding toolswith local proxy for multi-account quota tracking and one-click configuration.
A modern web-based management dashboard for CLIProxyAPI built with Next.Reactand PostgreSQL. Features real-time log streamingstructured configuration editingAPI key managementOAuth provider integration for Claude/Gemini/Codexusage analyticscontainer managementand config sync with OpenCode via companion plugin - no manual YAML editing needed.
Browser extension for one-stop management of New API-compatible relay site accountsfeaturing balance and usage dashboardsauto check-inone-click key export to common appsin-page API availability testingand channel/model sync and redirection. It integrates with CLIProxyAPI through the Management API for one-click provider import and config sync.
Shadow AI is an AI assistant tool designed specifically for restricted environments. It provides a stealthy operation mode without windows or tracesand enables cross-device AI Q&A interaction and control via the local area network ( LAN). Essentiallyit is an automated collaboration layer of "screen/audio capture + AI inference + low-friction delivery", helping users to immersively use AI assistants across applications on controlled devices or in restricted environments.
Cross-platform desktop app (macOSWindowsLinux) wrapping CLIProxyAPI with a native GUI. Connects ClaudeChatGPTGeminiGitHub Copilotand custom OpenAI-compatible endpoints with usage analyticsrequest monitoringand auto-configuration for popular coding tools - no API keys needed.
Ready-to-use cross-platform quota inspector for CLIProxyAPIsupporting per-account codex 5h/7d quota windowsplan-based sortingstatus coloringand multi-account summary analytics.
Note
If you developed a project based on CLIProxyAPIplease open a PR to add it to this list.
Those projects are ports of CLIProxyAPI or inspired by it:
A Next. implementation inspired by CLIProxyAPIeasy to install and usebuilt from scratch with format translation (OpenAI/Claude/Gemini/Ollama)combo system with auto-fallbackmulti-account management with exponential backoffa Next. web dashboardand support for CLI tools (CursorClaude CodeClineRooCode) - no API keys needed.
Never stop coding. Smart routing to FREE & low-cost AI models with automatic fallback.
OmniRoute is an AI gateway for multi-provider LLMs: an OpenAI-compatible endpoint with smart routingload balancingretriesand fallbacks. Add policiesrate limitscachingand observability for reliablecost-aware inference.
Note
If you have developed a port of CLIProxyAPI or a project inspired by itplease open a PR to add it to this list.
This project is licensed under the MIT License - see the LICENSE file for details.






