Shotoku

Shotoku enforces budgets, spending limits and human approvals for AI agents locally on your machine, with a tamper-evident audit trail — no cloud, no custody.

Working when we checked on .

Visit Shotoku

What is Shotoku?

Shotoku provides budgets, approval gates, and a tamper-evident audit trail for AI agent spending, enforced locally before payments occur. It is built for developers running autonomous AI agents that spend money, call paid APIs, use MCP tools, or execute code. Policies are defined in a YAML file with per-vendor maxAmount and maxDailyAmount limits, and an approval queue can route big spends to a human via Telegram, a local dashboard, or a terminal UI. Shotoku holds no funds or credentials, stores decisions in a local JSONL file, and offers an MCP wrapping mode and a single TypeScript authorize() function.

Shotoku pricing

Pricing model: Free

Shotoku pros

  • Enforces budgets and approvals before payments happen, deterministically
  • Local-first: no account, cloud, telemetry, or custody of funds or keys
  • Policy-as-config YAML with per-vendor transaction and daily spend limits
  • MCP wrapping mode intercepts tool calls, including PayPal's MCP server
  • Human approvals via Telegram, local dashboard, or terminal UI
  • Open source on GitHub with a simple npm install and one-function API

Shotoku cons

  • In beta — early but functional, and the API is expected to evolve
  • No pricing or paid plans documented
  • Decisions stored only in a local JSONL file, tied to a project directory
  • Denials leave next steps (retry, halt) entirely to the developer

Frequently asked questions about Shotoku

How do I stop my AI agent from overspending?

Give it a budget. Policy rules take maxAmount (per transaction) and maxDailyAmount (a rolling 24-hour limit) per vendor, and over-limit requests are denied or held for human approval before the payment happens.

How is Shotoku different from writing an if statement before an API call?

An if statement is logic; Shotoku is infrastructure. It adds rolling budgets, a structured audit trail, a human approval queue, policy as config instead of code, and MCP integration that applies the same rules anywhere the agent runs.

What stops an agent from bypassing Shotoku entirely?

In MCP wrapping mode Shotoku sits in front of the agent's other MCP servers so every tool call is decided first. Elsewhere, signed receipts: approved decisions carry a short-lived token that a payment proxy or CI verifies before executing.

Does Shotoku touch my money or keys?

Never. Shotoku holds no funds, stores no credentials or private keys, and never signs or settles payments. It only decides whether a spend is allowed and records the decision.

Do I need an account or internet connection?

No. Shotoku runs entirely on your machine with no account, cloud, or telemetry. Decisions are stored locally in a JSONL file that can be inspected, moved, or deleted at any time.

Where are decisions stored?

In a local append-only file at data/decisions.jsonl inside your project. Every decision — approved, denied, or pending — is written there in plain text.

Can I use Shotoku with any AI framework or agent?

Yes. The core is a plain TypeScript function, so any agent that can call a function can use it. Any MCP-compatible agent can use the MCP server without code changes, including wrapping existing servers like PayPal's.

Can I approve pending decisions from my phone?

Yes. shotoku telegram sends each pending decision to Telegram with Approve and Deny buttons, and only your taps count. There is also a local dashboard (shotoku ui) and a terminal UI.

Is Shotoku production-ready?

It is in beta — early but functional. The core authorization path is stable and tested and runs end to end against PayPal's sandbox, but the API is expected to evolve.

Who is Shotoku for and who built it?

It is for developers building autonomous AI agents that spend money or invoke tools. It was built by Julius (@juliuspsc) and Issa (@prunier_issa), two developers from France, and is open source today.

Categories

Use cases

Alternatives to Shotoku

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z