A powerful cost-reduction tool for Openclaw Skills that optimizes token usage through intelligent model routing and local heartbeat providers.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tokenoptimizer
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 tokenoptimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Token Optimizer is a specialized utility designed to significantly lower the operational costs of AI agents. By default, many configurations prioritize performance over economy, leading to unnecessary spending on high-tier models like Sonnet or Opus for mundane tasks.
This addition to your library of Openclaw Skills bridges the gap between efficiency and capability by implementing Haiku model routing, local Ollama heartbeats, and aggressive prompt caching. It transforms expensive workflows into sustainable, budget-friendly operations without sacrificing the reliability of your AI agents, allowing you to scale your automation without the financial burden of premium API costs.
To get started with optimizing your Openclaw Skills, follow these steps:
# Install the skill via the hub
clawhub install token-optimizer
# Analyze your current token usage and costs
python cli.py analyze
# Preview optimizations (dry-run mode)
python cli.py optimize
# Apply cost-saving configurations to your system
python cli.py optimize --apply
# Set up a free local heartbeat provider to eliminate heartbeat costs
python cli.py setup-heartbeat --provider ollama --apply
# Verify the health of your optimized setup
python cli.py health
The Token Optimizer organizes its data and configuration within the standard user directory for Openclaw Skills:
| Path | Description |
|---|---|
~/.openclaw/openclaw.json |
The primary configuration file managing model routing, heartbeats, and budget controls. |
~/.openclaw/backups/ |
Storage for timestamped backups to allow for instant configuration rollbacks. |
~/.openclaw/workspace/ |
Template files used for SOUL.md, USER.md, and IDENTITY.md. |
~/.openclaw/prompts/ |
Optimized rules and templates for reducing agent prompt context. |
~/.openclaw/token-optimizer-stats.json |
Log of usage statistics and realized savings reports. |
Loading
The Token Optimizer reduces OpenClaw AI costs by up to 97% through intelligent model routing, local provider heartbeats, and efficient prompt caching.

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.

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

A powerful content extraction tool that converts complex web pages into clean, AI-ready markdown using the Jina Reader API.








































