微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

零依赖的AI成本洞察专家

token-counter · vv1.0.0
专业技能 安全 S 级 作者 mkhaytman87 公开目录收录
下载 2.2k 安装 746 收藏 6.7k 浏览 12k
原始页面

简介

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

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

data-analyticsdevopsfinance-accountingproductivityautomationbackend

同类 Skill