Bridge by Wekoya / Docs / Coding agents
Claude Code
Updated
Claude Code runs on Bridge, paid from your naira balance, with Claude or any other Bridge model that can call tools. Bridge answers Anthropic's Messages API at POST /v1/messages, which is what Claude Code speaks, so nothing else needs installing. Point it at Bridge with two settings, choose its model with a third, and start it as usual.
macOS and Linux. The address has no /v1 on the end: Claude Code adds /v1/messages itself.
export ANTHROPIC_BASE_URL=https://wekoya-api.wekoya.tech
export ANTHROPIC_AUTH_TOKEN=wk_live_...
export ANTHROPIC_MODEL=claude-sonnet-5-5
claudeWindows (PowerShell).
$env:ANTHROPIC_BASE_URL = "https://wekoya-api.wekoya.tech"
$env:ANTHROPIC_AUTH_TOKEN = "wk_live_..."
$env:ANTHROPIC_MODEL = "claude-sonnet-5-5"
claudeFor every session. Put the same settings in ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json). Keep the key out of a project's own .claude/settings.json: that file is shared with everyone who clones the repository.
{
"env": {
"ANTHROPIC_BASE_URL": "https://wekoya-api.wekoya.tech",
"ANTHROPIC_AUTH_TOKEN": "wk_live_...",
"ANTHROPIC_MODEL": "claude-sonnet-5-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5"
}
}Choosing the model
- Left alone, Claude Code starts on
claude-opus-5-5, the most capable Claude model and the most expensive.ANTHROPIC_MODELpicks another:claude-sonnet-5-5for everyday work,claude-haiku-5-5for quick jobs. Switch during a session with/model. - Claude Code also uses a small model for background work such as titles and summaries.
ANTHROPIC_DEFAULT_HAIKU_MODELsets it. - Any Bridge model with tool calling works, not only Claude:
ANTHROPIC_MODEL=deepseek-v4.1-flashcosts a fraction of Claude's price. For a model Claude Code does not know, it assumes a 1,000,000-token context window; if the model's is smaller (see the models page), setCLAUDE_CODE_MAX_CONTEXT_TOKENSto it so Claude Code compacts in time. - To see Bridge's Claude models in the
/modelpicker, also setCLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1.
What it costs
Every Claude Code request carries its own instructions and tool list, about 17,000 tokens. The first request of a session pays for them in full; after that they are read from the prompt cache at about a tenth of the input price, so a long session costs far less per step than its first one. The model you choose makes the biggest difference: see each model's price on the models page.
What works, and what does not
- Reading and editing files, running commands, subagents, pictures, thinking, web search and web fetch. Web search runs on Bridge's search and is billed per search, like
POST /v1/search. ANTHROPIC_API_KEYworks too (Claude Code sends it asx-api-key), but Claude Code asks you once before using it.ANTHROPIC_AUTH_TOKENtakes effect straight away.- When your balance runs low, Claude Code shows the reason: "API Error: 402 Your balance is too low…". Top up and carry on; the session is kept.
- Features tied to a claude.ai subscription, such as Remote Control, are not available through Bridge. Nor are Anthropic's code execution tool and MCP servers sent inside a request; add MCP servers to Claude Code itself instead.
Anthropic's SDKs
The same endpoint works with Anthropic's own SDKs: set the base URL to Bridge and use your Bridge key. Text, streaming, tools, pictures, PDFs and thinking all work. Nothing is stored, and errors come back in Anthropic's format, with Bridge's message.
from anthropic import Anthropic
client = Anthropic(base_url="https://wekoya-api.wekoya.tech", api_key="wk_live_...")
message = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a one-line welcome for a Lagos bakery."}],
)
print(message.content[0].text)More: Claude Code with Bridge, Claude Code with DeepSeek and other models, the ways to pay for Claude Code in Nigeria and Claude Code vs Codex.