piprail
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Warn
- process.env — Environment variable access in .claude/skills/branding/design/deck/assets.mjs
- network request — Outbound network request in .claude/skills/branding/design/deck/assets.mjs
- network request — Outbound network request in .claude/skills/branding/design/deck/build.mjs
- crypto private key — Private key handling in .claude/skills/branding/design/deck/build.mjs
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Universal x402 payments — accept or pay crypto on any blockchain, in a couple of lines. Backendless, no fee; settled straight to your own wallet. Major chains preconfigured, any other works out of the box. TypeScript, MIT.
Let any HTTP endpoint charge for itself, and any agent pay for itself — across every major chain, in a couple of lines.
Website · Documentation · npm
PipRail implements the open x402 "402 Payment Required" standard with no backend, no database, no account, and no fee. Payments settle straight into your wallet, verified locally against your own RPC — across every major EVM chain plus Solana, TON, Tron, NEAR, Sui, Aptos, Algorand, Stellar & the XRP Ledger. Self-custodial throughout.
📖 Full documentation → docs.piprail.com
The single, searchable source of truth — every function, option, chain, and example. This README is just the front door.
What's here
@piprail/sdk |
The TypeScript SDK — accept & make x402 payments. The product. |
@piprail/mcp |
An MCP server giving any AI agent a budget-bound wallet (io.github.piprail/mcp). |
integrations/ |
First-party agent-framework integrations — e.g. OpenClaw (clawhub install piprail) & Hermes. Each wraps @piprail/mcp; nothing new to build. |
site/ · docs/ · examples/ |
piprail.com · the docs.piprail.com source · runnable demos. |
Quick taste
npm install @piprail/sdk viem
import { requirePayment } from '@piprail/sdk'
app.get('/report',
requirePayment({ chain: 'base', token: 'USDC', amount: '0.05', payTo: '0xYourWallet…' }),
(_req, res) => res.json({ report: 'TOP SECRET' }),
)
That route now costs 0.05 USDC on Base, paid straight to your wallet. Point an agent at it and it pays itself — name any chain with a single chain: parameter. The full quickstart, every chain, the MCP server, spend controls, and the error model are in the docs.
Documentation & links
- docs.piprail.com — the complete manual (source of truth)
- MCP server · Discovery · Supported chains
- Integrations — drop PipRail into agent frameworks (OpenClaw + Hermes today, more coming)
- Runnable examples — merchant + agent demos, a live Anvil end-to-end, and the
why-402teardown - Releasing (tag-driven CI) · Contributing (DCO)
Spread the word
PipRail is free, open-source, and has no backend to sell you — so word of mouth is how it grows. If it saved you from building a payments backend, the best way to give back is to help other developers (and their agents) find it:
- ⭐ Star PipRail on GitHub — the #1 way to help others discover it
- 𝕏 Follow @piprailhq — new chains, ship logs, and agent-payment tips
- 🌐 piprail.com · 📖 docs.piprail.com
License & trademark
Code: MIT — use it, fork it, ship it, commercially or otherwise.
Name & brand: PipRail™, the logo, and the @piprail npm scope are trademarks of the PipRail project — MIT covers the code, not the name. Build on it freely; just don't call a fork "PipRail" or imply it's official. See TRADEMARK.md.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found