The Token Optimizer reduces OpenClaw AI costs by up to 97% through intelligent model routing, local provider heartbeats, and efficient prompt caching.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install token-optimizer
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install token-optimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Token Optimizer is a high-performance utility designed to stop the excessive burning of expensive LLM tokens during development. By default, many agents use high-cost models for trivial tasks; this skill recalibrates your environment to prioritize Claude Haiku while reserving premium models like Sonnet or Opus only for complex reasoning. It is a vital tool within the ecosystem of Openclaw Skills for developers looking to scale their AI workflows without the enterprise-level price tag.
The tool addresses cost leakages in four primary areas: model routing, multi-provider heartbeats using local engines like Ollama, session context management, and prompt caching. By moving heartbeats to free local providers and trimming context windows, users can see their monthly AI spend drop from thousands to just double digits.
To integrate this utility into your Openclaw Skills library, follow these steps:
# Install the skill via clawhub
clawhub install token-optimizer
# Analyze your current cost profile
python cli.py analyze
# Apply the optimizations to your config
python cli.py optimize --apply
# Configure a local heartbeat provider (optional but recommended)
python cli.py setup-heartbeat --provider ollama --apply
The skill manages several key files within the ~/.openclaw/ directory to ensure cost efficiency and reliability:
| Path | Description |
|---|---|
~/.openclaw/openclaw.json |
The primary configuration file containing model routing, budgets, and heartbeat settings. |
~/.openclaw/backups/ |
Storage for timestamped configuration snapshots for quick rollback. |
~/.openclaw/workspace/ |
Contains optimized SOUL.md and USER.md templates for efficient agent identity. |
~/.openclaw/token-optimizer-stats.json |
Tracks usage patterns and cumulative savings over time. |
Loading
A comprehensive tool for fetching Bilibili video bullet comments and performing automated sentiment analysis and keyword visualization.

HoneyDew is a specialized Kanban management skill that allows AI agents to create, track, and organize tasks across boards and columns via a REST API.

An AI agent skill that searches prediction market events and market snapshots using text queries or X (Twitter) links via the Prediction Bridge API.

Feast is an immersive meal planning system that transforms weekly cooking into a cultural experience with authentic recipes and automated shopping.

A powerful cost-reduction tool for Openclaw Skills that optimizes token usage through intelligent model routing and local heartbeat providers.

An AI-driven cryptocurrency trading bot for Upbit featuring real-time monitoring, GLM-4.7 analysis, and automated execution.








































