Skip to main content
Claude Code speaks the Anthropic Messages API. You can route it to Deepshi using Deepshi’s Anthropic-compatible endpoint, so the same agentic coding workflow runs on models served by Deepshi.

Configure

Set these environment variables before launching Claude Code:
export ANTHROPIC_BASE_URL="https://api.deepshi.ai/anthropic"
export ANTHROPIC_AUTH_TOKEN="sk-bf-..."      # your Deepshi key
export ANTHROPIC_MODEL="claude-opus-4.8"     # a Claude model from the catalogue
Then start it as usual:
claude

Choosing a model

Use a Claude-family model id from the catalogue, such as claude-opus-4.8, claude-opus-4.7, or claude-sonnet-4.6, since Claude Code expects Claude-style models.
Claude Code uses the Anthropic API surface, not the OpenAI /v1 surface documented elsewhere in these docs. Routing it through Deepshi requires Deepshi’s Anthropic-compatible endpoint.
Prefer a tool you can point at an OpenAI endpoint? See Codex CLI and Coding tools, which use the OpenAI-compatible /v1 surface directly.