Testnet only. Sei Atlantic-2, chain 1328.Not audited. Test funds only.
TestnetOpen app

Build

Agents (batin-mcp)

Let AI agents pay privately, each with its own key, limits, allowlists, expiry and revocation.

On this page
  1. One key per agent
  2. Where the limits are enforced
  3. Tools
  4. Payroll from a server
  5. Proving

batin-mcp is an MCP server. An agent that speaks MCP (Claude, Cursor, or your own) can check a hidden balance, pay a batin1 address, fund a claim link, make an invoice link, and pay for API calls that answer 402. Testnet only. Not audited.

One key per agent

npx batin-mcp agent add --name research --usdc-per 0.05 --usdc-daily 1 --host api.example.com --days 30
npx batin-mcp agent add --name payouts --usdc-per 20 --usdc-daily 100 --to batin1… --to batin1…
npx batin-mcp agent list
npx batin-mcp agent revoke research

The key is printed once. The server keeps only its SHA-256 hash, with these rules:

Rule Meaning
--usdc-per, --sei-per Largest single payment. An asset with no limit set can't be spent at all.
--usdc-daily, --sei-daily Total per UTC day.
--to batin1 addresses batin_pay may pay.
--host Hosts batin_paid_fetch may pay.
--links Allows batin_create_link. A claim link is cash: whoever opens it first gets the money.
--days Expiry.
agent revoke Takes effect on the next call.

Where the limits are enforced

In the server, before anything is proved or sent. The server reserves each amount while it pays, so two calls can't both fit under the same limit. Every payment is recorded with its transaction hash, and batin_spending shows an agent its own record.

This is server-side enforcement, not a rule inside the zero-knowledge proof. Run the server in HTTP mode and give agents only their keys. The agents never hold the wallet seed, so the limits are a real boundary. In stdio mode the server runs on the agent's own machine next to the seed. There the limits keep the agent's tool calls in bounds, but they can't stop code that reads the seed itself. A circuit that enforced an agent's limits in the proof would remove this trust. It is a possible next step, not built.

# HTTP: one server, many agents (each sends Authorization: Bearer <its key>)
BATIN_BACKUP_FILE=./batin-backup.json BATIN_PASSPHRASE='…' npx batin-mcp http --port 8787

# stdio, for one agent
claude mcp add batin --env BATIN_AGENT_KEY=bak_… --env BATIN_BACKUP_FILE=/path/batin-backup.json --env BATIN_PASSPHRASE='…' -- npx -y batin-mcp

The package ships a SKILL.md that tells an agent how to use the tools within its limits.

Tools

Tool Does
batin_balance Hidden balance and receiving address
batin_spending This agent's limits, today's spend, recent payments
batin_pay Private payment to an allowlisted address
batin_create_link Funds a one-time claim link, if allowed
batin_request Request or invoice link to this wallet. Moves no money
batin_paid_fetch Pays a 402 from an allowlisted host, then fetches again. See Pay per call

Payroll from a server

npx batin-mcp payroll --csv team.csv --asset USDC pays every row as its own private payment and writes a results file. Put it in cron for a recurring run. A rerun on the same day skips the rows already paid.

Proving

The server proves on its own machine. It downloads the circuit files from this site once and refuses them unless their SHA-256 matches. Proving uses snarkjs, which is GPL-3.0. The rest of batin-mcp is Apache-2.0.

Source: apps/web/content/docs/mcp.md