← 返回 Skills 市场
jairog813

ClawCost Basic — API Cost Monitor for OpenClaw

作者 jairog813 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
80
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawcost-basic
功能描述
Monitors OpenClaw API usage and costs, sends Telegram alerts at budget limits, and suggests cheaper models to optimize spend.
使用说明 (SKILL.md)

ClawCost — API Cost Monitor & Optimizer\r

\r Track every dollar your OpenClaw agent spends in real time.\r Get Telegram alerts before you go over budget.\r \r

What it does\r

  • Tracks every API call OpenClaw makes\r
  • Shows daily and monthly spend breakdowns\r
  • Alerts you at 80% and 100% of your budget\r
  • Recommends cheaper model swaps with projected savings\r \r

Supported providers\r

Anthropic, OpenAI, Google Gemini, Mistral\r \r

Setup\r

  1. Add your Telegram bot token and chat ID to dashboard.py\r
  2. Set your monthly budget: "set budget $20"\r
  3. That's it — ClawCost runs silently in the background\r \r

Commands\r

  • "show my costs" — daily spend report\r
  • "set budget $X" — set monthly cap\r
  • "optimize my models" — see where to save money\r \r

Pricing\r

$49 — one time purchase

安全使用建议
Do not install or run this skill until you vet and fix the hard-coded credentials. Specific actions to consider: - Replace/remove the baked-in ANTHROPIC_API_KEY and TELEGRAM_TOKEN/CHAT_ID before running; ideally the code should read these from environment variables (and prompt you) rather than contain secrets. - If you plan to use Telegram alerts, add your own bot token and chat ID and verify messages are sent to your chat (not the included chat id). - Be aware that ask_claude in the code will forward user messages to Anthropic using the embedded key — that can expose prompts and content to the key owner. Remove or modify that behavior if you require local-only operation. - Consider running the skill in a controlled environment (network-restricted or isolated) until you confirm where data is sent and that no third-party keys are embedded. - If you cannot or do not want to edit the code, do not install it; ask the publisher for a version that uses user-supplied credentials and documents all external endpoints. These inconsistencies strongly suggest the skill will exfiltrate usage data and potentially user queries unless you replace the credentials and verify behavior.
功能分析
Type: OpenClaw Skill Name: clawcost-basic Version: 1.0.0 The skill contains several high-risk indicators, most notably a hardcoded Anthropic API key in agent.py and hardcoded Telegram bot credentials in dashboard.py, despite instructions in SKILL.md suggesting the user should provide their own. There is a significant contradiction between the privacy claims in the SYSTEM_PROMPT (claiming '100% local' and 'no data sent to external servers') and the actual code logic, which exfiltrates API usage metadata, costs, and model names to Telegram. Additionally, alerts.py uses subprocess.run to execute system commands ('openclaw stop'), which, while functionally relevant to the 'auto-pause' feature, grants the skill control over the host process.
能力评估
Purpose & Capability
The declared purpose (track OpenClaw API usage, send Telegram alerts, suggest cheaper models) matches the code's features (interceptor, tracker, optimizer, alerting). However the SKILL.md says 'add your Telegram token and chat ID' and 'everything stays 100% local', yet the code includes hard-coded credentials (Anthropic API key and Telegram token/chat ID). Hard-coded external credentials are not necessary for the stated local monitoring purpose and are a mismatch.
Instruction Scope
SKILL.md claims no external data leaves the machine, but the runtime code performs network calls to api.anthropic.com and api.telegram.org and will post cost/usage messages to the hard-coded Telegram chat. The agent's ask_claude sends user messages to Anthropic using a baked-in API key, contradicting the 'no data sent to external servers' and 'no access to prompt content' claims.
Install Mechanism
There is no separate installer or downloaded archive; this is instruction/code bundled in the skill (no install spec). That lowers supply-chain risk from remote downloads. Risk comes from the included code and its hard-coded secrets, not from an installer URL.
Credentials
The skill declares no required env vars or credentials, yet the code contains hard-coded secrets: ANTHROPIC_API_KEY in agent.py and TELEGRAM_TOKEN / TELEGRAM_CHAT_ID in dashboard.py. Those embedded credentials are disproportionate and suspicious because they route telemetry/queries to third-party endpoints without requiring the user to provide their own credentials.
Persistence & Privilege
The skill registers an interceptor that replaces the OpenClaw LLM client's call method to log all calls — this is expected for cost tracking. It also can call 'openclaw stop' via subprocess to auto-pause, which is within the stated functionality. always:false (not forced into every agent) and no other system-wide modifications were found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawcost-basic
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawcost-basic 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Real time API cost tracking, Telegram dashboard, budget alerts at 80% and 100%, and model optimizer.
元数据
Slug clawcost-basic
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ClawCost Basic — API Cost Monitor for OpenClaw 是什么?

Monitors OpenClaw API usage and costs, sends Telegram alerts at budget limits, and suggests cheaper models to optimize spend. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 80 次。

如何安装 ClawCost Basic — API Cost Monitor for OpenClaw?

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

ClawCost Basic — API Cost Monitor for OpenClaw 是免费的吗?

是的,ClawCost Basic — API Cost Monitor for OpenClaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ClawCost Basic — API Cost Monitor for OpenClaw 支持哪些平台?

ClawCost Basic — API Cost Monitor for OpenClaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ClawCost Basic — API Cost Monitor for OpenClaw?

由 jairog813(@jairog813)开发并维护,当前版本 v1.0.0。

💬 留言讨论