← Back to Skills Marketplace
e2e5g

Token省钱管家

by e2e5g · GitHub ↗ · v2.2.0 · MIT-0
cross-platform ✓ Security Clean
127
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install token-cost-controller
Description
OpenClaw Token省钱管家 - 智能缓存、动态路由、实时监控,运行时自动优化,降低70%成本消耗。当用户询问成本优化、Token节省、缓存策略、模型路由或需要成本监控时使用。
Usage Guidance
This skill appears to be what it says: a local cost controller that stores state under .openclaw/data and detects local models with 'ollama list'. Before installing, consider: 1) Provenance — the package is from an unknown source and contains version metadata mismatch (files v2.1.1 vs registry v2.2.0); prefer packages from trusted authors. 2) Inspect repository locally — review install.js and the data files (controls.json, cache.json, cost-history.json) to ensure no unexpected behavior. 3) Data sensitivity — the skill will store usage/cost data and disabled/paused skill lists on disk; if that information is sensitive, run it in an isolated environment or change the dataDir. 4) Execution risk — it runs a fixed shell command to probe local models; this is expected but confirm your environment's PATH and that 'ollama' is trusted. 5) Network/credentials — the skill requests no credentials and makes no outbound network calls in the provided code, but if you modify it to integrate external alerting or telemetry, review that addition carefully. If you want higher assurance, run it in a sandbox or container and/or ask the author for a vetted release/source origin.
Capability Analysis
Type: OpenClaw Skill Name: token-cost-controller Version: 2.2.0 The skill bundle provides legitimate token cost management, caching, and model routing functionality for the OpenClaw agent. It implements statistical anomaly detection and local state management within a dedicated data directory. While it utilizes 'child_process.exec' in 'lib/model-router.js' to check for local 'ollama' availability, the command is hardcoded and does not incorporate unsanitized user input, posing no significant injection risk. No evidence of data exfiltration, malicious prompt injection, or unauthorized persistence was found.
Capability Assessment
Purpose & Capability
Name/description (token cost control, caching, routing, monitoring) match the included code and CLI. The package implements caching, cost monitoring, model routing, and proactive controls. Minor metadata/version mismatch: registry lists v2.2.0 while files declare v2.1.1 — a non-security but provenance inconsistency to note.
Instruction Scope
SKILL.md only instructs when to use the skill (cost optimization) and basic CLI examples; it does not ask the agent to read unrelated system state or secrets. However the README suggests running install.js and the code persists data to disk (controls.json, cache.json, cost-history.json). '自动告警' in docs refers to internal alerts stored in files, not an external alerting service — a minor documentation vs behavior mismatch.
Install Mechanism
There is no external install spec in the registry. The repository includes a local install.js that creates a .openclaw/data directory and initializes controls.json. No remote downloads, no package dependencies, and no archives or third-party installers are used.
Credentials
The skill requests no environment variables or credentials. It does execute a fixed shell command ('ollama list ...') to detect local models (via child_process.exec), which is expected for its local-model-detection feature. The command is hard-coded and not built from untrusted input, so this is proportionate to its purpose. Note: the skill writes usage/cost data and control state to local files which may contain sensitive consumption information.
Persistence & Privilege
always:false and user-invocable:true. The skill persists only to its own directory (.openclaw/data) and does not modify other skills or global agent configurations. Its level of persistence is proportional to its monitoring/control purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install token-cost-controller
  3. After installation, invoke the skill by name or use /token-cost-controller
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.2.0
**token-cost-controller v2.2.0** Major update with significant internal refactoring and streamlined features. - Simplified core codebase: removed budget manager, context compressor, and token optimizer modules. - Merged functionality and improved structure under main files and a new `lib/index.js` entry. - Updated documentation to reflect a leaner skill version, focusing on intelligent caching, dynamic routing, and cost monitoring. - Improved maintainability by cleaning up legacy test scripts and redundant modules. - Configuration and CLI remain compatible with prior usage; advanced optimization and compression now handled externally or by other modules.
v2.1.1
token-cost-controller v2.1.1 - 修改描述文案,将「Token成本控制管家」优化为「Token省钱管家」以增强易懂性和亲和力。 - 统一文档内名称与标识,从「Token成本控制管家」更新为「Token省钱管家」。 - 其余内容未做调整,功能无变动,仅文本与品牌表述优化。
v2.1.0
v2.1.0: 异步CLI调用、Ring Buffer固定内存、安全缓存Key、动态异常检测、性能全面优化
Metadata
Slug token-cost-controller
Version 2.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Token省钱管家?

OpenClaw Token省钱管家 - 智能缓存、动态路由、实时监控,运行时自动优化,降低70%成本消耗。当用户询问成本优化、Token节省、缓存策略、模型路由或需要成本监控时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.

How do I install Token省钱管家?

Run "/install token-cost-controller" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Token省钱管家 free?

Yes, Token省钱管家 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Token省钱管家 support?

Token省钱管家 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Token省钱管家?

It is built and maintained by e2e5g (@e2e5g); the current version is v2.2.0.

💬 Comments