Jump to content
CodeRelayHub

Start here

One API host serves three wire formats. Create a key, give your client the address it expects, and send a first request.

Relay hosthttps://api.coderelayhub.com

Your first API key

Sign up, open Dashboard → API keys and create one. Pay-as-you-go keys draw on your balance; monthly-plan keys draw only on their plan.

Which address goes where

ClientBase URLKey travels in
Claude Code · Claude Desktophttps://api.coderelayhub.comx-api-key: crh_…
Codex · OpenAI SDKhttps://api.coderelayhub.com/v1Authorization: Bearer crh_…
Gemini CLIhttps://api.coderelayhub.comx-goog-api-key: crh_…

Anthropic-style clients also accept the key as ANTHROPIC_AUTH_TOKEN; OpenAI-style clients take it as api_key.

A first request

Paste your key into this command; the reply comes back as an ordinary chat completion.

curl
curl --request POST https://api.coderelayhub.com/v1/chat/completions \
  --header "Authorization: Bearer crh_paste_your_key_here" --header "Content-Type: application/json" \
  --data '{"model":"gpt-6.1-sol","messages":[{"role":"user","content":"Write a haiku about merge conflicts"}]}'

Then set up your agent: Claude Code, Codex and Gemini CLI each have their own page in the menu on the left.