Saved llms.txt
Saved during the last crawl. Check the website for current setup and pricing.
# RouteMux
> AI gateway: call models from many providers with one API key and one prepaid wallet,
> through OpenAI-, Anthropic- and Vertex-compatible protocols. Only successful requests are billed.
This file is an index for AI coding agents (Claude Code, Codex, Cursor and others).
Human-readable docs: https://routemux.com/docs
Append `.md` to any docs URL for raw Markdown, e.g. https://routemux.com/docs/getting-started.md
## Base URLs
All model calls go to the gateway, https://api.routemux.com. Point your SDK at:
- OpenAI-compatible: https://api.routemux.com/v1
- Anthropic-compatible: https://api.routemux.com/anthropic
- Google GenAI / Vertex: https://api.routemux.com/vertex-ai
## Authentication
Send `Authorization: Bearer <RouteMux API key>` (Anthropic SDKs may use `x-api-key`,
Google SDKs `x-goog-api-key`; send exactly one).
Create keys at https://console.routemux.com/keys. Keys start with `sk-`; legacy `rmx_live_` keys are still accepted.
## Quickstart
Swap the base URL in an existing OpenAI SDK; **nothing else changes**:
```python
from openai import OpenAI
client = OpenAI(base_url="https://api.routemux.com/v1", api_key="sk-...")
resp = client.chat.completions.create(
model="openai/gpt-5.6-sol",
messages=[{"role": "user", "content": "Hello"}],
)
```
```bash
curl https://api.routemux.com/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-5.6-sol","messages":[{"role":"user","content":"Hello"}]}'
```
## Coding agents
- Claude Code: https://routemux.com/docs/integrations/dev-tool/claude-code.md
- Codex CLI: https://routemux.com/docs/integrations/dev-tool/codex-cli.md
- Other tools (Cursor, Cline, OpenCode, Gemini CLI and more): see Integrations in https://routemux.com/docs
## Agent Skills
Ready-made skills that let an agent generate images and video, look up models and pricing,
and point itself at RouteMux.
- Any agent: `npx skills add https://routemux.com -g`
- Claud