All clients
Claude Code
Anthropic’s terminal coding agent, pointed at bf16 instead of Anthropic.
Base URL
https://api.bf16.aiProtocol
anthropic-messagesWho this is for
Developers who want an agent that does not stop mid-task to refuse.
Commands show $BF16_API_KEY. Sign in to fill in your own key automatically.
- 1
Export your key
When signed in, your own API key is filled in automatically below.
export BF16_API_KEY=sk-bf16-v1-... - 2
Run Claude Code against bf16
Scoped to one invocation, so your normal `claude` is untouched.
ANTHROPIC_BASE_URL=https://api.bf16.ai \ ANTHROPIC_AUTH_TOKEN="$BF16_API_KEY" \ ANTHROPIC_DEFAULT_HAIKU_MODEL='deepseek/deepseek-v4.1-flash-uncensored[1m]' \ CLAUDE_CODE_SUBAGENT_MODEL='deepseek/deepseek-v4.1-flash-uncensored[1m]' \ ENABLE_TOOL_SEARCH=false \ claude --model 'zai-org/glm-5.3-uncensored[1m]'
How to know it worked
- Run /status inside Claude Code and confirm the endpoint is bf16.
- Send a one-line prompt; the request appears in your console logs within seconds.
- curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
Common errors
Symptom
404 on every request.
Cause
ANTHROPIC_BASE_URL carries a /v1. Claude Code appends the path itself.
Fix
Set it to https://api.bf16.ai with no trailing path.
Symptom
401 even with a fresh key.
Cause
An ANTHROPIC_API_KEY left over in your environment takes priority.
Fix
Unset it, or set it empty, and use ANTHROPIC_AUTH_TOKEN instead.
Symptom
Requests for a claude-* model that we do not serve.
Cause
Background and subagent calls default to Anthropic model ids.
Fix
Pin ANTHROPIC_DEFAULT_HAIKU_MODEL and CLAUDE_CODE_SUBAGENT_MODEL, as the command above does.
Symptom
403 email_not_verified.
Cause
The key belongs to an account that has not verified its email.
Fix
Verify the address from the console; the same key then works.