← Back to Skills Marketplace
sky-lv

Skylv Cost Guard

by SKY-lv · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
87
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install skylv-cost-guard
Description
Monitors and optimizes AI API usage costs across multiple providers
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-cost-guard
  3. After installation, invoke the skill by name or use /skylv-cost-guard
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skylv-cost-guard
Version 1.0.1
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Skylv Cost Guard?

Monitors and optimizes AI API usage costs across multiple providers. It is an AI Agent Skill for Claude Code / OpenClaw, with 87 downloads so far.

How do I install Skylv Cost Guard?

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

Is Skylv Cost Guard free?

Yes, Skylv Cost Guard is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skylv Cost Guard support?

Skylv Cost Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skylv Cost Guard?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.1.

💬 Comments