← 返回 Skills 市场
sky-lv

Skylv Cost Guard

作者 SKY-lv · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
87
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install skylv-cost-guard
功能描述
Monitors and optimizes AI API usage costs across multiple providers
安全使用建议
This skill operates as a local CLI calculator and tracker: it does not connect to provider APIs or require API keys, and it stores budget and token logs in a .cost-guard.json file in the current directory. Before installing or running: (1) review the JS file to confirm you are comfortable running an untrusted Node script; (2) run it in an isolated directory if you want to keep .cost-guard.json separate from other files; (3) note that cost estimates are derived from static pricing tables and manual token counts (the skill does not automatically pull provider billing data), so if you expected automatic integration with OpenAI/Anthropic/Google billing you will need additional tooling or credentials. If you plan to share logs, be aware the .cost-guard.json file contains your spend traces and should be treated as potentially sensitive.
功能分析
Type: OpenClaw Skill Name: skylv-cost-guard Version: 1.0.1 The skylv-cost-guard skill is a utility for tracking and optimizing AI API costs. It manages a local budget and usage log in a file named .cost-guard.json using standard Node.js file system operations. The code in cost_guard.js contains no network requests, external dependencies, or command execution, and the SKILL.md instructions are strictly aligned with the stated purpose of cost monitoring without any evidence of prompt injection or malicious intent.
能力评估
Purpose & Capability
Name and description (monitoring and optimizing AI API costs) match the provided assets: a CLI-style SKILL.md and a JavaScript implementation that calculates costs from token counts and a pricing table covering multiple providers. Nothing in the files requests unrelated services or privileged access.
Instruction Scope
SKILL.md instructs running node cost_guard.js with explicit commands (init, track, status, compare, suggest, alert, report). The runtime instructions are limited to local operations and user-provided token counts; they do not instruct reading system-wide config, cloud credentials, or transmitting data externally.
Install Mechanism
There is no install spec and no external downloads. The skill is instruction-only plus a single JS file; runtime uses only Node built-in fs/path. This is low-risk from an installation perspective.
Credentials
No environment variables, credentials, or config paths are required. The code reads/writes a single local file (.cost-guard.json) to store budget and logs, which is proportional to the stated functionality.
Persistence & Privilege
always is false and the skill does not request any elevated or persistent platform-level privileges. It stores state only in a local dot-file and does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skylv-cost-guard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skylv-cost-guard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added frontmatter with description, keywords, name, and triggers for improved metadata. - Appended a new "Usage" section with step-by-step instructions. - No changes to core features, functionality, or CLI examples. - Previous content and skill documentation remain intact.
v1.0.0
skylv-cost-guard 1.0.0 – Initial Release - Launches AI API cost monitoring for OpenAI, Anthropic, and Google. - Tracks token usage, compares provider pricing, and sets budget alerts. - Provides tailored optimization suggestions to help reduce costs. - Includes up-to-date pricing database for major models. - Integrates with OpenClaw for seamless cost queries.
元数据
Slug skylv-cost-guard
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 0
历史版本数 2
常见问题

Skylv Cost Guard 是什么?

Monitors and optimizes AI API usage costs across multiple providers. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。

如何安装 Skylv Cost Guard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-cost-guard」即可一键安装,无需额外配置。

Skylv Cost Guard 是免费的吗?

是的,Skylv Cost Guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skylv Cost Guard 支持哪些平台?

Skylv Cost Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skylv Cost Guard?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.1。

💬 留言讨论