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

Opus 4.7 Broke 40% of Prompts; Fix Was Structuring CLAUDE.md and Skills
After Opus 4.7 degraded ~40% of prompts across 6 setups, a fractional head of AI fixed it by replacing ad-hoc prompts with structured Skill files, hierarchical CLAUDE.md, and separate memory files — reducing token usage 22% and iteration turns from 3-4 to 1-2.

Getting Started with OpenCode for Local AI Coding Agent Setup
A beginner's guide walks through setting up OpenCode as a fully local AI coding agent using ByteShape's optimized models with LM Studio, llama.cpp, or Ollama across Mac, Linux, and Windows (WSL2).

Practical Guide to Creating Claude Skills: Structure, Triggers, and Scripts
Claude Skills are instruction manuals that automate repetitive tasks, stored as folders with a SKILL.md file in ~/.claude/skills/. The guide explains YAML triggers, script integration, and multi-skill orchestration rules.

Connecting CludeCode to Webapps for Automated Interaction
Explore how CludeCode can be used to automatically interact with web applications by leveraging AI tools like browsers and scraping utilities.