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.

AI & LLMs
v1.0.0
VirusTotal: Benign

Install

Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.

Primary command

clawhub 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

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.

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

Related OpenClaw skills

Browse all →
Featured slot

Your product here

Reserve this slot to reach operators and coding-agent buyers.

Shown where builders are actively comparing tools and deployment options.

Advertise