How to avoid unexpected OpenRouter costs in OpenClaw automation

A developer team shared their experience of accidentally spending $750 in three days while running automation pipelines on OpenClaw with OpenRouter. The cost came from 25 automatic OpenRouter reloads at $28.96 each, plus $25 on X API.
What went wrong
The team built an automation pipeline from March 12-14 that included sports picks generation, video production, QA, and distribution. Cron jobs ran on schedule with subagents spawning for each task. Everything defaulted to Claude Sonnet 4.6 at $3 per million tokens without their knowledge. One 6-minute cron job for sports picks with web searches burned approximately $120 in a single run.
The fix: 97% cost reduction
With configuration changes, the same workload now costs an estimated $15-20. Here are the specific changes they made:
- Changed the default model: In openclaw.json, they swapped the expensive default for Hunter Alpha (free on OpenRouter):
"agents": { "defaults": { "models": { "default": "openrouter/hunter-alpha", "fast": "openrouter/hunter-alpha", "thinking": "openrouter/openrouter/hunter-alpha" } } } - Locked cron jobs to a cheap model: Cron jobs inherit whatever the default is. Override them explicitly with:
Do this for every cron job.openclaw cron edit--model "openrouter/hunter-alpha" - Locked subagent spawns: Subagents also inherit defaults. When spawning, specify the model:
sessions_spawn(..., model="openrouter/hunter-alpha") - Reserved expensive models for sensitive work: They kept Claude 3.5 Haiku ($0.25/M) for anything involving credentials or personal data due to Anthropic's privacy policy (no prompt logging). They use Gemini 2.5 Flash ($0.15/M) when they need more complex reasoning. Sonnet is effectively retired from their setup unless explicitly called.
Lessons learned
- Check your default model immediately. If it's a premium model, every session, cron, and subagent is burning money.
- Cron jobs are sneaky - they run silently on schedule and can cost $100+ per run without notice.
- Subagent spawns inherit defaults. If your main session is on Sonnet and you spawn 10 subagents, all 10 are on Sonnet unless specified otherwise.
- Hunter Alpha is free but NOT private - all prompts are logged. Don't use it for financial data, credentials, or anything sensitive.
- Expensive models are worth it as opt-ins, not defaults. Sonnet should not be running your cron jobs at 3 AM.
- Watch your email - those $28.96 OpenRouter reloads add up fast.
The bottom line: OpenClaw is powerful but doesn't hand-hold on costs. A few config lines can be the difference between a $15 automation pipeline and a $750 surprise.
📖 Read the full source: r/openclaw
👀 See Also

Accessing USB Webcams in WSL2 for Local Motion Detection
A developer shares how to use usbipd-win to pass USB webcams from Windows to WSL2, enabling local motion detection with OpenCV without cloud dependencies.

Guide: Deploying OpenClaw with llama.cpp on GEEKOM IT15 Mini PC
A technical walkthrough details switching OpenClaw from Ollama to llama.cpp to run a local Qwen3-8B model with Intel Arc GPU acceleration, covering configuration changes, manual server management, and troubleshooting common pitfalls.

Treating OpenClaw Subagents as Stateless Functions Instead of Persistent Team Members
A developer shares their experience shifting from treating OpenClaw subagents as persistent team members with personalities to viewing them as stateless function calls with specialized purposes.

OpenClaw Project Operating System: Multi-Project Management Framework
A framework that isolates projects with standardized directories, uses cron for automation instead of agents for predictable tasks, and implements mandatory backup protocols to reduce token usage and improve execution consistency.