Spend Firewall for AI Developers

If you're building autonomous AI agents that can spend money — calling paid APIs, buying compute, triggering payments, settling on agent-commerce rails — you need a pre-spend firewall. sipi.bot is the open-source control layer: MCP, HTTP, CLI, MIT-licensed, with a 53-scenario public eval gym.

Start in 60 seconds.
pip install sipi-bot
python -m spendfirewall.api  # self-host, serves on :8080
Or hit the hosted endpoint with an API key. Or load the MCP server into Claude Code / Cursor / Hermes. Open source on GitHub.

The developer problem

You're building an agent. The agent has tools. Some of those tools spend money — an LLM call, a cloud-provisioning command, a payment settlement, a data purchase. The agent decides when to call them. You have no deterministic guarantee that the spend is within policy. The prompt says "be cost-conscious." That is not a spending policy.

The failure modes are well-documented at this point:

The developer answer

One HTTP call before any action that would move money. The firewall returns APPROVED, BLOCKED, or FLAGGED in under 5ms. On BLOCKED, the agent aborts. On FLAGGED, the transaction is routed to a human-in-the-loop queue. Every decision is written to a tamper-evident audit log.

import requests

def guard(amount, merchant, category):
    r = requests.post(
        "https://sipi.bot/v1/transactions/evaluate",
        headers={"Authorization": f"Bearer {SIPBOT_KEY}"},
        json={"amount": amount, "merchant": merchant, "category": category},
        timeout=5,
    ).json()
    return r["decision"]

# wrap any paid action
if guard(amount=6200, merchant="unknown-gpu.ru", category="compute") == "APPROVED":
    do_paid_action()
else:
    abort()

Three surfaces, one engine

SurfaceInvocationBest for
MCP serverpython -m spendfirewall.mcp_serverClaude Code, Cursor, Hermes — loads as a tool natively
HTTP APIPOST /v1/transactions/evaluateAny agent runtime — LangChain, CrewAI, custom
CLIsipi-guard --amount 500 --merchant XShells, CI pipelines, cron jobs
Agent card (A2A)GET /.well-known/agent-card.jsonAgent-to-agent discovery

Framework wrappers

Five-line client wrappers for the common agent frameworks — all in the repo's /integrations directory:

The eval gym

The engine passes a public eval suite of 53 labeled spend scenarios across 9 categories: clean approvals, approval flags, edge cases, per-transaction blocks, daily-limit blocks, velocity blocks, merchant blocks, category limits, and time windows. Boundary cases (exactly at threshold), precedence cases (block beats flag on the same transaction), and adversarial cases (case-insensitive merchant matching, sketchy TLDs) are all covered. The full report:

If you find a 54th scenario that breaks the engine, the team wants to know.

Self-host vs hosted

Self-host (free)Hosted ($99/mo+)
LicenseMITService
EngineFull policy engineSame engine
Audit logLocal SQLitePersistent + exportable
DashboardIncludedIncluded
MCP / HTTP / CLIAll threeAll three
Rule-integrity guaranteeGreen-light a rule violation, month is free
SupportGitHub issuesPriority + SLA
Not a replacement for your LLM gateway. Compose sipi.bot with LiteLLM (routing), Helicone (observability), or Portkey (prompt guardrails). Different layers, different jobs.
Read the source on GitHub →