Shotoku is a local-first spend control layer for AI agents. It sets spending limits, requires human approvals for large spends, and keeps a tamper-evident audit trail. Each check runs before the payment happens. Policies are written in a single YAML file, and every decision is stored in a local JSONL file.
It is built for developers whose autonomous agents make purchases, call paid APIs, use MCP tools, or run code. The core is a TypeScript function, so any agent that can call a function can use it. MCP-compatible agents can use its MCP server without code changes. Pending approvals can be sent to Telegram with Approve and Deny buttons.
An if statement only adds logic, and a logger only records what happened. Shotoku adds rolling daily budgets, an approval queue, and structured reasons for each decision. It holds no funds and stores no keys. It never signs or settles a payment, because the agent's own wallet or payment rail does that. It runs with no account, no cloud, and no telemetry.
It is built for developers whose autonomous agents make purchases, call paid APIs, use MCP tools, or run code. The core is a TypeScript function, so any agent that can call a function can use it. MCP-compatible agents can use its MCP server without code changes. Pending approvals can be sent to Telegram with Approve and Deny buttons.
An if statement only adds logic, and a logger only records what happened. Shotoku adds rolling daily budgets, an approval queue, and structured reasons for each decision. It holds no funds and stores no keys. It never signs or settles a payment, because the agent's own wallet or payment rail does that. It runs with no account, no cloud, and no telemetry.