OmniCoder docs
Everything you need to point a client at OmniCoder: set the base URL, drop in your key, and call the API. If you already have a key, this takes about a minute.
Prerequisites
An OmniCoder API key
Starts with sk-omnicod… — issued by your admin/reseller, or create one in your dashboard.
A supported client
Claude Code, VS Code, Cursor, Windsurf, Cline, Roo Code, or any OpenAI/Anthropic SDK.
No SDK changes
You point an existing client at a base URL. Nothing to install on your machine.
Base URLs & authentication
All proxy endpoints authenticate with your key via the Authorization header. Anthropic-style clients use the bare host; OpenAI-style clients add /v1.
Anthropic base
https://api.omnicoder.liveOpenAI base
https://api.omnicoder.live/v1Every request sends your key as a Bearer token:
Authorization: Bearer sk-omnicod…Configure a client
Pick your client below. Replace the sk-omnicod… placeholder with your key.
Claude Code & VS Code
Point the CLI (or the VS Code Claude extension) at OmniCoder and every model in the lineup becomes selectable from one session.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-omnicod…",
"ANTHROPIC_BASE_URL": "https://api.omnicoder.live",
"ANTHROPIC_MODEL": "claude-opus-5.5",
"ANTHROPIC_SMALL_FAST_MODEL": "claude-fable-5",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5.5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-fable-5",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"hasCompletedOnboarding": true
}Cursor
Add an OpenAI-compatible model under Settings → Models.
https://api.omnicoder.live/v1Your OmniCoder keyclaude-opus-5.5Windsurf
Set the AI provider base URL under Settings → AI Provider.
https://api.omnicoder.live/v1Your OmniCoder keyclaude-opus-5.5Cline
Configure the Cline VS Code extension to use OmniCoder as an Anthropic provider.
{
"cline.apiProvider": "anthropic",
"cline.anthropicBaseUrl": "https://api.omnicoder.live",
"cline.apiKey": "sk-omnicod…"
}Roo Code
Configure the Roo Code VS Code extension to use OmniCoder as an Anthropic provider.
{
"roo-cline.apiProvider": "anthropic",
"roo-cline.anthropicBaseUrl": "https://api.omnicoder.live",
"roo-cline.apiKey": "sk-omnicod…"
}Any OpenAI SDK / cURL
Standard OpenAI shape. Swap in your key and base URL.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.omnicoder.live/v1",
apiKey: "sk-omnicod…",
});
const res = await client.chat.completions.create({
model: "claude-opus-5.5",
messages: [{ role: "user", content: "Hi" }],
});API reference
/v1/chat/completionsAPI keyChat completions
OpenAI-compatible chat. Set stream: true for server-sent events.
curl https://api.omnicoder.live/v1/chat/completions \
-H "Authorization: Bearer sk-omnicod…" \
-H "Content-Type: application/json" \
-d '{ "model": "claude-opus-5.5", "messages": [{ "role": "user", "content": "Hello!" }], "stream": false }'{
"id": "chatcmpl-…",
"object": "chat.completion",
"model": "claude-opus-5.5",
"choices": [
{ "index": 0, "message": { "role": "assistant", "content": "Hello!" }, "finish_reason": "stop" }
],
"usage": { "prompt_tokens": 12, "completion_tokens": 8, "total_tokens": 20 }
}Bare /chat/completions (no /v1) is also accepted.
/v1/messagesAPI keyMessages
Anthropic-compatible request and response shapes. Set stream: true for SSE.
curl https://api.omnicoder.live/v1/messages \
-H "Authorization: Bearer sk-omnicod…" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{ "model": "claude-opus-5.5", "max_tokens": 1024, "messages": [{ "role": "user", "content": "Hello!" }], "stream": false }'{
"model": "claude-opus-5.5",
"max_tokens": 1024,
"messages": [ { "role": "user", "content": "Hello!" } ],
"stream": false
}{
"id": "msg_…",
"type": "message",
"role": "assistant",
"model": "claude-opus-5.5",
"content": [ { "type": "text", "text": "Hello!" } ],
"stop_reason": "end_turn",
"usage": { "input_tokens": 12, "output_tokens": 8 }
}Streaming sends Anthropic SSE events — message_start, content_block_delta, message_stop — forwarded as they arrive.
/v1/embeddingsAPI keyEmbeddings
OpenAI-compatible embeddings. Requires the embeddings scope on the key.
curl https://api.omnicoder.live/v1/embeddings \
-H "Authorization: Bearer sk-omnicod…" \
-H "Content-Type: application/json" \
-d '{ "model": "claude-opus-5.5", "input": "Hello, world" }'Bare /embeddings (no /v1) is also accepted.
/v1/modelsAPI keyList models
Every model the key can reach, as a live list. The source of truth for available IDs.
curl https://api.omnicoder.live/v1/models -H "Authorization: Bearer sk-omnicod…"{
"object": "list",
"data": [
{ "id": "claude-opus-5.5", "object": "model", "created": 1717200000, "owned_by": "OmniCoder API" },
{ "id": "claude-opus-5", "object": "model", "created": 1717200000, "owned_by": "OmniCoder API" }
]
}/v1/keys/inspectNoneInspect a key
Self-service status: the pasted key is the credential (hashed server-side, never echoed). Per-IP throttled. Unknown keys return a uniform found: false.
curl https://api.omnicoder.live/v1/keys/inspect \
-H "Content-Type: application/json" \
-d '{ "key": "sk-omnicod…" }'{
"found": true,
"key": {
"name": "My Key",
"key_prefix": "sk-omnicod…",
"status": "active",
"product_name": "Claude Max 5X",
"rpm": 60,
"allowed_models": ["claude-opus-5.5", "claude-fable-5"],
"five_hour": { "cap": 5000000, "used": 123456, "used_pct": 2, "remaining_pct": 98, "resets_at": "…" },
"totals": { "all_time_requests": 142, "last_24h_requests": 28 }
}
}Available models
Every model below answers on the same key and the same base URL. Pass the ID exactly as written.
claude-opus-5.5Top of the lineupclaude-opus-5claude-fable-5.1claude-fable-5The live set is authoritative — GET /v1/models is the source of every available model ID.
Errors
Errors use a consistent JSON envelope.
{
"error": { "message": "…", "type": "…", "code": "…", "param": "…" }
}invalid_api_keyMissing or invalid Bearer key.insufficient_scopeThe key lacks the scope this endpoint needs (inference / models:read / embeddings).model_not_foundUse an exact model ID from /v1/models.rate_limit_exceeded5-hour token window or RPM cap reached.Troubleshooting
Connection / auth errors
Confirm the key is active and unexpired — POST /v1/keys/inspect (or the “Check a key” page) tells you in one look.
Model not found
Pass the exact ID from the models list. Display names are not accepted — only IDs.
Rate limited
The 5-hour rolling token window may be spent. Inspect the key to see how much is left and when it resets.
Cursor / Windsurf not routing
Those two are OpenAI-compatible — they need the /v1 base URL, not the bare host.
Changes not applying
Most clients read settings only at launch — restart the IDE after a config change.