RelayPlane Open Source Proxy Shows 73% Cost Reduction with Claude Model Routing

Open Source Proxy for Claude API Routing
RelayPlane is an open source, npm-native proxy that sits in front of the Anthropic API. The tool was built using Claude Code, which accelerated development. It's free to self-host and designed to handle routing between different Claude models based on prompt complexity.
Benchmark Results and Configuration
The benchmark used a mixed workload with 60% simple tasks and 40% complex tasks. Two scenarios were compared:
- Direct (all Sonnet): p50 latency 1.55s, cost per 10 requests $0.0323
- Via RelayPlane with routing: p50 latency 0.78s, cost per 10 requests $0.0086
This represents a 73.4% cost reduction. At 10,000 requests per day, this translates to approximately $712 in monthly savings.
Routing Configuration
The routing configuration is straightforward:
{
"routing": {
"complexity": {
"enabled": true,
"simple": "claude-haiku-4-5",
"moderate": "claude-sonnet-4-6",
"complex": "claude-opus-4-6"
}
}
}The routing logic uses a complexity classifier that examines token count, code indicators, and analytical keywords. Response headers include x-relayplane-routed-model to verify which model actually processed the request.
Model Pricing and Routing Logic
The routing system directs prompts to appropriate models based on complexity:
- Simple prompts → Haiku ($0.80 per million tokens)
- Moderate prompts → Sonnet ($3 per million tokens)
- Complex prompts → Opus ($15 per million tokens)
The author notes the classifier isn't perfect but is "good enough to capture most of the savings." The full benchmark methodology is available in a Gist linked in the source material.
📖 Read the full source: r/ClaudeAI
👀 See Also

Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews
Pixel Agents is a collection of 24 task-specific AI agents built on Claude Sonnet 4.6 API, each with tuned personalities and structured JSON output. The system includes code review, site analysis, resume critique, and startup evaluation agents that provide direct feedback.

Claude Code v2.1.90 adds mouse support with CLAUDE_CODE_NO_FLICKER flag
Anthropic released Claude Code v2.1.90 with a new feature that enables mouse support in the chat interface. Users can activate it by setting the CLAUDE_CODE_NO_FLICKER=1 environment variable before running claude.
MartinLoop: Open-Source Control Plane for AI Coding Agents with Budget Stops and Audit Trails
MartinLoop is an open-source control plane that adds hard budget stops, JSONL audit trails, failure classification, and test-verified completion checks to AI coding agents.

cc-soul plugin adds persistent memory and adaptive personas to OpenClaw
The cc-soul plugin for OpenClaw provides permanent memory storage across sessions, 10 auto-switching personas, and learning from corrections. Installation requires one command with zero configuration.