Install
openclaw skills install @33ai-wq/agent-cost-guardAudit an agent's cost, Curator and background work, then cap it.
openclaw skills install @33ai-wq/agent-cost-guardThis package contains documentation and reference tables only. It ships no code, makes no network call, reads no file, touches no key material and cannot move money. Everything below is a checklist you run with the tools you already have on your own machine.
SKILL.md - this checklist (Steps 1-7).references/prices-reference.md - provider price table for the models you are most likely to be paying for;
used by Step 4.references/case-study.md - the reported community case behind the inheritance trap and the two checks that
catch it; used by Steps 2 and 3.agents/openai.yaml - catalog metadata (display name and short description) for the skill directory.List every scheduled job and classify each one: uses a model (costs money) or pure script (free). Then look for work that is NOT a scheduled job at all: curator runs, background review, compression and approval steps. Those live in your agent's usage records, not in the job list, and they are where the money hides. Ask for the token totals broken down by task, not just by day.
Background work usually inherits the primary model unless the operator sets it explicitly. So a top-tier reasoning model as your main model silently becomes the model of your housekeeping too, several times a day, and it never appears in the scheduled-job log. Verify it: pull the usage records grouped by (task, model). If the expensive model shows up on a background task you never configured, that is the inheritance trap, not a mystery.
From the same usage records, compute: tokens per day, per model, per task. Watch for a single background task
that outweighs all interactive use. A reported community case ran hundreds of iterations in a day (about 353
million tokens in 20 hours) because curation kept re-triggering itself on a top-tier model. The full write-up,
with the two checks that reproduce the mechanism on your own data, is in references/case-study.md.
Price table to start from: references/prices-reference.md (October 2026 figures, for estimation only - your
provider is the authority, and prices move).
Agents normally record tokens, not money, so price it yourself: tokens x provider price per million, split
input and output.
| Lever | Why | Restore |
|---|---|---|
| Give background work its own cheaper model | the same pass can cost many times less | set it back |
| Keep curation on a long interval, keep automatic rewriting off unless you accept the cost | every pass re-reads the whole skill tree | restore the old interval |
| Lower the agent turn cap and the API retry count | bounds a runaway loop instead of letting it multiply | restore the old numbers |
| Pause one job that keeps failing | a failing paid job accumulates retries | resume the job |
| Pin critical skills so automation cannot move them | automated curation can restructure your skills | unpin |
| Provider-side spend cap | the only limit an agent cannot exceed | the owner changes it |
| Never edit the agent's core code | an update overwrites your fix and you lose the audit path | configure instead |
Weekly summary: tokens over seven days, the largest task, how many alerts fired, which changes were approved.
A separate artifact - an x402 endpoint - returns a risk-ranked assessment of a configuration when you POST your own numbers to it. It is deliberately not part of this package: this package stays read-only so it can never move money or read key material. If you want it, discover the endpoint and read its price from the machine path (the HTTP 402 challenge), never from prose.