DOCS://AI-SETUP

Let your agent
wire it up.

Paste one prompt into Claude Code, Cursor, Codex, OpenCode or a chat assistant. It fills in the address and key, then runs a test request.

copy-paste promptagent or chattest included
BEFORE / YOU PASTE

Get a free trial key first ($0.30 credit, Telegram bot). Replace sk-gx-REPLACE_ME with it. The prompt tells the agent to keep it in an environment variable, not in git.

choose your agent
You are configuring this project to use Gantryx, an Anthropic- and OpenAI-compatible Claude API relay.

Endpoint
- Base URL: https://api.gantryx.ai
- Anthropic protocol: POST /v1/messages (header: anthropic-version: 2023-06-01)
- OpenAI protocol: POST /v1/chat/completions and /v1/responses (base: https://api.gantryx.ai/v1)
- Auth: Authorization: Bearer sk-gx-REPLACE_ME
- Model list: GET /v1/models

Tasks
1. Detect which client this project uses (Claude Code, Cursor, Cline, OpenCode, Codex CLI, Continue, Cherry Studio, or a raw SDK) and write the correct base-URL/key configuration for it.
2. Keep the key in an environment variable (ANTHROPIC_AUTH_TOKEN or OPENAI_API_KEY). Never commit it.
3. Default model: claude-sonnet-5-5. Use claude-opus-5-5 for hard reasoning, claude-haiku-5-5 for cheap bulk work, claude-fable-5-2 for long-form.
4. Run one minimal request to verify. Print the HTTP status, model echo, and X-Request-Id header.
5. Add error handling: 401 = bad key, 402 = empty balance, 429/529 = retry after retry_after seconds, 503 = retry once.
6. Do not add prompt/response logging — Gantryx is zero-retention.

Return: the exact files changed and the verification command.
Configure my Claude/OpenAI client to use Gantryx.

Base URL: https://api.gantryx.ai
Anthropic path: /v1/messages · OpenAI path: /v1/chat/completions
API key: sk-gx-REPLACE_ME (use an env var)
Default model: claude-sonnet-5-5

Steps: apply the setting for the client I name, run a one-line test request, show the status and X-Request-Id, and list the changed settings. No prompt logging.
works with Claude CodeCursorCodexOpenCodeCline
REFERENCE / WHAT THE AGENT WILL USE

Same facts, in a table.

Anthropic base URLhttps://api.gantryx.ai
OpenAI base URLhttps://api.gantryx.ai/v1
Auth headerAuthorization: Bearer sk-gx-…
Default modelclaude-sonnet-5-5
All modelsclaude-haiku-5-5 · claude-sonnet-5-5 · claude-opus-5-5 · claude-fable-5-1 · claude-fable-5-2
NOTES / AFTER THE AGENT RUNS
A-01

Check the test call

You should see HTTP 200 and a request id. A 401 means the key is not exported where the client runs.

A-02

Any listed model works

Ids from /v1/models are all callable. Standard models 2%, Fable 3%.

A-03

Zero retention

No prompt or response logging, so the agent does not need a logging layer. Only billing metadata is kept.

A-04

If it gets stuck

Use the manual docs instead, or paste the error plus X-Request-Id in Telegram.