Obolus
An MCP server that gives an AI agent a disposable Algorand wallet, so it can pay for x402 resources without a human provisioning anything.
The name is the coin paid to the ferryman for passage: small denomination, one purpose, spent and gone.
agent → x402_fetch(url) → 402 → sign → pay → body
x402 has over a thousand listed resources and almost no buyers — a handful of wallets account for nearly all volume, and they are scripted loops rather than agents. The rail exists; nothing can reach it. Obolus is the buyer-side piece: account setup, opt-in, signing and sweeping handled invisibly, so an agent just spends.
Install
uv tool install obolus
uv tool install rather than uvx: uvx re-resolves dependencies on every
invocation, which is the wrong trade for something an agent calls constantly.
pipx install obolus works too.
Add it to Claude Code
claude mcp add obolus -e OBOLUS_NETWORK=testnet -- obolus-mcp
Add it to any other MCP client
{
"mcpServers": {
"obolus": {
"command": "obolus-mcp",
"env": { "OBOLUS_NETWORK": "testnet" }
}
}
}
It starts on testnet. Mainnet is never disabled — Obolus is meant to make real payments — but it is never what you get by forgetting to choose.
Fund it
A new vault holds nothing, and the order is forced by the chain:
obolus vault # says which of the three steps you are on
obolus vault qr # scannable codes for the two things you can send
| # | Step | Who |
|---|---|---|
| 1 | Send ≥ 0.21 ALGO to the vault | you |
| 2 | Opt the vault into USDC (obolus vault optin) |
Obolus |
| 3 | Send USDC | you |
Step 3 before step 2 fails. An Algorand account cannot receive an asset it
has not opted into — the transfer is rejected outright, it does not sit pending.
That is why the QR codes encode the asset id and not just the address, and why
wallet_funding_info tells you which step you are on every time rather than only
on error.
The QR codes carry no amount. You type that into your own wallet, where you see it before confirming.
Use it
Three tools, deliberately:
| Tool | What it does |
|---|---|
x402_fetch |
Fetch a URL, paying if it answers 402. Returns the body. |
wallet_status |
Balances, the active session, spending today, the caps. |
wallet_funding_info |
How to put money in. For the human, not the agent. |
There is no tool for any particular merchant. Everything is reached through
x402_fetch, because the moment a wallet grows first-class verbs for one seller
it stops being a wallet.
What bounds a loss
The session balance, enforced by the chain. Payments come from a short-lived session account funded from your vault, never from the vault itself. A session cannot spend what it does not hold, and that is true regardless of what any code here does.
Everything else is in-process and configurable in config.toml inside your data
directory:
[caps]
session_balance_micro = 5000000 # $5 per session
per_call_micro = 500000 # $0.50 per call
daily_micro = 2000000 # $2 a day, resets 00:00 UTC
allowlist = [] # payTo addresses or hostnames; empty = any
[session]
idle_timeout_seconds = 600 # close and sweep back after this
[files]
# root = "/path/you/choose" # off unless set - see Safety
Some refusals are not caps and have no config key: paying an address we control,
a non-https resource on mainnet, an asset the wallet does not hold, and any
challenge that is not a well-formed x402 v2 402.
Safety
Your seed is the only way back to your money. It lives in your data
directory. Pointing OBOLUS_DATA_DIR at a new location creates a new wallet; it
does not move the old one. Back the directory up.
File access is off by default. x402_fetch can send a file to a paid
endpoint and write the response back, which is how you get an image signed or a
document processed. Both are disabled unless you set [files] root, and confined
to that directory when you do. This is deliberate: moving bytes off your machine
is not something a spend cap can bound.
Approval is per tool, not per payment. Most MCP clients ask once and remember.
That means the caps above are your real spending boundary, not the prompt — see
DESIGN.md §7.1, which documents what was measured rather than
what was assumed.
A settled payment proves settlement and nothing else — not that the resource was correct, honest, or worth its price.
Documentation
- CLAUDE.md — orientation, and the x402 facts that cost real debugging time to learn.
- DESIGN.md — architecture, the security model, and the limitations stated plainly.
- IMPLEMENTATION_PLAN.md — build order and what each phase actually proved.
Status
Working on mainnet. On 2026-08-13 and 08-14 an agent used Obolus over MCP to
buy three resources from a live merchant with real USDC — a notarisation at
$0.05, a second at $0.05, and a C2PA signature over a 13 MB TIFF at $0.15. Each
payment came from a disposable session account that was derived, funded, spent
and swept closed; two sessions, both reconciled, nothing stranded. All three
settlements landed with fee: 0, sponsored by the facilitator, as designed.
What that demonstrates is the rail, end to end: an agent with no human in the
loop held a key, answered a 402, and got the bytes. It does not say the
resources were worth their price — settlement proves settlement and nothing more.
Testnet remains the default and the place to develop. Mainnet is guarded, never disabled.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obolus-0.2.1.tar.gz.
File metadata
- Download URL: obolus-0.2.1.tar.gz
- Upload date:
- Size: 204.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
942a7f2f5508da93bc77b40046d9cfd77d93eaaf2b224c8448a9ca182ae560a9
|
|
| MD5 |
7cc16393de1676174056078d74c92a12
|
|
| BLAKE2b-256 |
46778b9053c96d1e63799e3026fd8f03960c6a2782d084cf08626231750e6c1f
|
File details
Details for the file obolus-0.2.1-py3-none-any.whl.
File metadata
- Download URL: obolus-0.2.1-py3-none-any.whl
- Upload date:
- Size: 82.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e6103fb63a8cd6410f3fe602b6b12632330634c6b8afb1961fd47ce918c9aba
|
|
| MD5 |
a1121f05256c2c6076429f2d158222f7
|
|
| BLAKE2b-256 |
adb4d5f3364e5492c9f5935ddae0ab910d64ca978705bf66183381edcabf5a25
|