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

Practical Glossary for AI Agent Terminology (Harness, Scaffold, Agent, etc.)
A glossary from Hugging Face blog explaining common AI agent terms like Harness, Scaffold, and Agent with simple definitions and real examples.

OpenClaw v2.0 Update: Critical Pre-Update Checklist to Avoid Breaking Changes
OpenClaw's latest update introduces 12 breaking changes, a new plugin system, and 30+ security patches. This guide outlines five essential checks to perform before updating, including environment variable renaming, state directory migration, and browser automation reconfiguration.

Workaround for OpenClaw Claude Access via Claude Code CLI
A method routes OpenClaw through Claude Code CLI to maintain Claude subscription access after Anthropic blocked direct third-party harnesses. The process involves installing the CLI, setting up an OAuth token, and configuring OpenClaw to use the ACP plugin.

Claude vs GPT for PhD Academic Writing: Preserving Technical Meaning in Methods Sections
A PhD candidate compares Claude and GPT for polishing computer vision / hardware co-design papers, finding Claude more reliable at preserving technical meaning and argument structure while GPT sometimes oversimplifies claims.