The data layer for agentic commerce
Your agents are transacting.
Mallard keeps the books.
AI agents have started spending money. Mallard tracks it. Every x402 payment your agent makes becomes a structured, tamper-evident event. Get a ledger agents and humans can query and trust.
- 01 · record() Every payment, structured. One SDK call captures vendor, amount, asset, chain, and intent — in the correct units, with the correct timestamps.
- 02 · check() Know before you pay. One call tells the agent whether it's already bought this, whether the price is normal, and whether the vendor is new.
- 03 · audit Append-only by design. Every event lands in a hash-chained log that the application role cannot mutate — not in code, not by mistake.
- 04 · intent-aware The why, not just the what. Every event carries the query the agent was answering, the task it was doing, the context it had. Your ledger reads like a journal, not a spreadsheet.
- 05 · multi-agent One account, many agents. Each agent gets its own history and its own spending profile. Isolated per-agent, rolled up per operator.
- 06 · drop-in Runs where fetch runs. Node, Bun, Deno, the browser, an edge worker. No runtime tricks, no SDK server, no framework lock-in.
Install for free · 30 seconds
~ / agent · zsh
mallard-sdk
npm install @trymallard/sdk
copy
npx @trymallard/cli init
copy
→token written · agent authenticates automatically