OpenClaw · Skill
TokenGuard
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.
Install
Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.
Primary command
clawhub install g0head/tokenguardClawHub installer
npx clawhub@latest install g0head/tokenguardOpenClaw CLI
openclaw skills install g0head/tokenguardDirect OpenClaw install
openclaw install 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.
Why it matters
Unlike ad-hoc manual tracking, TokenGuard enforces limits programmatically via exit codes, so scripts and agents can gate expensive operations without any custom logic.
Typical use cases
- 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
Source instructions
Quick overview
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.
Common tasks
- 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
Install paths
Primary command
openclaw install g0head/tokenguard
ClawHub installer
npx clawhub@latest install g0head/tokenguard
OpenClaw CLI
openclaw skills install g0head/tokenguard
Direct OpenClaw install
openclaw install g0head/tokenguard
Skill metadata
- Category: AI & LLMs
- Language: Markdown
- Version: 1.0.0
- Security status: Benign
Review upstream source
The full public SKILL.md body is not directly fetchable for this entry right now, so this page is using the best available catalog metadata. Review the upstream source page for the latest files, version history, and security scan details: https://clawhub.ai/g0head/tokenguard