Cost Optimizer — AI skill for Claude Code
git clone https://github.com/fullstackcrew-alpha/skill-cost-optimizer Save 60-80% on AI token costs with smart model routing, context compression, heartbeat tuning, usage reports, and config generation.
How to install Cost Optimizer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open fullstackcrew-alpha/skill-cost-optimizer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cost Optimizer does
Save 60-80% on your AI token costs. Zero config required.
Alternatives in AI
- Fine Tuning — ai-research-skills Axolotl, LLaMA-Factory, PEFT, Unsloth 5.4k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
- Claudekit — by Carl Rannaberg - Impressive CLI toolkit providing auto-save checkpointing, code quality hooks, specificatio 633 ★
README
💰 Cost Optimizer
Save 60-80% on your AI token costs. Zero config required.
[](https://github.com/fullstackcrew-alpha/skill-cost-optimizer/stargazers) [](https://clawhub.ai/s/cost-optimizer) [](./openclaw.json) [](./LICENSE) [](#compatibility)
If you find this useful, please give it a star — it helps others discover it. [](https://nodejs.org)
The Problem
Running AI-powered dev tools with default settings is **shockingly expensive**:
| Metric | Default (all Opus) |
|---|---|
| Daily token usage | ~500K tokens |
| Daily cost | ~$13.50/day |
| Monthly cost | ~$405/month |
| Heartbeat alone | $50-100/month |
Most of that spend is wasted — heartbeat checks, file listings, and simple queries don't need a $27/M-token model.
The Solution
**Cost Optimizer** intelligently routes each task to the cheapest model that can handle it. With the `balanced` preset, you cut costs by **84%** — from $405/month down to ~$64/month.
Five subcommands. One skill. Massive savings.
Features
| Command | What it does |
|---|---|
/cost-route |
Classifies your prompt (P0-P4) and recommends the optimal model |
/cost-compress |
Compresses conversation context when it exceeds 50K tokens |
/cost-heartbeat |
Optimizes heartbeat interval, content, and model selection |
/cost-report |
Generates detailed cost reports with ASCII charts and trends |
/cost-config |
Generates optimized configuration with three preset tiers |
Quick Start
**Install:**
openclaw install cost-optimizer
**Use:**
# See your current spending
/cost-optimizer report
# Get a routing recommendation for your next prompt
/cost-optimizer route
# Generate optimized config (balanced preset)
/cost-optimizer config
That's it. No API keys, no setup, no config files needed.
Commands
`/cost-route` — Smart Model Routing
...
Related Skills
Smart PR Review
git clone https://github.com/fullstackcrew-alpha/skill-smart-pr-review Opinionated AI code reviewer with 6-lay
Psql AI Assisted Development
Reference implementation for AI-assisted PostgreSQL development: star-schema KPI views, incremental materialis
Furl Ctx
Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python
Claude Token Optimizer
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%. Detects missing
Distil
Measure what context compression actually costs an LLM agent: where a session's tokens go, and whether a rewri
Pixel Crew
Smart MOD for Claude Code. Picks the cheapest model (Haiku, Sonnet or Opus) for every message and subagent to
Related Agents
API Cost Scanner
Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching stra
Cost Estimator
Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/
Execution Specialist
Trade execution specialist for order management, execution algorithm selection, transaction cost analysis, and