A comprehensive optimization suite for reducing Anthropic API expenses by mastering cache read reduction and context management within Openclaw Skills.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install anthropic-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 anthropic-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.
The Anthropic Token Optimizer is a specialized framework designed to minimize API billing without compromising the quality of agent reasoning. It specifically targets cache read reduction, which is the primary cost driver for long-running sessions using Claude Opus. By implementing these Openclaw Skills, developers can achieve up to a 90% reduction in code exploration costs and significantly lower daily operational expenses for their AI agents.
This skill combines configuration tuning, workspace hygiene, and behavioral patterns to keep context lean and caches warm. It provides a technical blueprint for partitioning information, managing file budgets, and ensuring critical state survival during context compaction, making it an essential tool for anyone running high-frequency agent workflows.
To apply these optimizations to your Openclaw Skills environment, update your openclaw.json configuration with these recommended settings:
{
"compaction": {
"mode": "safeguard",
"model": "anthropic/claude-sonnet-4-20250514"
},
"contextPruning": {
"mode": "cache-ttl",
"ttl": "1h"
},
"params": {
"cacheRetention": "long",
"context1m": true
},
"heartbeat": {
"every": "55m"
}
}
For codebase navigation caching, install the Atris utility:
npx clawhub@latest install atris
The skill organizes optimization data and budgets according to the following taxonomy:
| Component | Target Size | Purpose |
|---|---|---|
| AGENTS.md | < 500 tokens | Core agent instructions |
| SOUL.md | < 250 tokens | Identity and user preferences |
| MEMORY.md | < 400 tokens | Recent decision logs |
| atris/MAP.md | Varies | Persistent codebase navigation cache |
| Bootstrap Limit | < 30,000 chars | Total initial context injection cap |
Loading
An AI-powered video generation tool that transforms text descriptions and images into cinematic clips without requiring manual editing software.

A professional-grade integration for OpenClaw that automates Cloudways server management, application inventory, and secure database operations.

A sophisticated interface for AI agents to control Mopidy music systems via JSON-RPC for seamless playback and library management.

A specialized AI skill for retrieving real-time product data, financial reports, and official corporate news for Changan Automobile.

Orchestrate a multi-model philosophical dialogue between ancient Greek characters powered by various LLMs.

A comprehensive framework for creating, managing, and materializing reusable AI agent blueprints within the Openclaw environment.








































