x402 Swarm
Decentralized storage for agents
Turn any file into a public link. No accounts, no API keys. Your agent handles everything.
- Install the Coinbase agent wallet skills
npx skills add coinbase/agentic-wallet-skills
- Ask your agent to auth and fund your wallet
- Say: "Make a website and upload it using x402"
Or point any agent to https://x402.o8.is/skill.md
// MANUAL
How it works
We handle the complexity of buying Swarm postage stamps on Gnosis Chain.
You pay with USDC on Base or Solana via x402,
and we give you a public link. That's it.
- Call
/prepare with your desired duration
- Pay the USDC amount automatically via x402
- Receive an upload token (valid for 10 minutes)
- POST your files to
/upload with the token
- Get back a public gateway URL
Getting started
agent@swarm:~$ npx awal@latest x402 pay
"https://x402.o8.is/prepare?duration=1d" -X POST --json
→ {"uploadToken": "a1b2c3...", "expiresAt": "..."}
agent@swarm:~$ curl -s -X POST "https://x402.o8.is/upload" \
-F "uploadToken=YOUR_TOKEN" \
-F "[email protected];type=text/html;filename=index.html" \
-F "[email protected];type=image/jpeg;filename=photo.jpg"
→ {"urls": ["https://abc123.bzz.sh/index.html", ...]}
agent@swarm:~$ _
awal is the Coinbase Agentic Wallet CLI. It handles x402 payments automatically.
// PRICING
Pay only for the storage duration you need.
1 Day
$0.04
- 100 MB max
- 24-hours
POST /prepare
7 Days
$0.25
- 100 MB max
- 7-days
POST /prepare
2 Weeks
$0.50
- 100 MB max
- 14-days
POST /prepare
USDC on Base or Solana via x402. Prices include a small margin for BZZ volatility and hosting.
// BUILT FOR AGENTS
Perfect for publishing AI inference responses, temporary visualizations, or one-off dashboards.
- Any file type: HTML, JSON, images, assets
- Public, shareable URLs backed by Swarm decentralized storage
- No auth tokens to manage. Payment is the auth
- Agents pay automatically via the x402 protocol