CodeGateway
OpenAI-compatible AI gateway for Claude, GPT & more — swap one base_url.
Overview
What is CodeGateway?
CodeGateway is an OpenAI-compatible AI gateway that gives developers unified access to Anthropic's Claude, OpenAI's models, and more through a single endpoint. Because it speaks the standard OpenAI API format, any tool you already use — Claude Code, Cursor, Codex CLI, Cline, Continue — works after a one-line change to the base_url. No SDK swap, no code rewrite. Smart routing picks a backend by latency and cost and fails over automatically during peak load, so requests stay reliable. Responses stream in real time over SSE, and Anthropic-compatible and Codex Responses endpoints are supported too. Built-in usage analytics give you real-time token usage, model distribution, and cost breakdowns you can export for audit anytime. Billing is pay-as-you-go with no subscription and no monthly minimum: top up from $5, every new account gets $2 of free trial credit, and payments accept cards as well as Alipay and WeChat Pay. Integrate in about five minutes and switch models without rewriting your code.
What is CodeGateway used for?
Tags

Top Features
- OpenAI-compatible endpoint — works with Claude Code, Cursor, Codex CLI, Cline and Continue by changing one base_url
- Multi-model aggregation — unified access to Anthropic (Claude), OpenAI and more through a single endpoint
- Smart routing — latency- and cost-aware backend selection with automatic failover during peak load
- Real-time SSE streaming, plus Anthropic-compatible and Codex Responses endpoints
- Usage analytics — real-time token usage, model distribution and cost breakdowns, exportable for audit
- Pay-as-you-go billing — no subscription, top up from $5, $2 free trial credit, cards + Alipay + WeChat Pay
How to use CodeGateway?
1. Sign up at codegateway.dev — every new account gets $2 of free trial credit. 2. Create an API key in the dashboard (top up from $5 when you need more). 3. Point your tool at the gateway by changing the base URL and using your key — for Claude Code, set ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY. 4. Call any supported Claude or OpenAI model through the standard OpenAI/Anthropic format; responses stream in real time. 5. Track token usage, model split, and cost in the dashboard analytics.
Alternative Tools
Pros & Cons
No Data
Use Cases
- Run Claude Code, Cursor or Codex CLI through one stable base_url
- Build AI apps on Claude or OpenAI and switch models without rewriting code
- Power coding agents and API integrations with built-in cost and usage tracking
- Top up with Alipay or WeChat Pay when cards are inconvenient
- Keep one OpenAI-compatible interface across multiple model providers
User Reviews
No reviews yet
Be the first to review this tool!