CLAUDE CODE INTEGRATION
ONE ENV VARZERO CODE CHANGES

Claude Code
+ RelayPlane
91% less

Point Claude Code at RelayPlane. Complex tasks get Opus. Simple ones get Sonnet. Automatically, locally, instantly.

// REAL USAGE — ONE ACCOUNT
SPENT
$499
SAVED
$5,459
91.6%
COST REDUCTION
$5,459 saved on $499 spent over 90 days
// SETUP

Three steps. Under three minutes.

1

Install the proxy

Install globally — one command, no config required to start.

$npm install -g @relayplane/proxy
2

Start the proxy

Runs on port 4100 by default. Proxies to Anthropic transparently.

$relayplane start
3

Point Claude Code at RelayPlane

Set ANTHROPIC_BASE_URL in your shell or in Claude Code settings. Your existing ANTHROPIC_API_KEY stays the same — RelayPlane forwards it to Anthropic.

$export ANTHROPIC_BASE_URL=http://localhost:4100

Or add it to your ~/.zshrc / ~/.bashrc to persist across sessions.

That's it. Claude Code now routes through RelayPlane. Run relayplane stats to see your savings.

// HOW IT WORKS

Automatic model routing

RelayPlane classifies each request before it hits Anthropic. Simple tasks go to Sonnet. Complex work stays on Opus. No config needed.

On a Max plan? This matters more for you.

Max plans have two separate rate limit pools: one for all models, one for Sonnet specifically. When RelayPlane routes a simple task to Sonnet, it draws from the Sonnet pool — leaving your Opus quota untouched for the complex work that actually needs it. The result: your plan goes further. You hit the wall less often.

API key users: routing to Sonnet directly reduces cost per request (~5x cheaper than Opus for simple tasks).

MAX PLAN($100–$200/mo flat)
API KEY(pay per token)
SIMPLE TASKS
  • File reads & edits
  • Code formatting
  • Simple Q&A
  • Grep / search
MaxSonnet
APIHaiku (~$0.001/req)
MEDIUM TASKS
  • Code generation
  • Refactoring
  • Test writing
  • Debugging
MaxSonnet
APISonnet (~$0.015/req)
COMPLEX TASKS
  • Architecture design
  • Multi-file analysis
  • Security review
  • System design
MaxOpus
APIOpus (~$0.075/req)

Circuit breaker included. If RelayPlane goes down, Claude Code talks directly to Anthropic. No downtime, no disruption. Your ANTHROPIC_API_KEY is forwarded directly — RelayPlane never stores it.

// REAL RESULTS

What Claude Code users actually save

$5,459
SAVED IN 90 DAYS
91%
COST REDUCTION
$499
TOTAL SPEND

$5,459 saved on $499 spent = 91.6% reduction. This is from a single account running Claude Code for agentic coding across a production codebase for 90 days.

FREE FOREVER · MIT LICENSE · LOCAL-FIRST

Start saving today

Free forever. No credit card. One command.