← Back to Skills Marketplace
jairog813

ClawCost Basic — API Cost Monitor for OpenClaw

by jairog813 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
80
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clawcost-basic
Description
Monitors OpenClaw API usage and costs, sends Telegram alerts at budget limits, and suggests cheaper models to optimize spend.
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clawcost-basic
  3. After installation, invoke the skill by name or use /clawcost-basic
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release. Real time API cost tracking, Telegram dashboard, budget alerts at 80% and 100%, and model optimizer.
Metadata
Slug clawcost-basic
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 80 downloads so far.

How do I install ClawCost Basic — API Cost Monitor for OpenClaw?

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

Is ClawCost Basic — API Cost Monitor for OpenClaw free?

Yes, ClawCost Basic — API Cost Monitor for OpenClaw is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ClawCost Basic — API Cost Monitor for OpenClaw support?

ClawCost Basic — API Cost Monitor for OpenClaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ClawCost Basic — API Cost Monitor for OpenClaw?

It is built and maintained by jairog813 (@jairog813); the current version is v1.0.0.

💬 Comments