A precision utility for estimating token counts and API costs for Claude LLMs to optimize context window management.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install claude-token-counter
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 claude-token-counter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Claude Token Counter is a specialized tool designed to help developers manage their interactions with Anthropic's Claude models efficiently. Since Claude's actual tokenizer is proprietary, this skill provides a high-fidelity approximation of token usage, allowing for better budget forecasting and context window management. By integrating this into your workflow through Openclaw Skills, you can prevent unexpected API overages and ensure your prompts fit within specific model constraints without manual calculation.
To utilize this skill within the Openclaw Skills ecosystem, you must have an active environment configured to handle SkillPay.me transactions. Each estimation call costs 0.001 USDT.
# Example of invoking the token counter via a standard skill runner
skill-run claude-token-counter --text "Hello, how are you today?" --model "claude-3-5-sonnet-20241022"
The skill utilizes a straightforward input-output schema to facilitate easy integration into automated pipelines.
| Property | Type | Description |
|---|---|---|
text |
string | The input text to be measured. |
model |
string | The specific Claude model identifier. |
estimated_tokens |
integer | The approximate number of tokens in the text. |
estimated_cost |
float | The calculated cost based on model pricing. |
success |
boolean | Indicates if the estimation was successful. |
Loading
A specialized moderation tool that evaluates AI prompts and outputs against the helpful, honest, and harmless framework to ensure safety and alignment.

A precision tool designed to refine and align prompts with Claude's constitutional AI and reinforcement learning patterns.

A specialized utility that condenses massive text volumes into high-signal, Claude-optimized information.

A specialized utility for generating structured code, SVG diagrams, and data artifacts optimized for high-performance AI agent interfaces.

A versatile content transformation tool that converts diverse media sources into AI-generated podcasts, mind maps, and presentations using NotebookLM.

A high-performance scanning tool for identifying cross-exchange and triangular arbitrage opportunities in the cryptocurrency market.








































