Claude Code
Claude Code, pointed at Europe.
Two env vars, no patches, no fork. The same `claude` you already use, running on European infrastructure.
export ANTHROPIC_BASE_URL=https://api.melious.ai
export ANTHROPIC_AUTH_TOKEN=sk-mel-<YOUR_API_KEY>
export ANTHROPIC_API_KEY=""
claudeWhat is Claude Code?
Claude Code is Anthropic's official terminal coding agent. A single claude command that reads files, makes edits, runs tools, and holds session context across turns. Distinguished by how hard it pushes on exploration: slash commands, long tool chains, thorough summaries. That thoroughness costs tokens, but it's the right pick when you want Claude Code's specific behavior.
How to use Claude Code with Melious?
-
Install Claude Code
Run Anthropic's official installer. Native script, Homebrew, WinGet, or npm all work; the install command depends on your platform.
Shell# macOS / Linux / WSL curl -fsSL https://claude.ai/install.sh | bash # Windows PowerShell irm https://claude.ai/install.ps1 | iex # Or a package manager brew install --cask claude-code winget install Anthropic.ClaudeCode npm install -g @anthropic-ai/claude-code -
Point it at Melious
Set
ANTHROPIC_BASE_URLandANTHROPIC_AUTH_TOKEN. BlankANTHROPIC_API_KEYso the SDK doesn't fall back to direct Anthropic when an old key is in your shell. The base URL has no/v1, the SDK appends its own version prefix. Pin each slot to a specific Melious model so background calls don't reach for hard-coded Anthropic names. Pick model IDs from the [model hub](https://melious.ai/hub/models). For a repo-checkable config, drop the same values into.claude/settings.local.json.Shellexport ANTHROPIC_BASE_URL=https://api.melious.ai export ANTHROPIC_AUTH_TOKEN=sk-mel-<YOUR_API_KEY> export ANTHROPIC_API_KEY="" # Pin each slot to a Melious model — IDs from melious.ai/hub/models export ANTHROPIC_DEFAULT_OPUS_MODEL=<MODEL_ID> export ANTHROPIC_DEFAULT_SONNET_MODEL=<MODEL_ID> export ANTHROPIC_DEFAULT_HAIKU_MODEL=<LIGHTWEIGHT_MODEL_ID> export ANTHROPIC_SMALL_FAST_MODEL=<LIGHTWEIGHT_MODEL_ID> -
Run sessions as usual
Everything Claude Code normally does still works. Slash commands, agent mode, file edits, tool calls. The response carries the original
claude-*model name back so the client's internal checks don't trip, even though an open-weight model ran the inference.Shellclaude
Three steps from here.
Grab a Melious key. Pick your tool. Follow the guide. Same client, now answering from Europe.