Setup & Installation
openclaw skills install @pfaria32/token-economy
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
npx clawhub install token-economy
What This Skill Does
Reduces agent costs by 60-80% through model routing and context management. Routes tasks to the cheapest capable model first (GPT-4o), escalating to Sonnet or Opus only when needed. Eliminates heartbeat API calls when there's nothing to process, and enforces a daily budget cap.
When to use it
- Routing simple tasks to cheaper models automatically
- Eliminating wasted API calls from empty heartbeat checks
- Enforcing a daily spending cap to prevent runaway costs
- Auditing token usage with per-request logging
- Auto-switching back to a cheaper model during idle periods