router-for-me/CLIProxyAPI

★ 56,860⑂ 8,706

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini Series, GPT Series

About router-for-me/CLIProxyAPI

router-for-me/CLIProxyAPI is an open-source project on GitHub, mainly written in Go. Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service It currently holds 56,860 stars and 8,706 forks with 784 open issues, and was last pushed on 2026-10-29 (repository created 2025-07-01).

Project Overview

Git Homed tracks it on the AI Agent Skills Trending board and on the AI AI Agent Skills Trending list.

GitHub Repository Details

Repository router-for-me/CLIProxyAPI · default branch main · size 48307 KB · watchers 114 · source: GitHub REST API and repository README

README

CLI Proxy API

English | 中文 | 日本語

If you want to use CLIProxyAPI on your desktop, we recommend our EasyCLIProxyAPI desktop client. It provides a graphical configuration UI, automatic updates, system tray integration, and one-click start/stop for the CLIProxyAPI service.

CLIProxyAPI is a proxy server that provides OpenAI/Gemini/Claude/Codex/Grok compatible API interfaces for CLI.

You can access the following providers locally and with multiple CLI accounts through any OpenAI (including Responses), Gemini (including Interactions), or Claude-compatible client or SDK.

Provider Description
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Kimi Kimi series models (Kimi K3.1 Pro, K3.1 Pro Highspeed, K3, K2.8 Preview, etc.). Kimi K3 is Moonshot AI’s previous-generation flagship and the world’s first open 3T-class model. With 2.8 trillion parameters, native vision, and a 1-million-token context window, K3 is built for long-horizon coding, knowledge work, and reasoning. CLIProxyAPI supports Kimi through OAuth or compatible API interfaces. Try a Kimi Code plan (中文站 | Global), or get an API key from the Kimi Open Platform (中文站 | Global). Thanks to Kimi for supporting CLIProxyAPI and the open-source community!
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/OpenAI OpenAI GPT-6 models (GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna), including access through Codex OAuth. Astra is the flagship for complex reasoning and coding, Sol balances capability and cost, Terra focuses on visual reasoning and computer use, and Luna handles focused, high-volume work.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Anthropic Anthropic Claude models (Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5). Fable 5.1 is built for ambitious, long-running coding and knowledge work; Opus 5.5 brings strong agentic coding at a lower cost.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Antigravity Google Gemini models include Gemini 4 Argon and Gemini 3.8 Flash. CLIProxyAPI supports Gemini API, AI Studio, Vertex AI, Gemini CLI, and Antigravity accounts; model availability varies by channel. Gemini 3.8 Flash is Google's latest Flash model for long-horizon software engineering and agentic workflows. Antigravity's official model availability lists Claude Sonnet 5.5 (thinking) and Claude Opus 5.5 (thinking) for Google AI Pro (non-trial), Google AI Ultra, and Enterprise.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/xAI xAI Grok models (Grok 4.7, Grok 4.7 Build Fast, etc.). Grok 4.7 is SpaceXAI's latest model for coding, agentic tasks, and knowledge work.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Meta Meta Muse models (Muse Wonder Full, Muse Wonder, Muse Spark 1.3, etc.). CLIProxyAPI supports Muse Code accounts through Meta login and Meta Model API keys, with Muse Spark 1.3 for coding and agentic workflows. Meta has announced Muse Wonder for Meta Model API and Muse Code, and Muse Wonder Full for Muse Code subscribers.
Devin Devin models (SWE-2, SWE-2 Flash, GPT-6 Astra, Claude Fable 5.1, etc.). Connect a Devin account with --devin-login to route the models available to that account.

Sponsor

https://www.packyapi.com/register?aff=cliproxyapi

Thanks to PackyCode for sponsoring this project!

PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and 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.

---

