# How to use Claude Code with DeepSeek and other models

URL: https://bridge.wekoya.tech/guides/claude-code-with-deepseek
Updated: 2026-12-02

**In short:** Point Claude Code at Bridge with `ANTHROPIC_BASE_URL=https://wekoya-api.wekoya.tech` and your Bridge key, then set `ANTHROPIC_MODEL` to any Bridge model with tool calling, such as `deepseek-v4.1-flash`, `gpt-5.6-terra`, `gemini-3.8-flash` or `kimi-k3.1`. Claude Code works as usual, billed in naira at that model's price.

## 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. Set these, then start Claude Code:

```bash
export ANTHROPIC_BASE_URL=https://wekoya-api.wekoya.tech
export ANTHROPIC_AUTH_TOKEN=wk_live_...
export ANTHROPIC_MODEL=deepseek-v4.1-flash
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4.1-flash
claude
```

`ANTHROPIC_MODEL` is the main model. `ANTHROPIC_DEFAULT_HAIKU_MODEL` is the one Claude Code uses for background work such as titles and summaries, and `CLAUDE_CODE_SUBAGENT_MODEL` sets the model for subagents. On Windows, set each in PowerShell as `$env:NAME = "value"`. Switch models during a session with `/model deepseek-v4.1-flash`.

## Tell Claude Code the context window

For a model it does not know, Claude Code assumes a context window of 1,000,000 tokens. If the model's window is smaller (it is on each model's page on the [models page](https://bridge.wekoya.tech/models)), set `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to it, so Claude Code compacts the conversation before it stops fitting. For example, `kimi-k2.6` takes 262,144 tokens.

## What they cost

| Model | Input / 1M | Output / 1M | Context |
| --- | --- | --- | --- |
| [DeepSeek V4.1 Flash 1017](https://bridge.wekoya.tech/models/deepseek-v4-1-flash) | ₦182 | ₦547 | 1,048,576 |
| [GLM-5.3-Flash](https://bridge.wekoya.tech/models/glm-5-3-flash) | ₦279 | ₦930 | 1,048,576 |
| [Gemini 3.8 Flash](https://bridge.wekoya.tech/models/gemini-3-8-flash) | ₦1,180 | ₦5,899 | 1,048,576 |
| [Kimi K3.1 Pro Highspeed](https://bridge.wekoya.tech/models/kimi-k3-1) | ₦7,436 | ₦37,180 | 1,048,576 |
| [GPT-5.6 Terra](https://bridge.wekoya.tech/models/gpt-5-6-terra) | ₦3,461 | ₦20,764 | 1,050,000 |
| [Claude Sonnet 5.5](https://bridge.wekoya.tech/models/claude-sonnet-5-5) | ₦3,146 | ₦15,730 | 1,000,000 |

In our test on 2 December 2026, DeepSeek V4.1 Flash in Claude Code read a file, fixed a bug and ran a check in five requests for ₦2.59. A similar task on Claude Opus 5.5 cost ₦231.

## What to expect

- Claude Code's instructions and tools were written for Claude, so Claude follows them most reliably on long tasks with many steps.
- Other models with tool calling work: DeepSeek V4.1 Flash completed the test above without help.
- A good pattern: a cheaper model for routine edits and Claude Sonnet or Opus for hard problems, switching with `/model`.
- Before moving a team over, try the cheaper model on a few of your own tasks: see [test a cheaper model](https://bridge.wekoya.tech/guides/test-cheaper-ai-model).

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

## Common questions

**Can Claude Code use DeepSeek?**

Yes, through Bridge. Set ANTHROPIC_BASE_URL to https://wekoya-api.wekoya.tech, ANTHROPIC_AUTH_TOKEN to your Bridge key and ANTHROPIC_MODEL to deepseek-v4.1-flash.

**Can Claude Code use GPT or Gemini models?**

Yes, through Bridge: set ANTHROPIC_MODEL to a GPT or Gemini model ID such as gpt-5.6-terra or gemini-3.8-flash. Any Bridge model with tool calling works.

**What is the cheapest model for Claude Code?**

Among the models on this page, deepseek-v4.1-flash and glm-5.3-flash cost the least per token; see the table above for today's naira prices. Try a cheaper model on a few of your own tasks before relying on it.

**Why does Claude Code say a model is unrecognised?**

Claude Code prints that for models it does not know, then carries on. Set CLAUDE_CODE_MAX_CONTEXT_TOKENS to the model's context window so it compacts in time.

## Read next

- [Claude Code with Bridge: setup](https://bridge.wekoya.tech/guides/claude-code)
- [DeepSeek API in naira](https://bridge.wekoya.tech/guides/deepseek-api-in-naira)
- [Cheapest AI API in Nigeria](https://bridge.wekoya.tech/guides/cheapest-ai-api-nigeria)
