CLIProxyAPI

Active
GitHub Go MIT

Description

Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code as an OpenAI/Gemini/Claude/Codex compatible API service for unified agent access.

Key Features

  • OpenAI-compatible API — Wraps Claude Code, Codex, Gemini CLI as standard OpenAI-format REST endpoints
  • OAuth login — Use Claude Code, Codex, Grok Build subscriptions directly via OAuth flow
  • Multi-account round-robin — Load balancing across multiple accounts for Gemini, OpenAI, Claude, Grok
  • Streaming responses — Supports streaming, non-streaming, and WebSocket response modes
  • Go SDK — Embeddable SDK for integrating the proxy into other projects
  • Management API — Full management interface for user and quota management

Use Cases

💡 Provide unified API endpoints for CLI tools with multi-model switching
💡 Share AI subscriptions across teams with per-user quota allocation
💡 Integrate Claude/Codex/Gemini capabilities into custom or internal tools
💡 Access AI models through proxy in local or restricted network environments

Categories

Quick Start

# Install CLIProxyAPI
go install github.com/router-for-me/CLIProxyAPI@latest

# Start the proxy server
cliproxyapi serve

Related Projects