Skip to content
AddHunt
MCP servers

Shotoku

Local spending limits and approvals for AI agents

Open source

  • Open source
  • Licence: MIT

In short

Shotoku is an open-source, local-first authorization layer that checks an AI agent's payments, paid API calls and tool use against budgets and rules before they happen. It is for developers building agents that can spend money and need limits, human approvals and an audit trail.

What you get

  • Per-vendor limits and rolling daily budgets
  • Human approval queue for large spends
  • Hash-chained local decision ledger
  • MCP server and MCP wrapping mode
  • CLI, terminal UI and one-call SDK

The details

Shotoku puts a decision step in front of anything an autonomous agent wants to do that costs money or carries risk, such as paying for something, calling a paid API, invoking an MCP tool or running code. Each request passes a budget check and, when needed, an approval gate, and the outcome is written to a local log.

Policies as configuration

Rules live in one YAML file. Each rule names a resource and actions, sets a per-transaction limit and a rolling 24-hour limit, and gives a verdict: approve, hold for a human, or deny. A per-agent daily budget caps total spending, and requests over a limit can be denied or queued for approval.

Local by design

  • Decisions are stored in a hash-chained ledger on the developer's machine, with no cloud and no custody of funds.
  • A CLI and terminal UI show pending approvals.
  • An authorize() function adds the check to agent code in one call.
  • An MCP server works with Claude, Cursor and other clients, and a wrapping mode places Shotoku in front of other MCP servers.
  • Approved decisions carry short-lived signed tokens that a payment proxy can verify, and x402 payments are supported.

Pricing

The core engine is MIT-licensed and free. A Team plan with Slack approvals and a central dashboard is in development, and Enterprise is available on request.

Pricing

Free core; Team plan coming soon

As of , from shotoku.dev. Prices change: check before you buy. Shotoku pricing page

Alternatives to Shotoku

All alternatives

Questions

How does Shotoku stop an agent from overspending?

Policies set a per-transaction maximum and a rolling 24-hour maximum per vendor, plus a daily budget per agent. Requests above a limit are denied before payment or held for a human.

Does Shotoku hold funds or send data to a cloud?

No. Decisions are made and recorded on the developer's own machine, and Shotoku takes no custody of money.

Can an agent route around it?

Its MCP wrapping mode places Shotoku ahead of the other MCP servers an agent uses, so every tool call gets a decision before it goes through. Outside MCP, signed short-lived tokens let a payment proxy confirm a decision was approved.

More like this