Bridge by Wekoya / Guides / How to use Claude Code with Bridge

How to use Claude Code with Bridge

In short: Set ANTHROPIC_BASE_URL=https://wekoya-api.wekoya.tech and ANTHROPIC_AUTH_TOKEN to your Bridge key, then run claude. Claude Code then runs on your naira balance with Claude Opus, Sonnet or Haiku, or any Bridge model that can call tools. Set ANTHROPIC_MODEL=claude-sonnet-5-5 for everyday work: the default, Opus, costs the most.

Updated · Other companies' prices checked , rechecked every 90 days

Set it up

  1. Create a free account with your email.
  2. Open Billing in the console and top up your naira balance by bank transfer to your own account number.
  3. Create a key under API keys. It starts with wk_live_ and is shown once, so keep it somewhere safe.
  4. Install Claude Code if you have not yet: curl -fsSL https://claude.ai/install.sh | bash on macOS or Linux, or irm https://claude.ai/install.ps1 | iex in Windows PowerShell (from Claude Code's setup page).
  5. Set these, then start Claude Code. 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
claude

On Windows, in PowerShell:

$env:ANTHROPIC_BASE_URL = "https://wekoya-api.wekoya.tech"
$env:ANTHROPIC_AUTH_TOKEN = "wk_live_..."
$env:ANTHROPIC_MODEL = "claude-sonnet-5-5"
claude

To keep them for every session, put the same values in the env block of ~/.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"
  }
}

If Claude Code was signed in to a Claude account before and still uses it, run /logout in Claude Code once, then start it again.

Which model to use

ModelInput / 1MOutput / 1MContext
Claude Opus 5.5₦6,292₦31,4601,000,000
Claude Sonnet 5.5₦3,146₦15,7301,000,000
Claude Haiku 5.5₦157₦7871,000,000
DeepSeek V4.1 Flash 1017₦182₦5471,048,576

What a session costs

Claude Code sends its own instructions and tool list, about 17,000 tokens, with every request. The first request of a session pays for them in full; after that they come from the prompt cache at about a tenth of the price, so each later step costs far less than the first.

In our test on 2 December 2026, Claude Code read a file, fixed a bug, wrote a test and ran it in three requests for ₦231 on Claude Opus 5.5, ₦207 of it the first request. A similar fix on DeepSeek V4.1 Flash took five requests and cost ₦2.59. Prices change; the table above is today's.

What works

If something goes wrong

Claude Code saysWhat it meansWhat to do
404 or not foundThe address points somewhere other than the APISet ANTHROPIC_BASE_URL to https://wekoya-api.wekoya.tech, not the website's address
401 invalid credentialsThe key is wrong, cut short or revokedCopy the whole key again from API keys in the console
402 Your balance is too lowThe balance cannot cover the next requestTop up by bank transfer, then carry on; the session is kept
prompt is too longThe conversation no longer fits the modelClaude Code compacts it on its own; or run /compact or /clear

Use Codex too

The same Bridge key and naira balance also run OpenAI's Codex: add Bridge as a provider in ~/.codex/config.toml, put your key in WEKOYA_API_KEY and run codex, with GPT, Claude or any model that calls tools. Codex with Bridge has the block to paste, and Claude Code vs Codex helps you choose between them.

Create a free account

Common questions

Can I use Claude Code without a Claude subscription?

Yes. With Bridge, Claude Code runs on a Bridge key and is paid per request from a naira balance, so no Claude plan is needed. Set ANTHROPIC_BASE_URL to https://wekoya-api.wekoya.tech and ANTHROPIC_AUTH_TOKEN to your Bridge key.

Can I use Claude Code without a dollar card?

Yes. Top up your Bridge balance by bank transfer to your own account number, in naira, and Claude Code is paid from it. No card is needed.

Which model should I use in Claude Code?

claude-sonnet-5-5 for everyday work, claude-haiku-5-5 for quick jobs and claude-opus-5-5 for the hardest problems. Claude Code starts on Opus, the most expensive, unless you set ANTHROPIC_MODEL.

Does Claude Code with Bridge work on Windows?

Yes. Set the same values in PowerShell with $env:ANTHROPIC_BASE_URL and $env:ANTHROPIC_AUTH_TOKEN, or in %USERPROFILE%\.claude\settings.json, then run claude.

Can I use Codex with the same Bridge key?

Yes. Codex runs on the same key and naira balance: add Bridge as a provider in ~/.codex/config.toml with base_url https://wekoya-api.wekoya.tech/v1 and wire_api responses, then run codex. The Codex guide has the full block.

Does Bridge keep my code?

No. Bridge does not store prompts or replies: it passes each request to the model and keeps only the token counts and cost for billing.

Read next