router-for-me/CLIProxyAPI

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

What it solves

CLIProxyAPI allows users to access various AI models (such as those from OpenAI, Gemini, Claude, and Grok) through a unified, compatible API interface. It specifically solves the problem of needing separate API keys or complex configurations when using different CLI-based AI tools, enabling users to leverage their existing subscriptions or OAuth logins to power these tools.

How it works

It acts as a proxy server that translates requests into formats compatible with OpenAI, Gemini, Claude, and Grok. It supports multiple authentication methods, including OAuth logins for services like Claude Code, OpenAI Codex, and Grok Build, as well as standard API keys. The server can handle streaming and non-streaming responses, function calling, and multimodal inputs (text and images), and it can load-balance requests across multiple accounts using a round-robin approach.

Who it’s for

This tool is designed for developers and CLI users who want to use a variety of frontier AI models within their terminal-based workflows or AI coding tools without managing numerous individual API keys.

Highlights

  • Multi-Provider Compatibility: Provides compatible endpoints for OpenAI, Gemini, Claude, and Grok.
  • OAuth Integration: Supports OAuth login for Claude Code, OpenAI Codex, and Grok Build.
  • Multimodal Support: Handles both text and image inputs.
  • Load Balancing: Implements round-robin load balancing across multiple accounts for several providers.
  • Extensible SDK: Includes a reusable Go SDK for embedding the proxy functionality into other applications.

Related

  • Project
  • Project
  • Project
  • Project
  • Project