https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/AICodeMirror Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code / Codex / Gemini, with enterprise-grade concurrency, fast invoicing, and 24/7 dedicated technical support. Claude Code / Codex / Gemini official channels at 38% / 2% / 9% of original price, with extra discounts on top-ups! AICodeMirror offers special benefits for CLIProxyAPI users: register via this link to enjoy 20% off your first top-up, and enterprise customers can get up to 25% off!
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/APIKEY.FUN Thanks to APIKEY.FUN for sponsoring this project! APIKEY.FUN is a professional enterprise-grade AI relay platform dedicated to providing stable, efficient, and low-cost AI model API access for enterprises and individual developers. The platform supports popular mainstream models such as Claude, OpenAI, and Gemini, with prices as low as 7% of the official price. Register through this project's exclusive link to enjoy a special permanent 5% top-up discount.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/FennoAI FennoAI is a stable and efficient API relay service provider, currently focused on Codex relay services. It is compatible with OpenAI and Anthropic protocols and can flexibly integrate with mainstream coding tools such as Codex, Claude Code, and OpenCode. It can reliably support enterprise-grade demand of hundreds of billions of tokens per day, with B2B settlement and invoicing available for both domestic and overseas entities. FennoAI offers an exclusive benefit for CLIProxyAPI users: purchase a subscription through the exclusive link and receive $50 worth of Coding Plan credits for just $1.99. Referral rewards are also available: earn up to 20% commission when invited friends make a purchase. The more friends you invite, the greater the rewards.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Qiniu Cloud AI Thanks to Qiniu Cloud AI for sponsoring this project! Qiniu Cloud AI is an enterprise-grade large-model MaaS platform under Qiniu Cloud (02567.HK). It provides one-stop access to 150+ mainstream global models, is compatible with protocols from major global model providers, and covers full-modal processing capabilities for text, image, audio, video, and files. It serves more than 1.69 million enterprise and developer users. Exclusive benefits: enterprise users can claim 12 million free tokens, and invite friends to earn up to tens of billions of tokens.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Cubence Thanks to Cubence for sponsoring this project! Cubence is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more. Cubence provides special discounts for our software users: register using this link and enter the "CLIPROXYAPI" promo code during recharge to get 10% off.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Bestproxy Bestproxy provides high-purity residential IPs with dedicated one-IP-per-account support. 🟡Residential Proxy - $0.5/GB;🟡Static Residential Proxy - Starting at $3/IP;🟡Unlimited Residential Proxy - Starting at $67/Day. ✅Get Free Trial.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Swiftproxy Swiftproxy provides 90M+ clean residential IPs across 220+ locations, supporting HTTP(S)/SOCKS5, IP rotation, Sticky Sessions, and precise location targeting. It helps AI API tools and automation workflows access online services reliably from different locations, making it ideal for API requests, web access, data collection, and location-based testing. Residential proxies from $0.7/GB. Free testing is available, with 10% off using code PROXY90. Try Swiftproxy Now
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/RapidProxy RapidProxy is a high-performance proxy provider built for automation and multi-account operations, offering clean residential proxies and native static ISP IPs. With 90M+ residential IPs worldwide, smart rotation, stable sessions, and high-concurrency support, RapidProxy is ideal for web scraping, browser automation, social media account management, e-commerce operations, bulk account registration, and more. Residential proxies start at just $0.55/GB, with traffic that never expires. Use code RAPID10 for 10% off, and start your free trial today.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/PatewayAI PatewayAI is an API relay service provider for experienced AI developers, with full support for the Claude and Codex model families. All models come from high-quality official channels, with no dilution or counterfeiting, and transparent, verifiable billing details. Economy mode starts at just 5% of the official price. Register through this link to receive trial credits and participate in occasional promotions for free credits. The platform also supports enterprise-grade concurrency, a dedicated management dashboard, formal contracts and invoices, and two-way referral rewards of up to $150.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/kedaya.ai kedaya.ai is a stable and efficient AI model API relay service provider, covering leading models including Claude, GPT, Gemini, Grok, Antigravity, and DeepSeek. It supports native OpenAI (including Responses), Anthropic, and Gemini protocols, enabling seamless integration with clients such as CLIProxyAPI, Claude Code, Codex, Gemini CLI, and Grok CLI. OpenAI and Grok model prices can be as low as 0.1% of official rates! Exclusive registration link.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Xcode 🥚 [Freebie Alert!] Register & submit a ticket with code to grab $5 free credit + 15% OFF first top-up!
🚀 More than just API routing — an all-in-one Web workspace: Enjoy Web chat, AI image generation, video creation, and automated workflows right out of the box without any frontend setup.
⚡ All mainstream models supported: High-speed routing for Claude, GPT, Gemini, DeepSeek, and more.
🛡️ Reliable guarantees: Hassle-free refunds | Official invoicing | B2B & individual billing | High-availability customer support ready to help!

👉 Xcode VIP Portal: https://xcode.best
💬 Ticket Code: CLIProxyAPI (Submit a ticket to claim your credits instantly)
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/Chenju Thanks to 陈局 (Chenju) for sponsoring this project! Probably the only slot here that won't ask you to sign up — no signup link, no promo code. Just raising a glass to the maintainers, because good open source deserves to be paid for. Come shoot the breeze on X: @chenju_ai
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/DeepSider API Access leading AI models like GPT, Claude, Gemini, and DeepSeek—all in one place. We connect through official channels from major providers, with no shared account pools or reverse engineering. Save up to 71% compared with official rates. Track your usage in real time with transparent billing, and access AI at a lower cost. Try DeepSider API.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/OriginCoder OriginCoder is an enterprise-grade AI gateway designed for low latency, reliability, and high concurrency. We build and operate our Claude Max and GPT Pro account pools entirely in-house. Pools that maintain full model performance are priced at 30–40% of official rates, and we publish each pool’s performance status in real time. Access GPT, Claude, Grok, Gemini-4-Carbon, DeepSeek, and other leading AI models through coding tools such as Claude Code and Codex. Use it for AI chat, coding assistance, image generation, and video generation. We operate overseas in compliance with local regulations and have served more than 15,000 customers since launching in August 2025. Our pricing is transparent, with no overage fees and top-ups starting at CNY 10. We keep the service running smoothly during peak hours through 24/7 monitoring, redundant account pools, and automatic failover between nodes. Check our service status. We protect your privacy by not storing conversation content. We support business payments and invoicing. Our support team responds within 3 minutes, and our technical team is available 24/7. Users in mainland China can connect through our China-optimized gateway.
https://github.com/router-for-me/CLIProxyAPI/blob/HEAD/VisionCoder VisionCoder | China’s OpenRouter — one API for leading Chinese and global AI models. Access DeepSeek, Qwen, Kimi, GLM, GPT, Claude, Gemini, and Grok, with intelligent routing across suppliers and automatic failover. Failed requests are free, pricing is public, and every charge can be verified. Works with coding tools such as Claude Code and Codex, with one-click import into CC Switch and WorkBuddy. Teams can purchase centrally, assign subscription packages by seat, and reclaim them for reassignment, with business bank transfers and invoicing supported. Supplier applications are open: list your model endpoints and earn traffic based on quality. Monthly settlement to business bank accounts, itemized usage records, and customer billing and invoicing handled by VisionCoder. Join the VibeCoding Challenge for CNY 2,350 in top-up credits per round, including CNY 1,000 in top-up credits for first place.

