← 返回 Skills 市场
3564
总下载
7
收藏
32
当前安装
4
版本数
在 OpenClaw 中安装
/install token-manager
功能描述
Universal LLM Token Manager - Monitor usage and provide cost-saving recommendations for Kimi, OpenAI, Anthropic, Gemini, and local models. Features scheduled monitoring, cross-session tracking, and proactive alerts.
安全使用建议
Review before installing. Prefer environment variables for API keys, do not pass secrets as command arguments, avoid sending sensitive prompt text through provider token-estimation APIs, and remove any cron job when you no longer want recurring balance checks.
功能分析
Type: OpenClaw Skill
Name: token-manager
Version: 1.2.0
The OpenClaw AgentSkills skill bundle 'token-manager' is classified as benign. All code (`scripts/manager.js`, `scripts/scheduler.js`, `scripts/session-tracker.js`) and documentation (`SKILL.md`) align with the stated purpose of an LLM token manager. API keys are correctly handled via environment variables, data is stored locally in the `.data/` directory, and network requests are exclusively directed to official LLM API endpoints (e.g., api.moonshot.cn, api.openai.com). While the skill utilizes the `openclaw cron add` command for scheduled monitoring, this is a legitimate feature used for its declared purpose and does not indicate malicious persistence. No evidence of data exfiltration, malicious execution, obfuscation, or prompt injection attempts to subvert the agent's control or steal sensitive information was found.
能力评估
Purpose & Capability
Token usage reporting, balance checks, local history, and optional scheduled alerts are coherent with the stated token-manager purpose.
Instruction Scope
The documentation and code contradict the security claim that API keys are read only from environment variables: documented commands and manager.js also accept API keys as positional CLI arguments.
Install Mechanism
No hidden installer or automatic setup was found; cron and tool registration are presented as manual user actions.
Credentials
Local .data storage and requests to provider APIs are proportionate for this purpose, but the security text understates that provider API calls may receive credentials and, through the exported token-estimation function, message text.
Persistence & Privilege
Persistent local state and scheduled cron checks are disclosed and purpose-aligned, though users should understand cron checks continue until disabled.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install token-manager - 安装完成后,直接呼叫该 Skill 的名称或使用
/token-manager触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
**Summary: Adds scheduled monitoring and cross-session analytics with proactive alerts.**
- Introduced scheduled monitoring and balance alerts via new scripts (`scheduler.js`).
- Added cross-session tracking and analytics with session recording and reporting (`session-tracker.js`).
- Enhanced documentation: streamlined SKILL.md, added setup guides, new commands, and clear cost-saving recommendations.
- Provides sample cron job setups and tool integration steps.
- All monitoring/alert state and session data are stored locally for privacy.
- No changes to API usage or keys—still only local storage and official APIs.
v1.1.1
## Token Manager v1.1.1
- Added "安全说明 / Security" section to documentation, detailing privacy and API key handling practices.
- Clarified that all data stays local, API keys are only read from environment variables, and only official provider APIs are used.
- No functional or script changes outside documentation.
v1.1.0
**v1.1.0 introduces multi-provider support and enhanced features.**
- Added support for multiple LLM providers: Moonshot/Kimi, OpenAI, Anthropic/Claude, Google Gemini, and Ollama.
- New provider management commands: list, set default, and handle API keys.
- Universal balance query, cost estimation, and report functions now support provider and model selection.
- Automated detection of each provider’s capabilities (e.g., balance query, estimation accuracy).
- Unified cost-saving recommendations and pricing reference for all supported models.
v1.0.0
Token Manager 1.0.0 – Initial release
- Real-time monitoring and reporting for Kimi/Moonshot API token usage
- Balance query and cost estimation functionality
- Smart, context-based cost-saving suggestions (context compaction, sub-agent spawning, disabling reasoning)
- Usage history tracking
- Quick action recommendations for session optimization
元数据
常见问题
Token Manager 是什么?
Universal LLM Token Manager - Monitor usage and provide cost-saving recommendations for Kimi, OpenAI, Anthropic, Gemini, and local models. Features scheduled monitoring, cross-session tracking, and proactive alerts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3564 次。
如何安装 Token Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-manager」即可一键安装,无需额外配置。
Token Manager 是免费的吗?
是的,Token Manager 完全免费(开源免费),可自由下载、安装和使用。
Token Manager 支持哪些平台?
Token Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token Manager?
由 Felix(@kelegele)开发并维护,当前版本 v1.2.0。
推荐 Skills