Claude Code
Use every Claude model in the Claude Code CLI.
Claude Code talks to the Anthropic Messages API, which evolved.to serves natively. Two environment variables are all it takes.
Configure
Install Claude Code
npm install -g @anthropic-ai/claude-codePoint it at evolved.to
Set the base URL and pass your key as the auth token.
ANTHROPIC_MODELis optional and sets the default model.terminal export ANTHROPIC_BASE_URL="https://api.evolved.to" export ANTHROPIC_AUTH_TOKEN="$EVOLVED_API_KEY" export ANTHROPIC_MODEL="claude-opus-5" claudeCheck the connection
Inside Claude Code, run
/status. It should showhttps://api.evolved.toas the API base URL.
Choose a model
Switch models at any time. Every Claude model on your key is available:
# inside a running session
/model claude-fable-5-2
# default model for every new session
export ANTHROPIC_MODEL="claude-sonnet-5"
# model used for quick background tasks
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-4.5"See every ID on the Claude models page.
Make it permanent
Rather than exporting variables in every shell, add them to Claude Code's user settings file. They apply to every project and to the IDE extensions.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.evolved.to",
"ANTHROPIC_AUTH_TOKEN": "your_key_here",
"ANTHROPIC_MODEL": "claude-opus-5"
}
}See your credit in Claude Code
/cost shows what the current session used. To keep your credit left in view, add a status line: it asks evolved.to at most once a minute and shows a line such as Evolved · $187.60 left of $200.00 under the prompt.
{
"statusLine": {
"type": "command",
"command": "f=\"$HOME/.claude/evolved-usage.txt\"; [ -n \"$(find \"$f\" -mmin -1 2>/dev/null)\" ] || curl -s -m 3 https://api.evolved.to/v1/usage/line -H \"x-api-key: $ANTHROPIC_AUTH_TOKEN\" > \"$f\"; cat \"$f\""
}
}On Windows, Claude Code runs the command in Git Bash. If your key lives in EVOLVED_API_KEY rather than in settings.json, use that variable instead of $ANTHROPIC_AUTH_TOKEN.
Make your credit last
The same work for a fraction of the credit:
Pick the model for the job
Sonnet for everyday coding, Opus or Fable for the hard problems, Haiku for quick edits. Switch with/modelwhenever the task changes.Let the lightest model do the background work
Claude Code writes titles and summaries on the side. SetANTHROPIC_DEFAULT_HAIKU_MODELtoclaude-haiku-4.5, andDISABLE_NON_ESSENTIAL_MODEL_CALLSto1to skip the extras.Keep sessions short
Every message sends the conversation so far. Run/compactwhen a session gets long, and/clearbefore a new task.Keep CLAUDE.md lean
It is read with every request: a short file of what matters costs less than a long one.Point at the files
Name the files to change instead of asking Claude to search the whole project.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.evolved.to",
"ANTHROPIC_AUTH_TOKEN": "your_key_here",
"ANTHROPIC_MODEL": "claude-sonnet-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4.5",
"DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1"
}
}Common problems
“claude is not recognized” or “command not found”
Claude Code isn't installed yet, or the window was opened before it was. Install Node.js (the LTS version) from nodejs.org, run the install command, then close PowerShell or Terminal and open it again. Both checks should answer with a version number:
terminal npm install -g @anthropic-ai/claude-code node -v claude --versionIf
npmornodeisn't recognized either, Node.js isn't installed. In the new window, set the two variables again and runclaude.“running scripts is disabled on this system” (Windows)
PowerShell blocks scripts by default, and
npmandclaudestart as scripts. Allow them for your user once (typeYif asked), then run the install again:PowerShell Set-ExecutionPolicy -Scope CurrentUser RemoteSignedRather not change it? Use
npm.cmdandclaude.cmdinstead ofnpmandclaude.settings.json still says your_key_here
your_key_hereis only a placeholder: put your own whole key between the quotes, with no spaces.settings.json seems to be ignored
It must be at
C:\Users\<you>\.claude\settings.jsonon Windows (open it withnotepad $HOME\.claude\settings.json) or~/.claude/settings.jsonon macOS and Linux. If the file already has settings, add theenvblock inside the same{ }instead of pasting a second one, and leave no comma after the last line. Then close Claude Code completely and runclaudeagain.It asks you to log in
Claude Code isn't reading our settings. Run
/logoutinside Claude Code, set the variables in the same window (or in settings.json) and start it again. An oldANTHROPIC_API_KEYon your computer can take over too: remove it, or set it to your Evolved key as well.401 or “invalid API key”
The key was copied with a part missing or a space, or the base URL isn't exactly
https://api.evolved.to(no/v1). If/statusshows another URL, the variables weren't picked up. Your key is shown once in Orders.