Agent Treasury: policy-gated spending for AI agents by Maksim ZubovAgent Treasury: policy-gated spending for AI agents by Maksim Zubov

Agent Treasury: policy-gated spending for AI agents

Portfolio project
Maksim Zubov
Agents can hold a wallet, but nothing in the model decides what they are allowed to spend. Agent Treasury sits between an agent's intent and Solana settlement: per-transaction and daily limits, a recipient allowlist and an approval band are evaluated as a pure function before any network call, and the decision comes back with its reasons attached.
Routing goes through MultiHopper: estimate, create, prepare, then signing and broadcast in the required order (keeper funding, route init, orchestrator, sessions), with every bundle signed locally and confirmed on chain. Batch payouts reuse the same path and reach up to 20 wallets from one route, where hops dominate the cost and extra destinations are nearly free.
Verified end to end on devnet: transfer 1738 reached completed with 4 hops and no errors, the recipient received exactly 99502487 lamports as quoted, and the 0.25% integrator share (248756 lamports) was credited on chain. The live API disagrees with its own documentation in six places (required amountTokens, Idempotency-Key on prepare, bodyless JSON POSTs, routeInitSignatures on the first confirm, inconsistent envelopes, base64 bundles); each one is handled here and pinned with a regression test.
TypeScript, 34 tests, GitHub Actions green. Code and product page: https://github.com/maximvalerevich/agent-treasury

0 likes · 0 views · Nov 21, 2026

Policy-gated spending for AI agents on Solana: limits, allowlist and approval band enforced before any call, multi-hop routing via MultiHopper, local signing.Bl

Tags