OpenRouter
Universal Model Router · Global & China Models · Direct from Source
About
Universal model aggregation platform, all mainstream global and China models, direct from source. Supports Claude, GPT, Gemini, and all China models. 5% above official pricing but unified interface and full model coverage
💡 Claude Code / Codex:Codex CLI supported, through OpenRouter unified interface
Supported Models
Anthropic Claude
OpenAI
Google Gemini
Claude Code / Codex CLI
Codex CLI supported, through OpenRouter unified interface
Pricing
Rate
Official price + 5%
Free Credit
New users may have limited trial credit
Payment
💵 USD
5% service fee on top of official model pricing, no hidden fees, transparent pricing
Pros & Cons
Pros
- ✓Full model coverage, global and China models one-stop access
- ✓Direct from source, model quality guaranteed
- ✓Unified API interface, reduces multi-platform integration cost
- ✓Claude Code, Codex CLI, Gemini CLI supported
- ✓Team sharing supported
- ✓Transparent pricing, only 5% service fee
Cons
- •5% above official pricing
- •VPN required for access
- •CNY payment not supported
- •Invoice not supported
- •China access may be unstable
How to Connect OpenRouter
Register Account
Visit https://openrouter.ai, complete registration and get API Key
Configure Environment Variables
The following API endpoints are for reference. For complete configuration, please refer to the official website.
Claude Code:
export ANTHROPIC_BASE_URL="https://openrouter.ai/api/v1"
Codex CLI:
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
Gemini CLI:
export GEMINI_BASE_URL="https://openrouter.ai/api/v1"
Start Using
Configuration complete. Run Claude Code or Codex CLI to start using. 5% service fee on top of official model pricing, no hidden fees, transparent pricing
No affiliate link
Quick Info
Third-party model aggregation platform, unified API interface for global AI models, direct from source