Shotoku
Local CLI that puts budgets, approvals and an audit log in front of AI agent spending
100X Meter Early
Think Shotoku could go 100X?
Give it a push. One tap per reader each day; the meter tracks buzz here, not quality.
Tell your network you backed Shotoku early
Download share cardWhat Shotoku does
Shotoku is an open-source tool that sets spending limits for AI agents. Before an agent pays for something, calls a paid API or uses an MCP tool, it asks Shotoku, which checks your rules and answers approved, denied or pending approval. Everything runs on your own machine: there is no account, no cloud and no telemetry, and Shotoku never holds money, card details or keys. It only decides whether a spend is allowed and writes the decision down.
The makers’ framing on the homepage is “Give your agents a budget, not your card.” The problem it targets is an agent with access to a payment tool doing exactly what it was told, including things you would not have approved. The README walks through a support agent wired to PayPal’s MCP server: an $89 refund goes through, a $480 refund is held because it is over a $100 limit, and you approve or deny it from your phone.
How it works
Rules live in one YAML policy file. Each rule names a resource (such as openai.com or stripe.com), the actions it covers, and limits: maxAmount per transaction and maxDailyAmount over a rolling 24 hours. Agents also get a daily budget across everything. Over a limit, a request is denied, or held for a person if the rule says overLimit: pending_approval. A request with no amount against a limited rule is held rather than counted as zero.
Every decision is appended to a local, hash-chained log at data/decisions.jsonl, which you can read, move or delete. You can approve from the terminal, a local dashboard (shotoku ui) or Telegram, where pending decisions arrive with Approve and Deny buttons. Developers call it with one TypeScript function, authorize(); agents that speak MCP can use its MCP server without code changes, and a wrapping mode puts the agent’s other MCP servers behind your policy. It also handles x402, a protocol for paying for web requests. Install is npm install -g shotoku-cli.
Status and price
Shotoku calls itself beta: the FAQ says the core authorisation path is stable and tested and runs end to end against PayPal’s sandbox, but the API will change. The changelog shows a first public beta in June 2026, a gateway and MCP wrapping in July (v0.2.0-beta), and PayPal support, phone approvals and agent budgets between August and October. The GitHub repository is MIT-licensed and showed 11 stars and 124 commits on 15 November 2026.
The open-source version is free. A Team plan with Slack approval routing, multi-approver rules and a central dashboard is listed as coming soon, and an Enterprise tier (signed receipts, RBAC, SSO, compliance exports) is by conversation. The site says it is built by two developers from France, Julius and Issa. It was posted to Hacker News as a Show HN on 14 November 2026.
Who it is for
It is for developers building agents that can spend money or run up API bills and who want hard limits and an audit trail outside the model, rather than trusting a prompt. It isn’t a payments product and it isn’t for non-technical users: you need Node, a terminal and some comfort with YAML. Gateways such as LiteLLM and Portkey also cap spend, but on LLM API usage rather than on purchases and tool calls.
We have not tested Shotoku ourselves. It launched recently and may change quickly, so check the official site before you rely on any detail here. Everything on this page comes from the pages listed under Sources, read on 15 November 2026.
What people use Shotoku for
- Cap how much an agent can spend per transaction and per day with each vendor
- Hold large refunds or purchases for a human to approve from the phone
- Put an agent's MCP tools, such as PayPal's, behind a spending policy
- Keep a tamper-evident log of every spending decision an agent made
- Limit paid API calls an autonomous agent can make
Shotoku pricing
The core is open source and free. Paid tiers are planned for teams and enterprises.
| Plan | Price | What you get |
|---|---|---|
| Open Source | Free | authorize() core and policy engine, hash-chained ledger, CLI and terminal UI, MCP server, x402 payment authorisation, signed snapshots |
| Team | Coming soon | Org-level policies, approval routing to Slack, multi-approver rules, central ledger dashboard |
| Enterprise | Contact Shotoku | Signed receipts and enforcement integration, RBAC on approvals, compliance exports, SSO/SAML/SCIM, support SLA |
MIT licence. The site says your policies and ledger stay on your own infrastructure on every tier.
Checked 15 November 2026 · Official pricing page ↗ · Prices change, so confirm before you buy
Who Shotoku is for
- build agents that can pay for things, issue refunds or call paid APIs
- want limits enforced by rules outside the model, with an audit log
- prefer tools that run locally with no account or cloud service
- aren't comfortable with npm, a terminal and a YAML policy file
- need a team dashboard and Slack approvals today: the Team plan is still in development
- need a stable API: the project is in beta and expects changes
Shotoku pros and cons
- Free, MIT-licensed and runs entirely on your machine
- Never holds funds, credentials or keys
- Approvals from terminal, local dashboard or Telegram
- Works with any agent that can call a function or speak MCP
- Public changelog and an honest beta label
- Beta software with an API that will change
- Small project so far (11 GitHub stars on 15 November 2026)
- Team features are not available yet
- Only enforces what is routed through it; you have to put it in the path
Shotoku alternatives and how they compare
Other ways to cap what AI agents spend. Details are from each project's own page on 15 November 2026.
| Product | What it is | Starts at | Reviews | How it differs from Shotoku |
|---|---|---|---|---|
| Shotoku this page | Local CLI that puts budgets, approvals and an audit log in front of AI agent spending | Free and open source (MIT) | No reviews yet | — |
| PayGraph | Open-source spend governance for agents, with virtual cards and x402 payments | Free (open source, Python) | — | Issues single-use virtual cards and pays through Stripe or x402 itself; Shotoku never touches payments and only decides. |
| LiteLLM | Open-source, self-hosted AI gateway with spend tracking and budgets | Free open source; Enterprise on request | — | Caps spend on LLM API calls routed through the gateway, not purchases or refunds an agent makes. |
| Portkey | AI gateway with logging, guardrails and virtual keys | Free (10k logs/month); $49/month plan | — | Hosted gateway for LLM traffic; budget limits on virtual keys are listed in its plans. It doesn't approve payments. |
Shotoku reviews
Write a review
Thanks — share your take?
Frequently asked questions
What is Shotoku?
An open-source tool that checks every spend or paid call an AI agent wants to make against your budget rules, holds big ones for your approval, and logs each decision locally.
Is Shotoku free?
Yes. The open-source version is free under the MIT licence. A Team plan is in development and Enterprise is by conversation.
Does Shotoku handle my money or keys?
No. According to the site, it holds no funds, stores no credentials or private keys and never signs or settles a payment. It only decides and records.
Can I approve a spend from my phone?
Yes. The shotoku telegram command sends each pending decision to Telegram with Approve and Deny buttons. There is also a local dashboard and a terminal UI.
Is it production-ready?
It is in beta. The makers say the core path is stable and tested against PayPal's sandbox, but the API may change.
Sources (8), checked 15 November 2026
- Shotoku home page and FAQ
- Shotoku pricing
- Shotoku changelog
- Shotoku on GitHub
- Show HN post, 14 Nov 2026
- PayGraph on GitHub
- LiteLLM
- Portkey pricing
We list Shotoku from public sources and are not affiliated with it. Spotted something wrong? Tell us.