Plug in. One minute.
Gantryx works like Anthropic's API with a different address. Where a tool asks for a base URL and API key, use these. Pick a client below, or let an AI agent set it up. New words? Plain English.
Let an AI agent do it new
Paste one prompt into Claude Code, Cursor, Codex or a chat assistant. It writes the config, keeps the key in an env var, and runs the verification call.
Claude Code primary
Two environment variables tell Claude Code where to send requests. Set them once, then use claude normally.
export ANTHROPIC_BASE_URL="https://api.gantryx.ai"
export ANTHROPIC_AUTH_TOKEN="sk-gx-…"
claudeOpenCode
In opencode.json, add Gantryx as a provider. The model IDs below are examples — any from /v1/models works.
{
"provider": {
"gantryx": {
"apiKey": "sk-gx-…",
"baseURL": "https://api.gantryx.ai/v1",
"models": {
"claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
"claude-opus-5-5": { "name": "Claude Opus 5.5" },
"claude-fable-5-2": { "name": "Claude Fable 5.2" }
}
}
}
}Then select gantryx/claude-sonnet-5-5 in the model picker.
Cline (VS Code)
Cline → Settings → API Provider → Anthropic.
| Base URL | https://api.gantryx.ai |
| API Key | sk-gx-… |
| Model | claude-sonnet-5-5 |
Cursor
Settings → Models → OpenAI API Key. Override base URL to https://api.gantryx.ai/v1, paste your key, add claude-sonnet-5-5 as a custom model.
Windsurf / Continue.dev
Same pattern: provider Anthropic or OpenAI, base URL https://api.gantryx.ai (or /v1 for OpenAI), key sk-gx-…, model claude-sonnet-5-5.
Cherry Studio
Provider type Anthropic · address https://api.gantryx.ai · key sk-gx-… · model claude-sonnet-5-5 or any from /v1/models.
Codex CLI
model_provider = "gantryx"
model = "claude-sonnet-5-5"
wire_api = "responses"
[model_providers.gantryx]
name = "gantryx"
base_url = "https://api.gantryx.ai/v1"
requires_openai_auth = trueKey in ~/.codex/auth.json: {"OPENAI_API_KEY":"sk-gx-…"}
CC Switch
Add provider → paste base URL + key → name it gantryx → switch. Applies to Claude Code and Codex at once.
Raw curl
curl https://api.gantryx.ai/v1/messages \
-H "Authorization: Bearer sk-gx-…" \
-H "content-type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"claude-sonnet-5-5","max_tokens":64,
"messages":[{"role":"user","content":"Say hello"}]}'OpenAI-compatible (any client)
Base URL https://api.gantryx.ai/v1 · auth Bearer sk-gx-…. Any OpenAI SDK works. Chat at /v1/chat/completions, Responses at /v1/responses.
Your usage dashboard
Portal at app.gantryx.ai: balance, window bars, key management, top-up. Or GET /v1/status for JSON.
Errors
What the status codes mean, and what to do. A 429 is temporary — wait, do not change your key.
| Code | Meaning | What to do |
|---|---|---|
| 401 | bad key | check your key, issue a new one |
| 402 | balance empty | top up (min $3) |
| 403 | model not in your tier | upgrade or pick another model |
| 429 | rate limited (yours or pool) | retry after retry_after s |
| 503 | temporary capacity pressure | retry once shortly |
| 529 | overloaded | retry, we are moving you to other capacity |
Every response carries X-Request-Id. Include it in support messages — it is the fastest way to trace a bad call.
Privacy
Zero data retention (ZDR) from Gantryx: we keep no prompts and no answers — only billing facts (tokens, model, delay, status). Nothing is used for training. Prompts continue to Anthropic under their own terms.