tokenguard

AI & LLMs
v1.0.0
Benign

API cost guardian for AI agents.

31.6K downloads1.6K installsby @g0head

Setup & Installation

Install command

clawhub install g0head/tokenguard

If the CLI is not installed:

Install command

npx clawhub@latest install g0head/tokenguard

Or install with OpenClaw CLI:

Install command

openclaw skills install g0head/tokenguard

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/g0head/tokenguard

What This Skill Does

TokenGuard tracks API spending per session, enforces configurable dollar limits, and blocks actions when budgets are exceeded. It logs every cost with timestamps and provides pre-flight budget checks before expensive calls.

Unlike ad-hoc manual tracking, TokenGuard enforces limits programmatically via exit codes, so scripts and agents can gate expensive operations without any custom logic.

When to Use It

  • Stopping a runaway agent loop before it burns $200 overnight
  • Setting a $10 daily cap during development of a new AI feature
  • Auditing which operations consumed the most API budget last week
  • Scripting a CI pipeline that skips expensive calls when over budget
  • Extending a session limit mid-task without losing the spending history

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Stopping a runaway agent loop before it burns $200 overnight

AGENT
  1. 1Stopping a runaway agent loop before it burns $200 overnight
  2. 2Setting a $10 daily cap during development of a new AI feature
  3. 3Auditing which operations consumed the most API budget last week
  4. 4Scripting a CI pipeline that skips expensive calls when over budget
  5. 5Extending a session limit mid-task without losing the spending history
OUTPUT
API cost guardian for AI agents.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 26, 2026