Skip to content

Cost-control toolkit that trims OpenClaw agent token spend through lazy loading, model routing, and budgets.

CCM score
54 of 100
skills.sh installs
397
GitHub stars
7
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers lazy context loading, Sonnet and Opus-aware routing, heartbeat scheduling, and local token budgets for agents
  • Includes cache-TTL guidance and command behavior that passes security audits on current OpenClaw 2026.6.x installs

Install

$ npx -y skills add asif2bd/openclaw-token-optimizer --skill token-optimizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cost-control toolkit that trims OpenClaw agent token spend through lazy loading, model routing, and budgets. Covers lazy context loading, Sonnet and Opus-aware routing, heartbeat scheduling, and local token budgets for agents. Includes cache-TTL guidance and command behavior that passes security audits on current OpenClaw 2026.6.x installs.

Browse the repository on GitHub

Details

Repository
github.com/asif2bd/openclaw-token-optimizer
Categories
Memory & Context, AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the token-optimizer skill do for OpenClaw agents?

Token Optimizer helps an OpenClaw or Hermes agent find where it may be wasting tokens and suggests a prioritized improvement plan. It covers lazy context loading, model routing, heartbeat scheduling, local token budgets and cache-TTL guidance. It reports findings and does not silently change your setup.

How do I install the token-optimizer skill?

Run npx -y skills add asif2bd/openclaw-token-optimizer --skill token-optimizer -y in a project. Once installed, the agent can check your setup and suggest the most useful improvements.

Will token-optimizer reduce my API bill automatically?

No, it does not reduce your bill on its own. It finds candidates for improvement, and actual savings depend on the changes you choose and how they perform on matched workloads. It also does not measure complete API spending automatically.

Where does token-optimizer rank in the Memory & Context category?

It sits in the Memory & Context category alongside handoff and the caveman skills such as caveman-compress and caveman-stats. Its focus is cost control for OpenClaw agents, including model choice, scheduled tasks and instruction file sizes.

Similar to Token Optimizer

More Memory & Context