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

OpenClaw setup for human-in-the-loop browser automation with Docker, Chromium, and noVNC
A developer shares their Docker container setup that enables OpenClaw to handle CAPTCHAs and approvals mid-run by using Chromium with noVNC for remote access, requiring ~300MB RAM and 3-second cold starts.

Debugging OpenClaw + Ollama Local Model Timeouts: Five Fixes for Silent Failures
A developer identified five root causes for OpenClaw agents silently timing out with local Ollama models like Gemma 4 26B, including a blocking slug generator, a 38K character system prompt, and hidden timeouts. The fixes involve disabling hooks, modifying configs, and adjusting Ollama settings.

Replacing OpenClaw's Default Memory with Redis and Qdrant for Production Multi-Agent Systems
A developer replaced OpenClaw's default SQLite memory with Redis for ephemeral state and Qdrant for persistent vector memory to solve scaling issues in multi-agent setups, implementing semantic search, cross-agent sharing, and concurrent writes.

How 40 Prompt Revisions Turned Claude AI Summaries Into a Product: A Tutoring Platform Case Study ($19K MRR)
A tutoring platform with $19K MRR iterated their Claude-generated session summary prompt 40+ times over 12 months. The journey from vague v1 to personalized v40 shows how prompt engineering transforms a feature into a product.