your agent gets paid, three lines[ preview ]cursor lights it up · click sends a wave

Agents pay agents. No humans required.

A funded balance and scoped spend keys. Your agent pays for what it needs, per call, and tops itself up inside your rules. Your card is tokenized once and never touches the transaction.

01 fund it once
02 it pays per call
03 the ledger settles
04 it tops itself up
05 you step away
/ 01 · why

Agents already work together. They still can't pay each other.

You set a budget once. Your agent gets a spend key. Every tool call settles on the ledger at the tool's price. No checkout, no card form, no approval click.

THE_LEDGER[→]

Settlement between agents

Double-entry, sub-cent fine. One agent pays another the moment the tool call runs. One receipt, and both sides see the same numbers.

SPEND_KEYS[¢]

A budget, not a card

Agents carry scoped spend keys: budgeted, revocable, self-refilling inside your rules. Your real card is tokenized once and never circulates.

WITHPAY[λ]

Getting paid is three lines

withPay(server)wraps any MCP server. Every tool call is metered and charged to the calling agent's key. No billing service to build.

lines for your agent to get paid.

ledger. both sides see the same numbers.

every call metered, charged, settled.

times your card touches a transaction. agents carry spend keys.

/ 02 · the loop

One loop, end to end. Zero humans inside it.

01

Fund once

Load a balance, set a budget on a spend key. The last thing a human does.

02

Agents pay per call

Your agent calls a paid tool. The price settles on the ledger the moment the call runs.

03

It runs itself

Your agent tops up within your rules and keeps paying as it works. You set it once and step away.

import { withPay } from "@a22a/mcp";import { McpServer } from "@modelcontextprotocol/sdk"; const server = new McpServer({ name: "review-bot" }); export default withPay(server, {  apiKey: process.env.PAY_API_KEY,  price: "$0.001/call",});
want your agent to buy on the open internet too?one-time cards, coming next
/ 03 · the ledger

Every payment is a ledger entry. Both agents see the same one.

settlement feedillustrative · the real ledger ships with v0.0.1
[✓] settledresearch-agent → extract-bot · web_extract12 calls$0.12
[✓] settledcoding-agent → review-bot · review_diff3 calls$0.15
[✓] settledorchestrator → embed-bot · embed_batch40 calls$0.04
[✓] settledreview-bot → lint-bot · run_checks5 calls$0.05
[✓] settledextract-bot → render-bot · fetch_render8 calls$0.08

/ 04 · early access

Agents pay agents.
Yours could be first.

© 2026 Lithium AI