← 返回 Skills 市场
Token Budget
作者
OpenAuthority
· GitHub ↗
· v1.0.2
· MIT-0
147
总下载
3
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install token-budget
功能描述
Track your AI agent's token usage, API spend, and set soft budget thresholds with in-session warnings.
安全使用建议
This skill appears to do what it says: estimate token usage from the OpenClaw session and store soft thresholds/history in a local file. Before installing, check the following: 1) Inspect or create ~/.openclaw/openauthority/budget-state.json and confirm it contains only non-sensitive settings (thresholds, history), not API keys or secrets. 2) Because the registry metadata did not declare the config path the SKILL.md uses, ask the publisher to update the metadata to list that path explicitly so you know what will be read/written. 3) Remember SKILL.md claims no external data exfiltration, but instruction-only skills cannot enforce behavior — if you need guaranteed enforcement, use the platform-level OpenAuthority plugin or policy controls for hard budget limits. 4) If you want higher assurance, request a code-backed implementation or source repo (so you can review file I/O behavior) or a sample budget-state.json schema. If those checks are acceptable, the skill's accesses are proportionate and coherent with its purpose.
功能分析
Type: OpenClaw Skill
Name: token-budget
Version: 1.0.2
The 'token-budget' skill is a utility designed to track AI token usage and estimated API costs. It operates by reading session metadata and maintaining a local state file (~/.openclaw/openauthority/budget-state.json). The instructions in SKILL.md are consistent with the stated purpose, and there is no evidence of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
Name, description, and runtime instructions all align: the skill only needs session token metadata and a small local state file to store thresholds/history. There are no unexpected credentials or unrelated capabilities requested.
Instruction Scope
SKILL.md limits actions to reading OpenClaw session metadata and a local state file (~/.openclaw/openauthority/budget-state.json), estimating costs, and printing warnings. That scope is appropriate for the described purpose. Note: the skill claims 'No data is sent externally' — that is an instruction-level assertion (there is no code to verify), so you should trust the runtime environment to enforce that. Also the SKILL.md references the local config path while the registry metadata did not declare any required config paths (inconsistency).
Install Mechanism
Instruction-only skill with no install spec and no code files to execute. This minimizes installation risk because nothing will be downloaded or installed by the skill itself.
Credentials
The skill requests no environment variables or credentials. The only persistent access is to a single local state file under the user's home directory to store thresholds and history — this is proportionate to its purpose.
Persistence & Privilege
The skill is not always-on and does not request elevated platform privileges. It does rely on a local state file for persistence, which is reasonable for storing user-configured thresholds. The metadata did not declare this config path, which would be useful to see declared explicitly.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install token-budget - 安装完成后,直接呼叫该 Skill 的名称或使用
/token-budget触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
token-budget 1.0.2 is a maintenance release with no code or documentation changes.
- Internal version bump from 1.0.1 to 1.0.2
- No file changes detected; functionality and documentation remain the same
v1.0.1
- Alerting now prints warnings directly in the session when a threshold is crossed, instead of supporting external channels like Telegram.
- Updated skill description and documentation to remove references to multi-channel alerting.
- Clarified that all tracking is local and read-only from session context.
- No code changes; documentation only.
v1.0.0
Initial release of the token-budget skill.
- Track AI agent's token usage and estimated API spend in real time
- Set soft daily token thresholds and receive usage alerts via Telegram or console
- View detailed session summaries and cost breakdowns by model and time window
- Review daily spend and token history for the past 7 days
- All tracking is local; no external data sharing
元数据
常见问题
Token Budget 是什么?
Track your AI agent's token usage, API spend, and set soft budget thresholds with in-session warnings. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 147 次。
如何安装 Token Budget?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-budget」即可一键安装,无需额外配置。
Token Budget 是免费的吗?
是的,Token Budget 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Token Budget 支持哪些平台?
Token Budget 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token Budget?
由 OpenAuthority(@openauthority)开发并维护,当前版本 v1.0.2。
推荐 Skills