How do I use the Wiozen API with Claude Code?
Point Claude Code to Wiozen with four environment variables.
In short: Set ANTHROPIC_BASE_URL to https://api.wiozen.com, ANTHROPIC_AUTH_TOKEN to your Wiozen key, and both ANTHROPIC_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL to wiozen-coder, then run the claude command.
Requirements
- A Wiozen API key (
sk-gw-…). Sign-up is free; new accounts get trial credit. - An installed Claude Code (terminal agent).
Steps
- In your terminal, set the four variables below (add them to your shell profile to make them persistent).
- Run the
claudecommand. - The model is
wiozen-coder; Claude Code currently works only with this model.
terminal
export ANTHROPIC_BASE_URL=https://api.wiozen.com export ANTHROPIC_AUTH_TOKEN=sk-gw-YOUR_KEY export ANTHROPIC_MODEL=wiozen-coder export ANTHROPIC_DEFAULT_HAIKU_MODEL=wiozen-coder
Things to know
- In Windows PowerShell, use $env:ANTHROPIC_BASE_URL = "…" instead of export.
Which model name should I enter?
Only the names on the models page are accepted. Prices per 1 million tokens are listed there too. Any other model name returns 400.
Related guides
- How do you run Claude Code with a different API address and key?
- How much does a Claude Code session cost with an API key?
- Can you use Claude Code without a subscription and pay only for what you use?
- My AI API returns "401 Invalid API key": why isn't my key accepted?
- Why does my AI API return a 429 error, and how do I fix it?
Other guides: Cline · Roo Code · Kilo Code · Cursor · Continue · Hermes Agent · OpenCode · Aider · Qwen Code · Open WebUI · LibreChat · AI Engine