Claude Code is Anthropic's coding agent for the terminal. It reads a few environment variables that let you send its requests to any Anthropic-compatible endpoint, including DEVSAIO.
The three variables that matter
| Variable | Value |
|---|---|
ANTHROPIC_BASE_URL | https://devsaio.lol |
ANTHROPIC_AUTH_TOKEN | your DEVSAIO API key |
ANTHROPIC_MODEL | the main model, e.g. claude-sonnet-4-6 |
macOS / Linux
export ANTHROPIC_BASE_URL=https://devsaio.lol
export ANTHROPIC_AUTH_TOKEN=YOUR_KEY
export ANTHROPIC_MODEL=claude-sonnet-4-6
claudeAdd the export lines to ~/.zshrc or ~/.bashrc to make them permanent.
Windows (PowerShell)
$env:ANTHROPIC_BASE_URL = "https://devsaio.lol"
$env:ANTHROPIC_AUTH_TOKEN = "YOUR_KEY"
$env:ANTHROPIC_MODEL = "claude-sonnet-4-6"
claudeOr use the settings file
Claude Code also reads an env block from ~/.claude/settings.json, which keeps the setup out of your shell profile:
{
"env": {
"ANTHROPIC_BASE_URL": "https://devsaio.lol",
"ANTHROPIC_AUTH_TOKEN": "YOUR_KEY",
"ANTHROPIC_MODEL": "claude-sonnet-4-6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5"
}
}The DEFAULT_OPUS and DEFAULT_HAIKU variables control which models Claude Code uses when it switches to a bigger or smaller model for certain steps.
Check it works
Start claude in a project folder and ask something simple, like “what does this repo do?”. Then open Usage Logs in your dashboard: you should see the requests and their cost.
Keeping costs under control
Agents read a lot of files, so token use adds up. Three habits help:
- Give the key a monthly limit so a runaway session can't drain your balance.
- Use a smaller model (like
claude-haiku-4-5) for simple tasks. - Start a fresh session (
/clear) when you switch tasks; long sessions resend more context.
The integrations page generates these settings with your key filled in. More tips: a Claude Code workflow that saves tokens.
Claude, GPT, Gemini, DeepSeek, image and video models through one OpenAI- and Anthropic-compatible endpoint. Prepaid, pay only for what you use.