What is Claude Code?
Claude Code is Anthropic's official CLI coding agent. It runs directly in your terminal and operates on your local codebase: reading files, writing code, running commands, and working through multi-step tasks autonomously. Unlike chat-based assistants, Claude Code acts as an agent that understands project structure and takes actions, not just suggestions.
Because Claude Code sends your source files and repository context to the model, data residency matters for teams building proprietary software. EUrouter sits in front of the Anthropic API and routes all traffic through European servers. Setting a single environment variable is all it takes to redirect Claude Code through EUrouter. Your prompts, file contents, and completions stay within the EU.
Quick to integrate
A few lines of code is all it takes. Swap your base URL and you are routed through EUrouter.
1# Add to your shell profile (.bashrc, .zshrc, etc.)
2export ANTHROPIC_BASE_URL="https://api.eurouter.ai"
3export ANTHROPIC_API_KEY="eur-..."
4
5# Then use Claude Code as normal
6claudeGet started in minutes
Follow these steps to connect your application to EUrouter.
Install Claude Code
Install Claude Code via npm if you haven't already.
1npm install -g @anthropic-ai/claude-codeSet the environment variables
Export ANTHROPIC_BASE_URL pointing to EUrouter and set your API key. Add these to your shell profile for persistence.
1export ANTHROPIC_BASE_URL="https://api.eurouter.ai"
2export ANTHROPIC_API_KEY="eur-..."Use Claude Code as normal
Run claude in your terminal. All requests now route through EU infrastructure automatically. No other changes needed.
1claudeWhy use Claude Code with EUrouter
One environment variable
Claude Code reads ANTHROPIC_BASE_URL on startup. Set it to EUrouter and every API call goes through EU servers. No config files to edit, no wrappers to install, no forks to maintain. One line in your shell profile and you are done.
- Set ANTHROPIC_BASE_URL once and all Claude Code sessions use EUrouter
- Works with project-level .env files for team-wide configuration
- No changes to how you use Claude Code, the experience is identical
- Compatible with all Claude Code features: file edits, terminal commands, and multi-step tasks
Source code stays in Europe
Claude Code reads your entire repository to understand context. That means your proprietary source code is sent to the model. With EUrouter, those requests go through EU-based servers, so your code never touches US infrastructure. For teams subject to GDPR, this is the difference between compliant and non-compliant AI tooling.
- Repository context, file contents, and diffs route through EU servers
- Compliant with GDPR Article 44 requirements on data transfers
- Full audit trail for every request Claude Code makes
- Useful for regulated industries where source code is considered sensitive data
Unified billing across models
EUrouter gives you one API key for all models. While Claude Code uses Anthropic's Claude by default, having a unified billing dashboard means you can track AI spending across all your tools in one place. Set spend limits per key to keep costs predictable.
- One dashboard for Claude Code usage alongside other AI tools
- Set per-key monthly spend limits to control agent costs
- Usage breakdown by model, time period, and request count
- Issue separate keys per developer for granular cost tracking