Overview

Getting Started

CLIProxyAPI Guides: https://help.router-for.me/

Claude Code with a Codex backend: optional visible progress, classifier routing, image-tool pass-through, and latency diagnostics.

Management API

see MANAGEMENT_API.md

Usage Statistics

Since v6.10.0, CLIProxyAPI and CPAMC no longer ship built-in usage statistics. If you need usage statistics, use:

CPA Usage Keeper

Standalone persistence and visualization service for CLIProxyAPI, with periodic data sync, SQLite storage, aggregate APIs, and a built-in dashboard for usage and statistics.

CPA-Manager-Plus

A self-hosted CLIProxyAPI management console and observability dashboard, available as a lightweight drop-in panel or a full Manager Server with persistent analytics. Manage OAuth credentials, AI providers, client API keys, model aliases, plugins, and CPA settings in one interface. SQLite-backed request history enables live monitoring, failure diagnosis, and token, latency, and estimated-cost breakdowns by model, provider, account, key, and channel. Supports editable model prices and one-click price sync, alongside Codex and xAI quota checks, reset information, account-health inspection, and controlled recovery actions. Deploy via Docker or cross-platform native packages, with data stored locally.

Oh-My-CPA

Modern Ant Design-based management console for CLIProxyAPI v8+, combining CPAMC-style administration with SQLite-backed request records and usage analytics. Covers OAuth accounts, API providers, client keys, quotas, pricing and CPA operations in one interface. Tracks request-level latency, TTFT, tokens and cost, with multi-dimensional filtering, live dashboards and token heatmaps. OpenRouter price sync, custom rates and per-request price snapshots keep historical costs stable; a built-in Agent and MCP tools support assisted investigation and management.

SDK Docs

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository 2. Create your feature branch (git checkout -b feature/amazing-feature) 3. Commit your changes (git commit -m 'Add some amazing feature') 4. Push to the branch (git push origin feature/amazing-feature) 5. Open a Pull Request

Who is with us?

Those projects are based on CLIProxyAPI:

vibeproxy

Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys needed

Subtitle Translator

A 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.

CCS (Claude Code Switch)

CLI wrapper for instant switching between multiple Claude accounts and alternative models (Gemini, Codex, Antigravity) via CLIProxyAPI OAuth - no API keys needed

Quotio

Native 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.

ProxyPilot

Windows-native CLIProxyAPI fork with TUI, system tray, and multi-provider OAuth for AI coding tools - no API keys needed.

CPA-XXX Panel

A 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.

CLIProxyAPI Tray

A 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 / Plus), and automatic downloading and updating.

霖君

霖君 is a cross-platform desktop application for managing AI programming assistants, supporting macOS, Windows, and Linux systems. Unified management of Claude Code, Gemini, OpenAI Codex, and other AI coding tools, with local proxy for multi-account quota tracking and one-click configuration.

CLIProxyAPI Dashboard

A 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/Gemini/Codex, usage analytics, container management, and config sync with OpenCode via companion plugin - no manual YAML editing needed.

All API Hub

Browser extension for one-stop management of New API-compatible relay site accounts, featuring balance and usage dashb

GitHub Stars & Activity

56,860Stars
8,706Forks
784Open issues
GoLanguage

GitHub Popularity

GitHub stars56,860
Forks8,706
Open issues784
Primary languageGo
LicenseMIT
Stars gained today0
Created2025-07-01
Last pushed2026-10-29

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

JuliusBrussee / caveman

Go★ 120,894⑂ 0
→
2

infiniflow / ragflow

Go★ 94,298⑂ 0
→
3

alibaba / open-code-review

Go★ 53,324⑂ 0
→
4

Wei-Shaw / sub2api

Go★ 46,173⑂ 0
→
5

yetone / magpie

Go★ 37,931⑂ 0
→
6

vxcontrol / pentagi

Go★ 34,361⑂ 0
→
7

morluto / rea

TypeScript★ 465,160⑂ 0
→
8

affaan-m / ECC

JavaScript★ 304,932⑂ 0
→

More Trending Repositories