Spend governance
that never sleeps.

AgentGuard Spend wraps your provider SDK and blocks runaway AI agent spend before the provider charges you. 30-second install. Your keys never leave your runtime. Every decision is signed and verifiable.

Node.js
npm install @agentguard-run/spend
Python
pip install agentguard-spend
Start here
Quickstart
Install, wrap your provider client, set a daily cap. 60 seconds.
Capabilities
Every cap window, action, scope dimension, capability tier, and locale.
Workflows
One budget envelope, resumable checkpoints, and a signed chain for multi-step runs.
Integrations
LangChain, CrewAI, LlamaIndex, Hermes, OpenClaw. Redis, Postgres, KMS, Vault.
Outcome Builder Guide
Prompt-first setup for law, accounting, insurance, real estate, and e-commerce teams.
What AgentGuard does
Spend caps
Per-call, per-minute, per-hour, per-day, per-month windows. Atomic.
Block / downgrade / shadow
Hard block, route to a cheaper model, or just log. Per-cap configurable.
Scope hierarchy
Tenant → team → user → agent → task → provider. Six levels of isolation.
Cryptographic receipts
Ed25519-signed, SHA-256 hash-chained. Verify any receipt in two lines.
Tamper-evident log
Append-only decision log. Filesystem, Redis Streams, or Postgres.
en-US · es-419 · pt-BR
Native-locale error messages and blocked traces. Auto-detected.
Integrations
LangChain · LangGraph
BaseCallbackHandler. Drops in via callbacks: [handler].
CrewAI
Wrap every agent's LLM client with guard_crew(crew).
LlamaIndex
guard_llm(llm) wraps the inner provider client.
Hermes plugin
Auto-discovery via pip install agentguard-spend-hermes. Zero config.
Redis adapter
Atomic INCRBY for caps. XADD Streams for decision log.
Postgres adapter
UPSERT for window spend. JSONB decision log with append ordering.
AWS KMS · Vault
Delegate Ed25519 signing. Private keys never leave the HSM.
OpenClaw skill
Drop into any AgentSkills-compatible agent runtime.
Reference
npm package
@agentguard-run/spend · v0.1.10 · MIT runtime, patent-pending core.
PyPI package
agentguard-spend · v0.1.10 · Python 3.10+. Ed25519 via cryptography.
GitHub
Source, issues, examples. Star to follow releases.
llms.txt
Full SDK reference in one file. Paste into Claude / Cursor / GPT.
Need something custom?
Self-hosted key management, dedicated SLA, or a private fork? Request portfolio access for direct engineering contact.
Request access