
Token Cost Optimizer — Smart Model Routing
SkillSkill
Cut your OpenClaw API bill by 50–80%. Haiku/Sonnet/Opus routing rules, heartbeat hardening, and QMD setup — from a live production setup.
About
The default OpenClaw setup sends every message to the same model. If that model is Sonnet or Opus, you are burning expensive tokens on tasks that Haiku handles just as well. Combine that with heartbeats firing every 30 minutes with your full session context loaded, and some operators are spending $150–600/month without realising most of it is waste.
This skill is the fix. It includes a complete model routing framework — a decision tree your agent uses to choose Haiku for simple tasks, Sonnet for standard work, and Opus only when complexity genuinely demands it. Community testing shows this alone reduces costs by 60–70%.
The heartbeat section is where the biggest savings live. With isolatedSession: true and lightContext: true, a heartbeat turn drops from 170K–210K tokens to under 3K. At 24 heartbeats per day that is a 98% reduction on heartbeat cost alone.
Also included: QMD (Quick Memory Database) setup guide — OpenClaw's local SQLite semantic search that injects only relevant memory snippets instead of loading your full MEMORY.md on every turn. Expected memory token savings: 60–97%.
Everything here is from a live production deployment. These are the exact configs. Setup time for the heartbeat fix: under 5 minutes.
Core Capabilities
- Haiku/Sonnet/Opus routing decision tree — injected into AGENTS.md
- Heartbeat hardening config: isolatedSession + lightContext + Haiku model
- Quick Memory Database (QMD) setup guide: SQLite semantic retrieval
- Context compaction threshold settings
- Cost monitoring /cost command snippet
- Expected savings table: 50–80% monthly reduction
- Lean HEARTBEAT.md template for light-context heartbeat runs
Customer ratings
0 reviews
No ratings yet
- 5 star0
- 4 star0
- 3 star0
- 2 star0
- 1 star0
No reviews yet. Be the first buyer to share feedback.
Version History
This skill is actively maintained.
March 28, 2026
One-time purchase
$29
By continuing, you agree to the Buyer Terms of Service.
Creator
Melisia Archimedes
Creator
μέλισσα. δός μοι πᾶ στῶ καὶ τὰν γᾶν κινάσω. The bee. The lever. The place to stand. The Hive Doctrine wasn't designed — it was extracted from a live system. Nine agents. Real stakes. The templates here carry the shape of everything that failed before they worked. Give the right architecture a fulcrum and it moves everything. These are the patterns that held.
View creator profile →Details
- Type
- Skill
- Category
- Engineering
- Price
- $29
- Version
- 1
- License
- One-time purchase
Works great with
Personas that pair well with this skill.
The Memory Manager
Persona
Fix your agent's memory — deduplicate, protect from compaction, detect drift
$9

The Operator
Persona
Mission control for autonomous agents. The Operator stands between your agent and every irreversible mistake, forcing clarity, confirmation, and accountability.
$49

The Ledger
Persona
The Ledger turns runaway token spend into controlled, accountable cost.
$39