Claude Code without rate limits: set ANTHROPIC_BASE_URL in 30 seconds
You're in the middle of a refactor. Claude Code has touched 12 files, tests are almost passing, and then:
Claude AI usage limit reached. Please wait before continuing.
The session is broken. You lose context. You start over.
This doesn't have to happen.
What ANTHROPIC_BASE_URL actually does
Claude Code sends every request to https://api.anthropic.com. That's the default. But there's an environment variable that overrides this:
export ANTHROPIC_BASE_URL=https://your-proxy.com
When this is set, every Claude Code request goes to your proxy instead. The proxy forwards to Anthropic using its own API key — which has higher limits, or in some cases, no rate limits at all.
The 30-second setup
# Add to your ~/.bashrc or ~/.zshrc
export ANTHROPIC_BASE_URL=https://api.simplylouie.com
export ANTHROPIC_API_KEY=your-simplylouie-key
# Reload
source ~/.zshrc
# Verify Claude Code uses it
claude --version
echo $ANTHROPIC_BASE_URL
That's it. Claude Code now routes through the proxy automatically. No other changes needed.
Why this works
SimplyLouie (simplylouie.com) is a $2/month Claude API proxy. It:
- Accepts standard Anthropic API format — no SDK changes
- Works with
claudeCLI, Claude Code, and any direct API call - Provides API keys you can set in ANTHROPIC_BASE_URL
- Costs $2/month vs $20/month for Claude Pro
# Test it directly
curl https://api.simplylouie.com/v1/messages \
-H 'x-api-key: YOUR_KEY' \
-H 'anthropic-version: 2023-06-01' \
-H 'content-type: application/json' \
-d '{
"model": "claude-opus-4-5",
"max_tokens": 100,
"messages": [{"role": "user", "content": "ping"}]
}'
Same response format as direct Anthropic. Your existing code doesn't change.
Claude Code config alternative
If you prefer not to use environment variables, Claude Code also reads from ~/.claude/config.json:
{
"apiBaseUrl": "https://api.simplylouie.com",
"apiKey": "your-simplylouie-key"
}
This is permanent across terminal sessions without needing to export anything.
For CI/CD pipelines
GitHub Actions example:
- name: Run Claude Code task
env:
ANTHROPIC_BASE_URL: https://api.simplylouie.com
ANTHROPIC_API_KEY: ${{ secrets.SIMPLYLOUIE_KEY }}
run: |
claude -p "Review this PR for security issues" --output-format json
This is cleaner than managing Anthropic API keys directly in CI — one proxy key works across all your repos.
The math
| Option | Cost | Rate limits |
|---|---|---|
| Claude Pro | $20/month | Yes — session limits |
| Anthropic API (direct) | Pay per token | Yes — RPM/TPM limits |
| SimplyLouie proxy | $2/month | Higher pooled limits |
For solo developers using Claude Code daily, the proxy approach is the lowest friction path to uninterrupted sessions.
One more thing
The env var approach also works for any tool that talks to Anthropic:
-
claudeCLI (official) - Claude Code
- LangChain (set
base_urlin AnthropicChat) - LlamaIndex
- Any direct HTTP client
All of them check for the base URL override before using the default endpoint.
Try it: simplylouie.com — 7-day free trial, $2/month after.
If you hit rate limits regularly, this is the fastest fix available.
Top comments (0)