📊
简介
OpenClaw官方出品的本地Token分析工具,零依赖纯标准库实现,帮助用户精准追踪AI成本消耗并优化资源配置。
原始描述
Track and analyze OpenClaw token usage across main, cron, and sub-agent sessions with category, client, model, and tool attribution. Use when the user asks where tokens are being spent, wants daily/weekly token reports, needs per-session drilldowns, or is planning token-cost optimizations and needs evidence from transcript data.
技能正文
name: token-counter description: Counts tokens in documentation to ensure compliance with AI context window limits. Reports token counts per page, identifies oversized content. Use when measuring documentation token counts for AEO compliance.
Token Counter Skill
Counts tokens in documentation.
When to Use This Skill
- Measure token counts
- Verify pages within limits
- Identify oversized content
Token Limits
| Page Type | Recommended | Maximum |
|---|---|---|
| Quick Start | < 15,000 | 20,000 |
| API Reference | < 25,000 | 30,000 |
| Conceptual Guide | < 20,000 | 25,000 |
| llms.txt | < 5,000 | 10,000 |
Usage
# Count tokens in URL
python3 scripts/token_counter.py https://example.com/docs/quickstart
# Check against limits
python3 scripts/token_counter.py https://example.com/docs/api --check-limits
# JSON output
python3 scripts/token_counter.py https://example.com/docs --json
其他来源收录
同一技能在不同目录的原始页面:
标签
同类 Skill
📝
让AI记住教训,不再重复犯错
Self-Improving Agent
下载 422.4k
✨
AI自我进化·持续学习沉淀
self-improving-agent
下载 420k
✨
AI技能安装前的安全守门员
Skill Vetter
下载 226.1k
🧠
越用越懂你的AI记忆进化系统
Self-Improving + Proactive Agent
下载 179.5k
🧠
越用越懂你的 AI 自我进化系统
Self-Improving + Proactive Agent
下载 177.1k
🧠
让AI记住你的每一次纠正
Self-Improving + Proactive Agent
下载 177.1k