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 ★
- Klaatcode — Open-source AI coding agent for the terminal 357 ★
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
Claude Token Optimizer
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%. Detects missing
Furl Ctx
Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python
Pmc Engine
Predictive Minimal Context — cut AI coding token costs by 40-80% via AST-based surgical context compression. W
Distil
Measure what context compression actually costs an LLM agent: where a session's tokens go, and whether a rewri
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/
AI Cost Optimizer
Audits an LLM application or AI agent for token cost and rate-limit risk, using its usage logs and code, and r