# How to use Claude Code with Bridge

URL: https://bridge.wekoya.tech/guides/claude-code
Updated: 2026-12-03
Other companies' prices checked: 2026-12-02 (rechecked every 90 days)

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

## Set it up

1. [Create a free account](https://bridge.wekoya.tech/sign-up) 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](https://code.claude.com/docs/en/setup)).
5. Set these, then start Claude Code. The address has no `/v1` on the end: Claude Code adds `/v1/messages` itself.

```bash
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:

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

```json
{
  "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

- `claude-sonnet-5-5` for everyday work: about half the price of Opus.
- `claude-opus-5-5` for the hardest problems. Claude Code uses it unless you set `ANTHROPIC_MODEL`.
- `claude-haiku-5-5` for quick jobs, and for Claude Code's background work (titles, summaries), set with `ANTHROPIC_DEFAULT_HAIKU_MODEL`.
- Any other Bridge model with tool calling, such as `deepseek-v4.1-flash`, at a fraction of the price: see [Claude Code with DeepSeek and other models](https://bridge.wekoya.tech/guides/claude-code-with-deepseek).
- Switch during a session with `/model`. To see Bridge's Claude models in its picker, also set `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1`.

| Model | Input / 1M | Output / 1M | Context |
| --- | --- | --- | --- |
| [Claude Opus 5.5](https://bridge.wekoya.tech/models/claude-opus-5-5) | ₦6,292 | ₦31,460 | 1,000,000 |
| [Claude Sonnet 5.5](https://bridge.wekoya.tech/models/claude-sonnet-5-5) | ₦3,146 | ₦15,730 | 1,000,000 |
| [Claude Haiku 5.5](https://bridge.wekoya.tech/models/claude-haiku-5-5) | ₦157 | ₦787 | 1,000,000 |
| [DeepSeek V4.1 Flash 1017](https://bridge.wekoya.tech/models/deepseek-v4-1-flash) | ₦182 | ₦547 | 1,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](https://bridge.wekoya.tech/docs/prompt-caching) 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

- Reading and editing files, running commands, subagents, pictures, thinking, web search and web fetch.
- Web search runs on [Bridge's search](https://bridge.wekoya.tech/docs/search) and is billed per search.
- Not available: features tied to a claude.ai subscription, such as Remote Control, and Anthropic's code execution tool.

## If something goes wrong

| Claude Code says | What it means | What to do |
| --- | --- | --- |
| 404 or not found | The address points somewhere other than the API | Set ANTHROPIC_BASE_URL to https://wekoya-api.wekoya.tech, not the website's address |
| 401 invalid credentials | The key is wrong, cut short or revoked | Copy the whole key again from API keys in the console |
| 402 Your balance is too low | The balance cannot cover the next request | Top up by bank transfer, then carry on; the session is kept |
| prompt is too long | The conversation no longer fits the model | Claude 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](https://bridge.wekoya.tech/guides/codex-cli) has the block to paste, and [Claude Code vs Codex](https://bridge.wekoya.tech/guides/claude-code-vs-codex) helps you choose between them.

[Create a free account](https://bridge.wekoya.tech/sign-up)

## 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

- [Codex with Bridge: setup](https://bridge.wekoya.tech/guides/codex-cli)
- [Claude Code in Nigeria: the ways to pay](https://bridge.wekoya.tech/guides/claude-code-in-nigeria)
- [Claude Code with DeepSeek and other models](https://bridge.wekoya.tech/guides/claude-code-with-deepseek)
- [Claude Code vs Codex](https://bridge.wekoya.tech/guides/claude-code-vs-codex)
- [Claude Code in the docs](https://bridge.wekoya.tech/docs/claude-code)
- [Every coding agent on Bridge](https://bridge.wekoya.tech/docs/coding-agents)
