OpenClaw Cost Optimization: How a Developer Fixed a $750 Mistake with Model Routing

What Went Wrong with the Cost Fix
After burning $750 in 3 days on OpenRouter, the developer initially "fixed" costs by swapping everything to Hunter Alpha (free on OpenRouter). This caused subagents to return zero output — silent completions where jobs showed "success" but results were empty.
A specific failure case: a video production agent wrote code that syntax-checked correctly, ran without errors, but produced a 9-second silent black video with no voiceover, no footage, and no manifest. QA eventually caught it. The lesson: free models don't always fail loudly — sometimes they quietly ship a stub and move on.
The New Model Routing Strategy
The developer stopped thinking "cheap vs expensive" and started thinking "what does this task actually need":
- Main session (orchestration): Sonnet 4.6 — "The manager. Worth the cost."
- Code/complex tasks: Gemini 2.5 Flash at $0.15/M — "Sweet spot for real output."
- Sensitive data (credentials, financials): Claude 3.5 Haiku — "Anthropic doesn't log prompts. Non-negotiable."
- Simple predictable tasks: Hunter Alpha — "Fine when failure is obvious and stakes are low."
Every cron job and subagent spawn now has an explicit model parameter — no defaults.
Security Discovery During the Audit
While investigating the model issues, the developer found credentials committed in their workspace repo — API keys and OAuth tokens. Although not pushed publicly, this was unacceptable. They added a .gitignore for credentials/ and ran git rm --cached. The warning: if you've ever committed a credentials folder, those keys remain in your git history — rotate them.
The Core Lesson
Cost optimization isn't a one-time config change. A $0.15/M model writing your production pipeline is money well spent. A free model that silently passes you a broken video is expensive no matter what it costs per token. Right-size to the job and verify output, not just exit codes.
📖 Read the full source: r/openclaw
👀 See Also

How Centralized Context Architecture with Claude Saves 10+ Hours Weekly
A Reddit user reports saving 10+ hours weekly by moving SOPs, meeting notes, and CRM into a centralized Notion workspace and connecting Claude directly to that context. Three specific workflows eliminate manual email drafting, spreadsheet entry, and content creation.

Developer Documents 11.7B Claude Tokens Usage Over 45 Days, Details Four Projects
A developer tracked 11.7 billion Claude tokens used over 45 days, detailing four projects built including a live traffic system, a mathematical consciousness model, a custom transformer architecture, and an AI coding platform analysis tool.

OpenClaw Execution Visibility Issues on Mini PC Hardware
A developer testing OpenClaw on a GEEKOM A5 Pro mini PC found that while outputs appear normal, actual execution reveals hidden issues like silent failures, retries, and performance drift under load.

OpenClaw on Synology NAS: Telegram Media Requests and Container Management
A user reports running OpenClaw on a Synology NAS alongside media stack containers like Plex, Sonarr, Radarr, and SABnzbd. They use it for Telegram-based movie requests and automated NAS troubleshooting tasks.