Docs
Set up in a few minutes.
codingone serves the Anthropic and OpenAI API formats on one address. If your tool lets you change the base URL, it works.
Quick start
- 01
Choose a plan
Every plan works with every tool. The plan decides the allowance and the models.
See plans - 02
Create an API key
Keys start with co-live- and are shown once, so copy the key when you create it.
Open API keys - 03
Point your tool at codingone
Use the base URL below and paste the key. The next section has the exact steps for each tool.
- Base URL for Anthropic clients
- https://gateway-10mk6n.runone.love
- Base URL for OpenAI-compatible clients
- https://gateway-10mk6n.runone.love/v1
Set up your tool
Replace co-live-... with your own key.
Claude Code speaks the Anthropic Messages API. Give it the base URL without /v1 and your key as the auth token.
Set two variables, then start Claude Code
export ANTHROPIC_BASE_URL=https://gateway-10mk6n.runone.loveexport ANTHROPIC_AUTH_TOKEN=co-live-...claudeOr keep them in Claude Code’s settings file
{ "env": { "ANTHROPIC_BASE_URL": "https://gateway-10mk6n.runone.love", "ANTHROPIC_AUTH_TOKEN": "co-live-..." }}Pick a model with /model, or start with one: claude --model claude-sonnet-5.
Endpoints
Send the key as x-api-key or as Authorization: Bearer. Both work on every endpoint.
| POST | /v1/messages | Anthropic Messages. Claude models. |
| POST | /v1/messages/count_tokens | Counts tokens. Free. |
| POST | /v1/chat/completions | OpenAI Chat Completions. Every model. |
| POST | /v1/responses | OpenAI Responses. GPT models. |
| GET | /v1/models | The models your plan includes. |
| GET | /v1/me | The account and plan behind a key. |
Response headers
Every answer carries a request ID. A refusal also says how long to wait.
| x-request-id | Identifies the request. Quote it when you write to support. |
| retry-after | Seconds until a retry can succeed. |
| x-should-retry | false when the wait is a whole usage window, so SDKs do not retry on their own. |
| x-ratelimit-remaining-5h, -week, -month | 0 on the window that is full. |
| x-ratelimit-reset-5h, -week, -month | Time until that window resets, for example 1h10m53s. |
| x-ratelimit-limit-concurrency | How many requests your plan runs at once. |
Errors
Every error is codingone’s own, whichever model you called: the same codes, the same wording, in the shape your client expects (Anthropic’s on /v1/messages, OpenAI’s elsewhere). On the OpenAI shape the code below is in error.code. When a stream fails part-way, the same error arrives as an error event.
invalid_api_key401The key is missing, mistyped or deleted.
Check it against the key in your console, or create a new one. Anthropic clients send it as x-api-key, OpenAI-compatible clients as Authorization: Bearer.
no_subscription403The key is valid but its account has no active plan.
Choose a plan. The same key works as soon as the plan is active.
wrong_base_url404The path is not one the API serves.
Anthropic clients use the base URL without /v1. OpenAI-compatible clients use it with /v1.
model_not_found404The model ID is misspelled, or the model is not in your plan.
Check the ID on the models page, or move to a plan that includes it.
invalid_request400The body is not valid JSON, names no model, or the model did not accept it. When the model gave a reason, the message ends with it.
Fix the field the message names. A model sent to the wrong endpoint is told which one it takes.
context_length_exceeded400The conversation no longer fits the model’s context window. The message starts with “prompt is too long”, which coding tools recognise.
Compact the conversation or start a new one. Most tools do this on their own.
body_too_large413The request is over the size limit, ours or the model’s.
Compact the conversation or attach fewer files.
quota_exceeded429A usage window is full. The message says which one and when it resets.
Wait for the reset, use a reset card, or move to a larger plan.
concurrency_limited429More requests are running at once than your plan allows.
Retry in a second, or run fewer agents in parallel.
rate_limited429More requests in a minute than your plan allows.
Retry after the number of seconds in retry-after.
too_many_networks403The account was used from more networks in 24 hours than a personal plan allows.
Wait for older networks to age out. If a key leaked, delete it and make a new one.
Codes that appear only in your request log
client_abortedYour tool closed the connection. What was produced up to then is counted.
stream_incompleteThe stream ended before the model finished. What was produced is counted.
curl https://gateway-10mk6n.runone.love/v1/me \ -H "Authorization: Bearer $CODINGONE_API_KEY"Still stuck?
Write to support@codingone.ai with the x-request-id of a failing request. We can look up what happened to it without seeing your prompt.
Email support