Patram
Supervised autonomy for AI agents on Solana. Agents can pay, spend and settle invoices without ever holding funds, because every movement of money is executed by a program-owned vault under limits a human set.
Note
What Patram is
Patram is a payment platform for autonomous agents built from four pieces: a Solana program that custody funds in a per-agent vault, an SDK that agents call to move money, a set of backend services that record limits and raise approvals, and a dashboard where a human supervises every agent.
| Piece | What it does | Where it lives |
|---|---|---|
| Vault program | Owns the funds, enforces the on-chain daily limit, and releases SOL only for instructions signed by the agent's key. | DuTvz2VmSRTCPAtA9kLocWUZqEzhjBPqWAZVTzjwNKv7 |
| SDK | patram-sdk — guarded transfers, agent tools, and the x402 paying fetcher. | Your agent process (Node 20+) |
| Platform services | SDK Server on port 7000 and dashboard-backend on port 8000. | Self-hosted (see Self-hosting) |
| Dashboard | Agent registry, credentials, approvals, gas tank, receipts. | /dashboard |
The problem Patram removes
Giving a language model a funded keypair is the most expensive mistake in agent engineering. One hallucinated tool call, one injected instruction in a scraped page, one runaway loop and the wallet is empty. There is no chargeback and no undo on-chain.
The usual workarounds are both bad: fund the agent and pray your prompts hold under adversarial input, or keep the agent read-only and route every payment through a human, which removes the autonomy you were building.
Patram removes that trade-off.
The broke-agent principle
The agent is never funded. It holds a keycard — a Solana keypair whose vault is the only account with money. Signing alone moves nothing; the signature is an authorization presented to a program that checks it against rules the human configured.
What a leaked agent secret actually buys
secretKey can ask the vault to spend, but cannot take the vault: they are bound by the same daily limit, the same program checks, and the same approval queue. They can still cause damage inside the limit, which is why you rotate credentials and keep limits small. See .How a payment flows
Steps 1–3 happen inside the SDK call. Step 4 is the only step an attacker has to beat, and it runs on Solana.
What you get
Guarded transfers
Daily-limit-aware SOL transfers from the vault, with a local pre-check and on-chain enforcement.
Agent tools
Drop-in AI SDK tools so a model can pay and fetch without touching keys or RPC.
x402 payments
A fetch wrapper that pays HTTP 402 invoices and retries, inside the same limits.
Human override
Breaches create an approval request, notify the owner over WebSocket, and wait for a wallet signature.
Gas tank
Platform-sponsored transaction fees, so agents never need SOL for fees.
Receipts
Per-agent ledger and exportable vault-cost receipts for accounting.
Scope of the v1 program
Production documentation should be precise about what is enforced where. This is the current boundary:
- Enforced on-chain: vault custody, PDA authority, the daily limit stored on the vault, and the vault balance.
- Enforced by platform services: the agent registry, credential issuance, approval requests, and the transaction ledger.
- Advisory in the SDK: the local limit pre-check, which exists to avoid submitting transactions that are certain to fail.
- Not part of v1: per-destination allow-lists, oracle-indexed limits, and multi-asset spending limits. The
dailyLimitUsdccolumn exists for forward compatibility but is not enforced by the current program.
Networks
| Environment | RPC | Program | Use |
|---|---|---|---|
| Development | https://api.devnet.solana.com | DuTvz2VmSRTCPAtA9kLocWUZqEzhjBPqWAZVTzjwNKv7 | Everything in this documentation |
| Mainnet | — | Not deployed | Do not point production funds at devnet assumptions |
The SDK and both services currently target Solana devnet. Treat mainnet as an explicit migration project, not a configuration flag.