Documentation
Get started, explore the API, follow tutorials, and find answers
Agent CLI Setup
Claude Desktop with CodeGateway (Third-Party Gateway Setup)
Point Claude Desktop inference at CodeGateway: connection settings, the model-picker lineup (inferenceModels), and how to declare 1M context correctly.
Crush Integration with CodeGateway: Custom Provider Setup
Two crush provider add commands (OpenAI-compatible or Anthropic-compatible) connect Crush to CodeGateway.
Aider Integration with CodeGateway: OpenAI-Compatible Endpoint Setup
Set AIDER_OPENAI_API_BASE plus a key to use DeepSeek/Kimi/GLM models via CodeGateway, pay as you go.
opencode Integration with CodeGateway: OpenAI-Compatible Provider
One opencode.json registers CodeGateway as an OpenAI-compatible provider with DeepSeek/Kimi/GLM models.
GitHub Copilot CLI Integration with CodeGateway: Custom Model Provider
Four environment variables point Copilot CLI at CodeGateway with DeepSeek/Kimi/GLM/Qwen models.
Cursor CLI Compatibility Note for CodeGateway
Cursor CLI only authenticates with a Cursor account; official CLI docs expose no custom endpoint setting.
Gemini CLI Compatibility Note for CodeGateway
Gemini CLI only speaks the Gemini-native protocol; here is why it cannot connect and two alternatives.
Reasonix Integration with CodeGateway: DeepSeek-Compatible Endpoint Setup
Reasonix speaks DeepSeek-compatible endpoints; one baseUrl connects it to CodeGateway (0.53.x and v1.x configs).
DeepSeek Harness (DSH) Integration with CodeGateway: Custom Provider Setup
Add one custom provider in DSH to reach Claude/Gemini/DeepSeek models via CodeGateway.
Qwen Code Integration with CodeGateway: OpenAI-Compatible Provider Setup
One settings.json entry connects Qwen Code to CodeGateway with DeepSeek/Kimi/GLM models, pay as you go.
Agent CLI Overview: Connect Any Mainstream AI Coding Tool to CodeGateway in 5 Minutes
Quick overview of endpoints, model routing rules, and per-tool setup entries for mainstream Agent CLIs.
Getting Started
Configure Claude Code in 5 Minutes
One command to set up Claude Code with CodeGateway — works on macOS, Linux, and Windows. Updated 2026-05-15: aligned with AI Gateway repositioning.
OpenClaw + CodeGateway: Configure Claude Models in 5 Minutes
OpenClaw users route Claude Sonnet/Opus/Haiku via the CodeGateway aggregation gateway with one baseUrl change and one API key — pay per token.
Other
Smart Routing
Opt-in cross-provider fallback. Understand what Smart Routing does, how to enable it per API key, and how to identify which model actually served the response.
Claude Code from Zero: Run Your First AI-Written Program in 10 Minutes
Never written code? You can still use Claude Code. A zero-jargon walkthrough that takes you from install to running your first AI-written program in 10 minutes.
Codex CLI Quickstart
5-minute setup: route OpenAI Codex CLI (gpt-5.3-codex) through CodeGateway — install, configure base_url, verify, start coding.