skip to content
Claude Code

Your tools

Claude Code

Your transcript, tools, and prompt caching ride through unchanged.


Against the cloud

terminal
unset ANTHROPIC_API_KEY   # Claude Code should send only the token below
export ANTHROPIC_BASE_URL=https://api.conifer.build
export ANTHROPIC_AUTH_TOKEN=$CONIFER_API_KEY
claude --model claude-haiku-4-5

ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY: the gateway takes bearer tokens only. Pin a concrete advertised Anthropic model; a named request is served as that model or refused, never silently substituted. Conifer’s own models are reachable from OpenAI-wire tools instead; see Pi, opencode, Aider & others. Wire details live in the API reference.

Against a local model

terminal
conifer serve --model <model-name>
export ANTHROPIC_BASE_URL=http://127.0.0.1:8080
export ANTHROPIC_AUTH_TOKEN=conifer   # any non-empty string on loopback
claude --model <model-name>           # name the model the door serves

Chat against a local model is solid. Claude Code’s full tool loop against local weights is still rough; for agentic work today, use the cloud recipe.