Synrouter Docs
Agent clients
Most agent clients only need a compatible base URL and a Synrouter API key. Switch your API endpoint to Synrouter and keep your existing client setup — no code changes required.
Compatibility modes
OpenAI-compatible
https://synrouter.ai/api/v1 for any client that speaks the OpenAI Chat Completions protocol.Anthropic-compatible
https://synrouter.ai/api/anthropic for clients that speak the Anthropic Messages protocol.Claude Code
Claude Code uses the Anthropic Messages API. Set the base URL to Synrouter and use your sk-sr-* key.
Codex CLI
Codex CLI supports custom model providers. Add Synrouter as a provider in your Codex configuration file.
OpenAI-compatible environment variables
Most CLI tools and SDK-based agents read these standard environment variables. Works with Codex, Kilo Code, Hermes, and any OpenAI SDK-based agent.
Anthropic-compatible environment variables
For Anthropic SDK-based agents like Claude Code:
Hermes
Hermes is an open-source general-purpose agent. Configure it via environment variables pointing to Synrouter.
Kilo Code
Kilo Code is a VS Code extension for AI-assisted coding. Update settings to route through Synrouter.
Model selection
Pick a model ID from GET /v1/models. For OpenAI endpoints, use any model ID. For Anthropic endpoints, use an Anthropic model:
- OpenAI-compatible:
deepseek/deepseek-v4-flash,openai/gpt-5.5,google/gemini-3.5-flash - Anthropic-compatible:
anthropic/claude-sonnet-X.X,anthropic/claude-opus-X.X