[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4632":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},4632,"CLIProxyAPI","router-for-me\u002FCLIProxyAPI","router-for-me","Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI\u002FGemini\u002FClaude\u002FCodex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.5, Grok 4.3, Claude model through API","",null,"Go",37216,6140,84,255,0,126,1170,5093,819,45,"MIT License",false,"main",[26,27,28,29,30,31],"antigravity","claude-code","cluade","codex","gemini","openai","2026-06-12 02:01:02","# CLI Proxy API\n\nEnglish | [中文](README_CN.md) | [日本語](README_JA.md)\n\nA proxy server that provides OpenAI\u002FGemini\u002FClaude\u002FCodex compatible API interfaces for CLI.\n\nIt now also supports OpenAI Codex (GPT models) and Claude Code via OAuth.\n\nSo you can use local or multi-account CLI access with OpenAI(include Responses)\u002FGemini\u002FClaude-compatible clients and SDKs.\n\n## Sponsor\n\n[![https:\u002F\u002Fwww.packyapi.com\u002Fregister?aff=cliproxyapi](.\u002Fassets\u002Fpackycode-en.png)](https:\u002F\u002Fwww.packyapi.com\u002Fregister?aff=cliproxyapi)\n\nThanks to PackyCode for sponsoring this project!\n\nPackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more.\n\nPackyCode provides special discounts for our software users: register using \u003Ca href=\"https:\u002F\u002Fwww.packyapi.com\u002Fregister?aff=cliproxyapi\">this link\u003C\u002Fa> and enter the \"cliproxyapi\" promo code during recharge to get 10% off.\n\n---\n\n\u003Ctable>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd width=\"180\">\u003Ca href=\"https:\u002F\u002Fwww.aicodemirror.com\u002Fregister?invitecode=TJNAIF\">\u003Cimg src=\".\u002Fassets\u002Faicodemirror.png\" alt=\"AICodeMirror\" width=\"150\">\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code \u002F Codex \u002F Gemini CLI, with enterprise-grade concurrency, fast invoicing, and 24\u002F7 dedicated technical support. Claude Code \u002F Codex \u002F Gemini official channels at 38% \u002F 2% \u002F 9% of original price, with extra discounts on top-ups! AICodeMirror offers special benefits for CLIProxyAPI users: register via \u003Ca href=\"https:\u002F\u002Fwww.aicodemirror.com\u002Fregister?invitecode=TJNAIF\">this link\u003C\u002Fa> to enjoy 20% off your first top-up, and enterprise customers can get up to 25% off!\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"180\">\u003Ca href=\"https:\u002F\u002Fshop.bmoplus.com\u002F?utm_source=github\">\u003Cimg src=\".\u002Fassets\u002Fbmoplus.png\" alt=\"BmoPlus\" width=\"150\">\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>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-solid, ready-to-use accounts and official top-up services for ChatGPT Plus \u002F ChatGPT Pro (Full Warranty) \u002F Claude Pro \u002F Super Grok \u002F Gemini Pro. By registering and ordering through \u003Ca href=\"https:\u002F\u002Fshop.bmoplus.com\u002F?utm_source=github\">BmoPlus - Premium AI Accounts & Top-ups\u003C\u002Fa>, users can unlock the mind-blowing rate of \u003Cb>10% of the official GPT subscription price (90% OFF)\u003C\u002Fb>!\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"180\">\u003Ca href=\"https:\u002F\u002Fcoder.visioncoder.cn\">\u003Cimg src=\".\u002Fassets\u002Fvisioncoder.png\" alt=\"VisionCoder\" width=\"150\">\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Thanks to VisionCoder for supporting this project. \u003Ca href=\"https:\u002F\u002Fcoder.visioncoder.cn\" target=\"_blank\">VisionCoder Developer Platform\u003C\u002Fa> is a reliable and efficient API relay service provider, offering access to mainstream AI models such as Claude Code, Codex, and Gemini. It helps developers and teams integrate AI capabilities more easily and improve productivity.\n\u003Cp>\u003C\u002Fp>\nVisionCoder is also offering our users a limited-time \u003Ca href=\"https:\u002F\u002Fcoder.visioncoder.cn\" target=\"_blank\">Token Plan\u003C\u002Fa> promotion: buy 1 month and get 1 month free.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n## Overview\n\n- OpenAI\u002FGemini\u002FClaude compatible API endpoints for CLI models\n- OpenAI Codex support (GPT models) via OAuth login\n- Claude Code support via OAuth login\n- Amp CLI and IDE extensions support with provider routing\n- Streaming, non-streaming, and WebSocket responses where supported\n- Function calling\u002Ftools support\n- Multimodal input support (text and images)\n- Multiple accounts with round-robin load balancing (Gemini, OpenAI, Claude)\n- Simple CLI authentication flows (Gemini, OpenAI, Claude)\n- Generative Language API Key support\n- AI Studio Build multi-account load balancing\n- Gemini CLI multi-account load balancing\n- Claude Code multi-account load balancing\n- OpenAI Codex multi-account load balancing\n- OpenAI-compatible upstream providers via config (e.g., OpenRouter)\n- Reusable Go SDK for embedding the proxy (see `docs\u002Fsdk-usage.md`)\n\n## Getting Started\n\nCLIProxyAPI Guides: [https:\u002F\u002Fhelp.router-for.me\u002F](https:\u002F\u002Fhelp.router-for.me\u002F)\n\n## Management API\n\nsee [MANAGEMENT_API.md](https:\u002F\u002Fhelp.router-for.me\u002Fmanagement\u002Fapi)\n\n## Usage Statistics\n\nSince v6.10.0, CLIProxyAPI and [CPAMC](https:\u002F\u002Fgithub.com\u002Frouter-for-me\u002FCli-Proxy-API-Management-Center) no longer ship built-in usage statistics. If you need usage statistics, use:\n\n### [CPA Usage Keeper](https:\u002F\u002Fgithub.com\u002FWillxup\u002Fcpa-usage-keeper)\n\nStandalone persistence and visualization service for CLIProxyAPI, with periodic data sync, SQLite storage, aggregate APIs, and a built-in dashboard for usage and statistics.\n\n### [CLIProxyAPI Usage Dashboard](https:\u002F\u002Fgithub.com\u002Fzhanglunet\u002Fcliproxyapi-usage-dashboard)\n\nLocal-first usage and quota dashboard for CLIProxyAPI. It collects per-request token usage from the Redis-compatible usage queue into SQLite, visualizes daily and recent-window usage by account and model, and shows Codex 5h\u002F7d quota remaining in a local web UI.\n\n### [CPA-Manager](https:\u002F\u002Fgithub.com\u002Fseakee\u002FCPA-Manager)\n\nFull CLIProxyAPI management center with request-level monitoring and cost estimates. CPA-Manager tracks collected requests by account, model, channel, latency, status, and token usage; estimates cost with editable model prices and one-click LiteLLM price sync; persists events in SQLite; and provides Codex account-pool operations with batch inspection, quota detection, unhealthy account discovery, cleanup suggestions, and one-click execution for day-to-day multi-account maintenance.\n\n## Amp CLI Support\n\nCLIProxyAPI includes integrated support for [Amp CLI](https:\u002F\u002Fampcode.com) and Amp IDE extensions, enabling you to use your Google\u002FChatGPT\u002FClaude OAuth subscriptions with Amp's coding tools:\n\n- Provider route aliases for Amp's API patterns (`\u002Fapi\u002Fprovider\u002F{provider}\u002Fv1...`)\n- Management proxy for OAuth authentication and account features\n- Smart model fallback with automatic routing\n- **Model mapping** to route unavailable models to alternatives (e.g., `claude-opus-4.5` → `claude-sonnet-4`)\n- Security-first design with localhost-only management endpoints\n\nWhen you need the request\u002Fresponse shape of a specific backend family, use the provider-specific paths instead of the merged `\u002Fv1\u002F...` endpoints:\n\n- Use `\u002Fapi\u002Fprovider\u002F{provider}\u002Fv1\u002Fmessages` for messages-style backends.\n- Use `\u002Fapi\u002Fprovider\u002F{provider}\u002Fv1beta\u002Fmodels\u002F...` for model-scoped generate endpoints.\n- Use `\u002Fapi\u002Fprovider\u002F{provider}\u002Fv1\u002Fchat\u002Fcompletions` for chat-completions backends.\n\nThese routes help you select the protocol surface, but 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\u002Falias. For strict backend pinning, use unique aliases, prefixes, or otherwise avoid overlapping client-visible model names.\n\n**→ [Complete Amp CLI Integration Guide](https:\u002F\u002Fhelp.router-for.me\u002Fagent-client\u002Famp-cli.html)**\n\n## SDK Docs\n\n- Usage: [docs\u002Fsdk-usage.md](docs\u002Fsdk-usage.md)\n- Advanced (executors & translators): [docs\u002Fsdk-advanced.md](docs\u002Fsdk-advanced.md)\n- Access: [docs\u002Fsdk-access.md](docs\u002Fsdk-access.md)\n- Watcher: [docs\u002Fsdk-watcher.md](docs\u002Fsdk-watcher.md)\n- Custom Provider Example: `examples\u002Fcustom-provider`\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature\u002Famazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature\u002Famazing-feature`)\n5. Open a Pull Request\n\n## Who is with us?\n\nThose projects are based on CLIProxyAPI:\n\n### [vibeproxy](https:\u002F\u002Fgithub.com\u002Fautomazeio\u002Fvibeproxy)\n\nNative macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys needed\n\n### [Subtitle Translator](https:\u002F\u002Fgithub.com\u002FVjayC\u002FSRT-Subtitle-Translator-Validator)\n\nA cross-platform desktop and web app to translate and validate SRT subtitles using your existing LLM subscriptions (Gemini, ChatGPT, Claude, etc.) via CLIProxyAPI - no API keys needed.\n\n### [CCS (Claude Code Switch)](https:\u002F\u002Fgithub.com\u002Fkaitranntt\u002Fccs)\n\nCLI wrapper for instant switching between multiple Claude accounts and alternative models (Gemini, Codex, Antigravity) via CLIProxyAPI OAuth - no API keys needed\n\n### [Quotio](https:\u002F\u002Fgithub.com\u002Fnguyenphutrong\u002Fquotio)\n\nNative macOS menu bar app that unifies Claude, Gemini, OpenAI, and Antigravity subscriptions with real-time quota tracking and smart auto-failover for AI coding tools like Claude Code, OpenCode, and Droid - no API keys needed.\n\n### [CodMate](https:\u002F\u002Fgithub.com\u002Floocor\u002FCodMate)\n\nNative macOS SwiftUI app for managing CLI AI sessions (Codex, Claude Code, Gemini CLI) with unified provider management, Git review, project organization, global search, and terminal integration. Integrates CLIProxyAPI to provide OAuth authentication for Codex, Claude, Gemini, and Antigravity, with built-in and third-party provider rerouting through a single proxy endpoint - no API keys needed for OAuth providers.\n\n### [ProxyPilot](https:\u002F\u002Fgithub.com\u002FFinesssee\u002FProxyPilot)\n\nWindows-native CLIProxyAPI fork with TUI, system tray, and multi-provider OAuth for AI coding tools - no API keys needed.\n\n### [Claude Proxy VSCode](https:\u002F\u002Fgithub.com\u002Fuzhao\u002Fclaude-proxy-vscode)\n\nVSCode extension for quick switching between Claude Code models, featuring integrated CLIProxyAPI as its backend with automatic background lifecycle management.\n\n### [ZeroLimit](https:\u002F\u002Fgithub.com\u002F0xtbug\u002Fzero-limit)\n\nWindows desktop app built with Tauri + React for monitoring AI coding assistant quotas via CLIProxyAPI. Track usage across Gemini, Claude, OpenAI Codex, and Antigravity accounts with real-time dashboard, system tray integration, and one-click proxy control - no API keys needed.\n\n### [CPA-XXX Panel](https:\u002F\u002Fgithub.com\u002Fferretgeek\u002FCPA-X)\n\nA lightweight web admin panel for CLIProxyAPI with health checks, resource monitoring, real-time logs, auto-update, request statistics and pricing display. Supports one-click installation and systemd service.\n\n### [CLIProxyAPI Tray](https:\u002F\u002Fgithub.com\u002Fkitephp\u002FCLIProxyAPI_Tray)\n\nA Windows tray application implemented using PowerShell scripts, without relying on any third-party libraries. The main features include: automatic creation of shortcuts, silent running, password management, channel switching (Main \u002F Plus), and automatic downloading and updating.\n\n### [霖君](https:\u002F\u002Fgithub.com\u002Fwangdabaoqq\u002FLinJun)\n\n霖君 is a cross-platform desktop application for managing AI programming assistants, supporting macOS, Windows, and Linux systems. Unified management of Claude Code, Gemini CLI, OpenAI Codex, and other AI coding tools, with local proxy for multi-account quota tracking and one-click configuration.\n\n### [CLIProxyAPI Dashboard](https:\u002F\u002Fgithub.com\u002Fitsmylife44\u002Fcliproxyapi-dashboard)\n\nA modern web-based management dashboard for CLIProxyAPI built with Next.js, React, and PostgreSQL. Features real-time log streaming, structured configuration editing, API key management, OAuth provider integration for Claude\u002FGemini\u002FCodex, usage analytics, container management, and config sync with OpenCode via companion plugin - no manual YAML editing needed.\n\n### [All API Hub](https:\u002F\u002Fgithub.com\u002Fqixing-jk\u002Fall-api-hub)\n\nBrowser extension for one-stop management of New API-compatible relay site accounts, featuring balance and usage dashboards, auto check-in, one-click key export to common apps, in-page API availability testing, and channel\u002Fmodel sync and redirection. It integrates with CLIProxyAPI through the Management API for one-click provider import and config sync.\n\n### [Shadow AI](https:\u002F\u002Fgithub.com\u002FHEUDavid\u002Fshadow-ai)\n\nShadow AI is an AI assistant tool designed specifically for restricted environments. It provides a stealthy operation\nmode without windows or traces, and enables cross-device AI Q&A interaction and control via the local area network (\nLAN). Essentially, it is an automated collaboration layer of \"screen\u002Faudio capture + AI inference + low-friction delivery\",\nhelping users to immersively use AI assistants across applications on controlled devices or in restricted environments.\n\n### [ProxyPal](https:\u002F\u002Fgithub.com\u002Fbuddingnewinsights\u002Fproxypal)\n\nCross-platform desktop app (macOS, Windows, Linux) wrapping CLIProxyAPI with a native GUI. Connects Claude, ChatGPT, Gemini, GitHub Copilot, and custom OpenAI-compatible endpoints with usage analytics, request monitoring, and auto-configuration for popular coding tools - no API keys needed.\n\n### [CLIProxyAPI Quota Inspector](https:\u002F\u002Fgithub.com\u002FAllenReder\u002FCLIProxyAPI-Quota-Inspector)\n\nReady-to-use cross-platform quota inspector for CLIProxyAPI, supporting per-account codex 5h\u002F7d quota windows, plan-based sorting, status coloring, and multi-account summary analytics.\n\n### [CodexCliPlus](https:\u002F\u002Fgithub.com\u002FC4AL\u002FCodexCliPlus)\n\nWindows-focused, local-first desktop management platform for Codex CLI built on CLIProxyAPI, focused on simplifying local setup, account and runtime management, and providing a more complete Codex CLI experience for local users.\n\n### [CLIProxy Pool Watch](https:\u002F\u002Fgithub.com\u002Fmurasame612\u002FCLIProxyPoolWidget)\n\nNative macOS SwiftUI app for monitoring ChatGPT\u002FCodex account quotas in CLIProxyAPI pools. Displays account availability, Plus-base capacity, 5-hour and weekly quota bars, plan weights, and restore forecasts through the Management API.\n\n> [!NOTE]  \n> If you developed a project based on CLIProxyAPI, please open a PR to add it to this list.\n\n## More choices\n\nThose projects are ports of CLIProxyAPI or inspired by it:\n\n### [9Router](https:\u002F\u002Fgithub.com\u002Fdecolua\u002F9router)\n\nA Next.js implementation inspired by CLIProxyAPI, easy to install and use, built from scratch with format translation (OpenAI\u002FClaude\u002FGemini\u002FOllama), combo system with auto-fallback, multi-account management with exponential backoff, a Next.js web dashboard, and support for CLI tools (Cursor, Claude Code, Cline, RooCode) - no API keys needed.\n\n### [OmniRoute](https:\u002F\u002Fgithub.com\u002Fdiegosouzapw\u002FOmniRoute)\n\nNever stop coding. Smart routing to FREE & low-cost AI models with automatic fallback.\n\nOmniRoute is an AI gateway for multi-provider LLMs: an OpenAI-compatible endpoint with smart routing, load balancing, retries, and fallbacks. Add policies, rate limits, caching, and observability for reliable, cost-aware inference.\n\n### [Playful Proxy API Panel (PPAP)](https:\u002F\u002Fgithub.com\u002Fdaishuge\u002Fplayful-proxy-api-panel)\n\nA public CLIProxyAPI-compatible fork and bundled management panel. It keeps upstream-style usage while restoring built-in usage statistics, adding cache hit rate, first-byte latency, TPS tracking, and Docker-oriented self-hosted installation docs.\n\n> [!NOTE]  \n> If you have developed a port of CLIProxyAPI or a project inspired by it, please open a PR to add it to this list.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","CLIProxyAPI 是一个代理服务器，它将 Gemini CLI、Antigravity、ChatGPT Codex 和 Claude Code 包装成与 OpenAI\u002FGemini\u002FClaude\u002FCodex 兼容的 API 服务，使用户能够通过 API 访问免费的 Gemini 3.1 Pro、GPT 5.5 和 Claude 模型。该项目使用 Go 语言开发，支持 OAuth 认证，允许本地或多个账户通过兼容的客户端和 SDK 访问这些模型。适用于需要集成多种 AI 模型以提升开发效率的场景，如代码生成、自然语言处理等。",2,"2026-06-11 02:59:57","top_language"]