Agent Setup
Step-by-step configuration for each supported AI coding agent.
This guide is for developers using the AI Gateway to route LLM requests from AI coding agents and applications.
You are a developer who wants to:
| Capability | Description |
|---|---|
| Route to any provider | Switch between Anthropic, OpenAI, Google, and Azure OpenAI by changing a single header |
| Use either API format | Send requests in OpenAI Chat Completions format (/v1/chat/completions) or Anthropic Messages format (/v1/messages) |
| Authenticate once | Use a single Cognito M2M token instead of per-provider API keys |
| Use any compatible agent | Configure Claude Code, OpenCode, Goose, Continue.dev, LangChain, or Codex CLI |
Agent Setup
Step-by-step configuration for each supported AI coding agent.
API Reference
Endpoints, headers, request/response formats, and rate limits.
Troubleshooting
Solutions for common errors: 401s, 403s, missing headers, and more.