A specialized audit tool that rewrites your OpenClaw configuration to drastically reduce Anthropic API expenses through intelligent model routing and prompt caching.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install anthropic-cost-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 anthropic-cost-optimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Anthropic Cost Optimizer is a high-impact utility within the Openclaw Skills ecosystem designed to combat rising API costs. Following Anthropic's 2026 billing changes, many developers are facing full API rates for the first time. This skill serves as an automated financial auditor for your AI agents, scanning your configuration files for expensive inefficiencies.
By analyzing five critical cost levers—including prompt caching, model routing, and thinking levels—the skill identifies where you are overspending. It doesn't just point out problems; it generates a fully optimized version of your config, providing a transparent diff and estimated monthly savings before applying any changes. It ensures you use the right model for the right task, such as routing simple triage to Claude Haiku while reserving Claude Opus for complex reasoning.
To use this optimizer within your environment, ensure you have the pricing reference available and call the skill via your OpenClaw agent:
# Trigger the optimizer by asking your agent:
"My API bills are too high, optimize my config."
# After the skill writes the new config, restart your gateway:
openclaw gateway restart
The skill interacts with the following data structures and files:
| File/Component | Description |
|---|---|
references/pricing.md |
Source of truth for model rates and savings formulas. |
openclaw.yaml/json |
The primary target for auditing and rewriting. |
cacheRetention |
Metadata tag added to model params (e.g., "short" or "long"). |
thinking |
Parameter scoped to specific agents to manage compute costs. |
context1m |
Boolean flag managed to avoid unnecessary surcharge pricing. |
cacheRetention strategies that can reduce input costs by 60-90%.sk-ant-oat-* tokens and warns that certain caching features require a standard API key.Loading
A high-integrity development framework that dispatches fresh subagents per task with mandatory two-stage reviews to ensure spec compliance and code quality.

A specialized tool to download YouTube videos and automatically slice them into segments based on chapters or custom timestamps.

A rigorous 4-phase debugging framework for AI agents that mandates systematic root-cause analysis over temporary symptom patching.

A systematic research-before-coding workflow that prevents reinventing the wheel by prioritizing existing tools, libraries, and MCP servers.

A comprehensive AI-driven advisory system that automates global stock data collection, multimodal technical analysis, and professional investment report generation.

A specialized tool that converts static images into dynamic whiteboard hand-drawing and coloring animations.








































