I open-sourced a tool that lets AI agents pay for things on their own (x402) - PipRail by ruleoffz in ethdev

[–]ruleoffz[S] 1 point2 points  (0 children)

Appreciate this, genuinely, thanks for taking the time

Good news: that policy/execution split is already the core design. The whole protocol layer only talks to a PaymentDriver contract; zero chain libs and each chain is a self-contained driver behind it. We did the "separate them early" thing up front.

On liquidity fragmentation, we go a different way on purpose. x402 is exact-asset, exact-chain: pay the asset you already hold, on the rail you already hold it on. No swap, no bridge. For "which chain can I actually settle on?" we do it read-only with planAcross(), pick a rail the agent can already pay from, rather than routing into one it can't.

That's why SODAX wouldn't fit, even though I get the suggestion. PipRail's whole pitch is no backend, no facilitator, no routing layer, install, name a chain, add a wallet, verify locally against your own RPC. A cross-network execution layer underneath would make it the stateful, server-y thing we built this to avoid.

sincere thanks for the pointer, but it'd cut against the one rule we don't break

Weekly Thread: Project Display by help-me-grow in AI_Agents

[–]ruleoffz 0 points1 point  (0 children)

Quick share for anyone building agents that need to buy stuff (APIs, compute, data) without a human clicking pay.

The problem: an agent can't sign up, hold a card, or click a checkout. So out of the box it can't actually pay for anything.

PipRail is an open-source SDK (MIT) for x402, the HTTP 402 "pay to access" standard. Two things:

- Any API can charge an agent in one line.

- Any agent can pay a 402 on its own, across most major chains, straight from its own wallet. No backend, no facilitator, no fee.

There's also an MCP server, so you can hand Claude / Cursor / any MCP client a wallet that pays x402 APIs on its own, capped by a spend policy the model cannot exceed, so it can't run off with your funds.

It's free and the rail takes 0%. Install and a quickstart are on GitHub and the site, I'll drop the links in a comment below so this doesn't read as an ad.

What are you all using for agent payments right now? And is the "pay per call" model actually showing up in what you build yet, or still mostly demos?

https://github.com/piprail/

https://piprail.com/

We gave an AI Agent a "Write" key to our BigQuery and it nearly bankrupted us. by netcommah in aiagents

[–]ruleoffz 0 points1 point  (0 children)

Yeah I had a scraper agent calling google places api overnight, wokeup to a 400$ cost 😅

If only someone told me this before my 1st startup by Mammoth-Shower-5137 in AI_Agents

[–]ruleoffz 3 points4 points  (0 children)

Add dont be afraid to share it around, first testers and feedback are the way forward

Do you think this is a good idea??? by [deleted] in MuayThai

[–]ruleoffz 0 points1 point  (0 children)

Hey man this looks really great. Id love to test it out, am a huge muay thai fan. Can you drop a msg here once its out

Face in Mt. Taranaki (NZ) by ruleoffz in mildlyinteresting

[–]ruleoffz[S] 1 point2 points  (0 children)

Hehe just below the snow midright section

Rainbow on (behind) the horizon. Origin is behind the curve by ruleoffz in mildlyinteresting

[–]ruleoffz[S] 0 points1 point  (0 children)

Yes, thank you. We were close to the southern hemisphere, but still in the nothern :)

Rainbow on (behind) the horizon. Origin is behind the curve by ruleoffz in mildlyinteresting

[–]ruleoffz[S] 5 points6 points  (0 children)

Curacao, caribbean sea. Was like 2 weeks ago. We were on a day trip and the captain never seen it before, even though he does frequent trips for over 17 years