Routing Claude API traffic to control costs after Max subscription change

API billing migration and cost implications
As of noon PT, Anthropic's Max subscription no longer covers usage from third-party tools like OpenClaw. All OpenClaw users are now on API billing with these rates:
- Claude Opus 4.6: $5 per million input tokens, $25 per million output tokens
- Claude Sonnet 4.6: $3 per million input tokens, $15 per million output tokens
- Claude Haiku 4.5: $1 per million input tokens, $5 per million output tokens
A heavy OpenClaw session on Opus can cost $1-4, while the same session on Sonnet costs $0.20-0.80 with similar results for most tasks.
The routing solution
Most OpenClaw operations don't require Opus: heartbeat checks, file reads, summaries, routing decisions, and short tool calls can all be handled by Sonnet. Without a routing layer, every request hits your default model, potentially wasting Opus budget on simple tasks.
A local proxy routes Claude requests by complexity: simple tasks go to Sonnet automatically, complex ones escalate to Opus. This approach has significantly reduced costs without quality loss on important tasks.
The proxy is open source and installable via npm: npm install -g @relayplane/proxy
Detailed documentation and discussion is available on r/ClaudeCode, where the solution has received 52K views.
📖 Read the full source: r/openclaw
👀 See Also
Cocall.ai MCP: Outbound Phone Calls with Real-Time Human Escalation
Cocall.ai is an MCP for Claude that enables outbound phone calls with a full-duplex speech-to-speech model. It can pause mid-call to ask you a specific question instead of guessing, navigate IVR, and hand off calls to you when needed.

LetMeWatch: Python Plugin Adds Video Analysis to Claude via FFmpeg Scene Detection
A developer built a ~200-line Python plugin called LetMeWatch that enables Claude to analyze videos by using FFmpeg for scene detection, extracting only frames where visuals change, timestamping them, and feeding batches to Claude's multimodal vision.

PocketBot: iOS app uses Claude to generate deterministic JavaScript automations from natural language
PocketBot is an iOS mobile automation app that uses Claude via AWS Bedrock to convert plain-language requests into self-contained JavaScript scripts. The LLM writes the code once, then the deterministic scripts run on schedule in a sandboxed runtime without AI involvement.

Claudeck: Browser UI for Claude Code with Agents, Cost Tracking, and Plugin System
Claudeck is a browser-based UI that wraps the Claude Code SDK, featuring autonomous agent orchestration, cost tracking, git worktree isolation, persistent memory, and a plugin system. Install with npx claudeck@latest.