HubLensClauderouter-for-me/CLIProxyAPI
// archived 2026-04-27
router-for-me

CLIProxyAPI

AI#OpenAI#Claude#Gemini#Proxy#API
View on GitHub
74

// summary

CLIProxyAPI is a versatile proxy server that provides OpenAI, Gemini, and Claude-compatible API interfaces for various command-line tools. It supports OAuth authentication for major AI services, enabling users to manage multiple accounts with round-robin load balancing. The project also includes a reusable Go SDK and extensive support for IDE extensions and AI coding assistants.

// technical analysis

CLIProxyAPI is a versatile proxy server designed to bridge the gap between various AI coding tools and multiple LLM providers by offering OpenAI, Gemini, and Claude-compatible API interfaces. Its architecture focuses on enabling multi-account management and load balancing, allowing developers to utilize their existing OAuth subscriptions for tools like Claude Code and OpenAI Codex without needing manual API keys. By providing a unified interface and smart model fallback mechanisms, the project simplifies the integration of diverse AI services into CLI environments while maintaining a security-first design for management operations.

// key highlights

01
Provides unified OpenAI, Gemini, and Claude-compatible API endpoints for seamless integration with various CLI tools and IDE extensions.
02
Supports OAuth-based authentication for Claude Code and OpenAI Codex, eliminating the need for manual API key management.
03
Features robust multi-account load balancing and round-robin routing to optimize usage across different AI provider subscriptions.
04
Includes smart model mapping and fallback capabilities to automatically route requests to alternative models when the primary choice is unavailable.
05
Offers a reusable Go SDK, allowing developers to embed the proxy functionality directly into their own applications or services.
06
Supports advanced features such as streaming responses, function calling, and multimodal input (text and images) to ensure full compatibility with modern AI workflows.

// use cases

01
Unified multi-account management for Claude, Gemini, and OpenAI Codex
02
OAuth-based authentication for AI coding tools without needing manual API keys
03
Smart model routing and automatic fallback for CLI-based AI development workflows

// getting started

To begin using CLIProxyAPI, visit the official help documentation at https://help.router-for.me/ to explore setup guides and configuration options. Developers can leverage the project's Management API to configure providers and OAuth accounts, or integrate the Go SDK into their own projects by following the documentation located in the 'docs/' directory.