NexKit AI · Claude Code
Claude Code, on the model you choose
Claude Code speaks the Anthropic Messages API. NexKit serves that surface and translates it both ways — tool_use and tool_result blocks included, which is what lets it read a file, edit it and run a command rather than only describe one.
What Claude Code needs.
This is the block the smoke test itself writes — the one that drove a real Claude Code against a real provider. Replace the key with the one you mint, and the model id with any from the catalogue.
export ANTHROPIC_BASE_URL="https://api.nexkit.uk"
export ANTHROPIC_API_KEY="nk_live_YOUR_KEY"
export ANTHROPIC_MODEL="deepseek-v4-flash"ANTHROPIC_BASE_URL takes no /v1 suffix. Claude Code appends its own path, so adding one produces /v1/v1/messages — a 404 that reads exactly like the gateway being down. This is the single most common mistake on this path.
One id, and the client never knows.
Everything else stays exactly as it is. Moving Claude Code from DeepSeek to Qwen is a one-line edit — provided you have attached a credential for the provider that owns the id.
| To run on | Set the model to | You need |
|---|---|---|
| DeepSeek | deepseek-v4-flash | A DeepSeek key, attached to your account |
| Alibaba Model Studio (Qwen) | qwen3.8-max | An Alibaba Model Studio key, attached to your account |
A key on its own reaches nothing. NexKit never fronts the tokens, so until a provider credential is attached, GET /v1/models answers 200 with an empty list and a request answers 412 · byok_missing. Both are correct answers rather than faults.
Prove the chain with curl first.
If this works and the client does not, the problem is in the client's configuration rather than in your key, your credential or the gateway — which is most of the debugging done in one command.
curl https://api.nexkit.uk/v1/chat/completions \
-H "Authorization: Bearer nk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Say NEXKIT"}]}'The base URL is https://api.nexkit.uk for every surface and every provider. There is one host to allow through a proxy, and one key to rotate.
Run Claude Code on your own provider account.
Create a key, attach DeepSeek or Qwen, and paste the block above. The step-by-step version, with the errors this path actually produces, is in the Claude Code guide.