In 1992, Tim Berners-Lee's team reserved HTTP status code 402 — Payment Required — for "future use." They knew the web would need native payments. They just didn't have the rails.
Three decades later, we got ads. We got subscriptions. We got data harvesting at scale. But we never got the thing the web's architects imagined: a way for one machine to pay another machine, instantly, for a tiny piece of value.
ClawPurse is an open-source micropayment ecosystem on the Neutaro blockchain that finally gives HTTP 402 a real job. A local encrypted wallet, an HTTP reverse proxy that gates any API behind on-chain micropayments, and an agent-friendly faucet — wired together so AI agents can discover a service, pay for it, and get the result without a human ever touching a form.
The code is on GitHub. The sites are live. Here's how it works.
The Stack
- ClawPurse Wallet — Self-Custodial Agent Treasury bashnpm install && npm run build && npm link
clawpurse init --password
clawpurse address
clawpurse balance --password
clawpurse send neutaro1... 1.25 --password
**What it is:** A local-only NTMPI wallet with AES-256-GCM encrypted keystores and scrypt key derivation.
**Why it matters for devs:**
- Programmatic API: `send()`, `getBalance()`, `delegate()` — import directly into your agent scripts
- Guardrail wizard: set per-tx spend limits, confirmation thresholds, and destination allowlists before your agent touches real tokens
- Built-in staking: delegate, undelegate, redelegate, track rewards, manage the 22-day unbonding period
- Full audit trail: every send recorded locally with tx hash, block height, memo, and guardrail status
No cloud custody. No third-party key management. Your keys stay on your machine.
**Repo:** [github.com/mhue-ai/ClawPurse](https://github.com/mhue-ai/ClawPurse)
---
### 2. ClawPurse 402 Gateway — Monetize Any API in Minutes
Client (agent/script/browser)
│
├── GET /api/data ──────────────▶ 402 Gateway
│ │
│ ◀── 402 Payment Required ─────────┘
│ { invoiceId, amount, address, memo }
│
├── clawpurse send
│
├── GET /api/data ──────────────▶ 402 Gateway
│ Header: X-Payment-Proof:
│ │
│ Gateway verifies tx on Neutaro │
│ │
│ ◀── 200 OK (proxied upstream) ────┘
What it is: An HTTP reverse proxy implementing 402 Payment Required. Put it in front of any backend. It handles invoicing, on-chain verification, and proxying.
Two payment flows:
Pay-per-request — each call gets an invoice, client pays on-chain, retries with proof:
pythonimport requests, subprocess
res = requests.get("http://gateway:4020/api/data")
if res.status_code == 402:
inv = res.json()["payment"]
subprocess.run([
"clawpurse", "send",
inv["address"], inv["amount"],
"--memo", inv["memo"], "--yes"
])
res = requests.get(
"http://gateway:4020/api/data",
headers={"X-Payment-Proof": inv["invoiceId"]}
)
data = res.json()
Prepaid balance — deposit once, deduct per call:
bash# Deposit
curl -X POST http://gateway:4020/prepaid/deposit \
-H "Content-Type: application/json" \
-d '{"txHash": "", "clientId": "my-agent"}'
Subsequent requests just use the client ID
curl -H "X-Client-Id: my-agent" http://gateway:4020/api/data
Key features:
Route-level pricing: cheap reads, expensive writes via GATEWAY_ROUTES
SQLite storage, zero external dependencies
One-command deploy: docker compose up
JWT-protected management API for internal wallets and transaction ledger
On-chain verification directly against Neutaro REST API — no oracles, no bridges
bash# Quick start
git clone https://github.com/mhue-ai/clawpurse-gateway.git
cd clawpurse-gateway && npm install
cp .env.example .env
npm run dev
Site: gateway.clawpurse.ai
Repo: github.com/mhue-ai/clawpurse-gateway
- Timpi Drip Faucet — PoW Instead of CAPTCHA Timpi Drip replaces CAPTCHA with proof-of-work challenges. ClawPurse ships the PoW solver, so agents can self-onboard with tokens and start transacting immediately. OpenClaw-authenticated agents get higher throughput drip rates. This solves cold start — the chicken-and-egg problem where an agent can't pay for services without tokens, and can't prove it's legitimate if it has to solve a CAPTCHA.
Why This Matters Right Now
The agentic economy went from demos to production in 2025. OpenClaw has 250,000+ GitHub stars. Coinbase open-sourced x402. Mastercard and Visa launched AI agent payment solutions. Deloitte projects $17.5 trillion in autonomous agent commerce by 2030.
But most of that infrastructure targets the biggest chains and enterprise platforms. If you're building on Cosmos, running DePIN nodes, or managing validator infrastructure — the tooling gap is real.
ClawPurse fills that gap for the Neutaro/Timpi ecosystem:
x402 / CoinbaseAgent PlatformsClawPurseChainBase, Solana, AptosMulti-chainNeutaro (Cosmos SDK)CustodyFacilitator-basedPlatform-custodiedSelf-custodial, localTargetEnterprise APIsSaaS buildersDePIN ops, validators, indie devsOnboardingFunded walletPlatform signupPoW faucet, zero signupLicenseOpen sourceProprietary/freemiumMIT
ClawPurse isn't competing with x402. It's implementing the same HTTP 402 pattern for an ecosystem that needs its own rails.
The Business Case in 60 Seconds
No payment processor fees — On-chain settlement to your own wallet. A 0.001 NTMPI request is as viable as a 100 NTMPI request.
Agent-first architecture — Built inside OpenClaw. Machines parse invoices, pay, and retry with proof autonomously.
Programmable guardrails — Spend limits, allowlists, confirmation thresholds. Your agent operates freely within boundaries you set.
DePIN-native — Same CLI manages validator delegations, staking rewards, and API micropayments.
MIT licensed, no lock-in — Fork it, extend it, self-host it. No vendor risk.
Get Started
bash# Wallet
npm install && npm run build && npm link
clawpurse init --password mypass
clawpurse balance --password mypass
Gateway
git clone https://github.com/mhue-ai/clawpurse-gateway.git
cd clawpurse-gateway && npm install
cp .env.example .env && npm run dev
Test the 402 flow
curl http://localhost:4020/api/test
Links:
🌐 clawpurse.ai — Main platform
🔀 gateway.clawpurse.ai — 402 Gateway
💧 drip.clawpurse.ai — Drip Faucet
📦 Wallet repo
📦 Gateway repo
🤖 SKILL.md — Agent integration docs
The internet finally has its pay button. The question is what you'll build behind it.
Explore ClawPurse
Top comments (0)