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

Revise: AI Editor Built with Agentic Coding Tools and Y.js CRDT
Revise is an AI editor for documents built from scratch over 10 months using agentic coding tools, with a custom word processor engine and rendering layer that only uses Y.js for the CRDT stack. It integrates multiple AI models including GPT-5.4 variants and Claude models for proofreading and revision.

PageAgent: Browser AI Agent That Runs Inside Web Pages with Ollama Support
PageAgent is a JavaScript library that runs AI agents directly inside web pages, reading live DOM as text instead of using screenshots. It works with any OpenAI-compatible endpoint including Ollama, enabling local LLM calls directly from the browser.

ReRouted: macOS Menu Bar App to Auto-Fallback Across Claude, Codex, Grok, and More
ReRouted is a lightweight macOS menu bar app that acts as a local gateway. Point your AI tools to one endpoint; it routes and auto-fallbacks across your accounts when providers hit limits.

Code-Graph-MCP: Open Source MCP Server Reduces Claude Code Token Usage by 40-60%
code-graph-mcp is an MCP server that indexes codebases into an AST knowledge graph, replacing multiple grep/read calls with single structured queries. The developer reports 40-60% total session token savings and 80% fewer tool calls per navigation task.