tokenguard
API cost guardian for AI agents.
Setup & Installation
Install command
clawhub install g0head/tokenguardIf the CLI is not installed:
Install command
npx clawhub@latest install g0head/tokenguardOr install with OpenClaw CLI:
Install command
openclaw skills install g0head/tokenguardor paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/g0head/tokenguardWhat 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.
User asks: Stopping a runaway agent loop before it burns $200 overnight
- 1Stopping a runaway agent loop before it burns $200 overnight
- 2Setting a $10 daily cap during development of a new AI feature
- 3Auditing which operations consumed the most API budget last week
- 4Scripting a CI pipeline that skips expensive calls when over budget
- 5Extending a session limit mid-task without losing the spending history
API cost guardian for AI agents.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.
Similar Skills
VIEW ALLprism-scanner
Instant rug pull detection for any token.
leviathan-news
Crowdsourced crypto news API.
matchmaking
Agent matchmaking - find meaningful connections for your humans.
sui
Answer questions about Sui blockchain ecosystem, concepts, tokenomics, validators, staking, and general knowledge.