Shotoku

www.shotoku.dev

Open-source, local-first budgets, approvals and tamper-evident audit logs for AI agent spending and actions.

Pricing
Open source
Published
Nov 16, 2026

Next steps

What it does

Shotoku gives AI agents a budget instead of your card. Before an agent pays, calls a paid API, invokes an MCP tool or runs code, Shotoku checks the request against rules in one YAML file (resource, actions, max amount, max daily amount), routes it to an approval gate if needed, and records the decision in a hash-chained ledger on your machine. It is deterministic and takes no custody of funds. The MIT-licensed core includes the authorize() policy engine, CLI and terminal UI, an MCP server for Claude and Cursor, x402 payment authorization and signed snapshots. Team (shared policies, Slack approvals) is in development.

Shotoku · Image from the official website
Image from the official website

Use cases

  • Cap how much an AI agent can spend per purchase and per day on paid APIs or online payments
  • Require human approval before an agent calls an expensive API, uses an MCP tool or runs code
  • Keep a tamper-evident local audit trail of every agent spending decision

Frequently asked questions

What is Shotoku?
Shotoku is a local-first authorization layer that checks budgets, approval rules and policies before an AI agent spends money, calls paid APIs, uses MCP tools or executes code.
Where are decisions stored?
On your machine, in a hash-chained decision ledger; Shotoku takes no custody of funds.
How do I install it?
npm install -g shotoku-cli. Policies are written in a single YAML file, and an MCP server is available for Claude, Cursor and other clients.
Is it free?
The core engine, CLI, terminal UI and MCP server are open source (MIT) and free. A Team plan is in development; Enterprise is by contact.
Log in to join the discussion