Claude Code
Same terminal, a different provider.
Public
Fig. I, prompt
Set POLLIO_API_KEY in your shell, then paste this into Claude Code.
Set up Pollio as your model provider. Its API is at https://api.pollio.ai/v1 and the model is deepseek/deepseek-v4.1-flash. My key is in the POLLIO_API_KEY environment variable: never print it or write it into a file.
In ~/.claude/settings.json, set env.ANTHROPIC_BASE_URL to that URL without /v1, set ANTHROPIC_MODEL, ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL in env to the model, and set apiKeyHelper to "printenv POLLIO_API_KEY".
Back up the file first, keep my other settings, show me the change, and tell me what to restart.Fig. I, environment
Set these environment variables, then start claude. In a shell, put export before each one.
ANTHROPIC_BASE_URL=https://api.pollio.ai
ANTHROPIC_AUTH_TOKEN=pl-live-...
ANTHROPIC_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek/deepseek-v4.1-flashPrivate
Start pollio proxy on your machine, then point Claude Code at it instead.
Fig. II, prompt
Set POLLIO_API_KEY in your shell, then paste this into Claude Code.
Set up Pollio as your model provider. Its API is at http://127.0.0.1:8787/v1 and the model is deepseek/deepseek-v4.1-flash. My key is in the POLLIO_API_KEY environment variable: never print it or write it into a file.
In ~/.claude/settings.json, set env.ANTHROPIC_BASE_URL to that URL without /v1, set ANTHROPIC_MODEL, ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL in env to the model, and set apiKeyHelper to "printenv POLLIO_API_KEY".
Back up the file first, keep my other settings, show me the change, and tell me what to restart.Fig. II, environment
ANTHROPIC_BASE_URL=http://127.0.0.1:8787
ANTHROPIC_AUTH_TOKEN=pl-live-...
ANTHROPIC_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek/deepseek-v4.1-flash
ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek/deepseek-v4.1-flashBoth setups send the opus, sonnet and haiku aliases, and background tasks, to the same model. Anthropic doesn't support Claude Code with models other than Claude, so some features may not work.
Names and logos belong to their owners. No endorsement implied.