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.

One base URLOpenAI + Anthropic shapesStreamed SSE5-hour rolling windowPer-key budgetsBearer auth

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.live

OpenAI base

https://api.omnicoder.live/v1

Every request sends your key as a Bearer token:

Header
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.

~/.claude/settings.json
{
  "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.

Base URLhttps://api.omnicoder.live/v1
API keyYour OmniCoder key
Modelclaude-opus-5.5

Windsurf

Set the AI provider base URL under Settings → AI Provider.

Base URLhttps://api.omnicoder.live/v1
API keyYour OmniCoder key
Modelclaude-opus-5.5

Cline

Configure the Cline VS Code extension to use OmniCoder as an Anthropic provider.

VS Code settings.json
{
  "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.

VS Code settings.json
{
  "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.

Node (OpenAI SDK)
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

POST/v1/chat/completionsAPI key

Chat completions

OpenAI-compatible chat. Set stream: true for server-sent events.

cURL
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 }'
Response
{
  "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.

POST/v1/messagesAPI key

Messages

Anthropic-compatible request and response shapes. Set stream: true for SSE.

cURL
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 }'
Request
{
  "model": "claude-opus-5.5",
  "max_tokens": 1024,
  "messages": [ { "role": "user", "content": "Hello!" } ],
  "stream": false
}
Response
{
  "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.

POST/v1/embeddingsAPI key

Embeddings

OpenAI-compatible embeddings. Requires the embeddings scope on the key.

cURL
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.

GET/v1/modelsAPI key

List models

Every model the key can reach, as a live list. The source of truth for available IDs.

cURL
curl https://api.omnicoder.live/v1/models -H "Authorization: Bearer sk-omnicod…"
Response
{
  "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" }
  ]
}
POST/v1/keys/inspectNone

Inspect 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
curl https://api.omnicoder.live/v1/keys/inspect \
  -H "Content-Type: application/json" \
  -d '{ "key": "sk-omnicod…" }'
Response
{
  "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 lineup
claude-opus-5
claude-fable-5.1
claude-fable-5

The live set is authoritative — GET /v1/models is the source of every available model ID.

Errors

Errors use a consistent JSON envelope.

Envelope
{
  "error": { "message": "…", "type": "…", "code": "…", "param": "…" }
}
401invalid_api_keyMissing or invalid Bearer key.
403insufficient_scopeThe key lacks the scope this endpoint needs (inference / models:read / embeddings).
404model_not_foundUse an exact model ID from /v1/models.
429rate_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.