Payments infrastructure for the agentic economy

One SDK.
Any agent.
Any rail.

Stop building payment plumbing. One integration — your agent can pay and be paid across Lightning, x402, and more. Automatically routes to the best rail for every transaction.

You're on the list — we'll be in touch.

Early access. No spam. Unsubscribe anytime.

161M+
agent txns / month (x402)
$5T
projected agentic economy by 2030
<1¢
per tx on Lightning
1 SDK
to rule them all
Embarrassingly simple.

Two methods. That's the entire surface area of PayAgents. Under the hood — routing, retries, wallet abstraction, protocol negotiation. All handled.

paying agent — call any service
import { PayAgents } from 'payagents' const client = new PayAgents({ wallet: process.env.AGENT_WALLET_KEY }) // pay for an inference endpoint const result = await client.pay('https://api.llm.io/infer', { maxAmount: '0.001 USD', payload: { prompt: 'summarize this' } }) // auto-routed to best rail ↑ // Lightning if <$0.01, x402 otherwise
receiving agent — charge for your service
import { PayAgents } from 'payagents' const server = PayAgents.server({ receive: process.env.RECEIVE_ADDRESS }) // gate any endpoint behind payment app.post('/infer', server.charge({ price: '0.001 USD', per: 'request' }), async (req, res) => { // payment already verified ✓ // just handle your business logic res.json({ result: await runModel(req) }) })
Best rail, automatically.

PayAgents inspects each transaction and routes to the cheapest, fastest rail the counterparty supports.

Lightning Network
Sub-cent micropayments settled in milliseconds. Bitcoin-native, permissionless, censorship-resistant. Ideal for high-frequency agent calls.
L402 <$0.001/tx instant
x402 / USDC
HTTP-native stablecoin payments on Base and EVM chains. No accounts, no API keys — payment is the authentication. Fastest-growing agent payment standard.
x402 USDC EVM-native
Fiat rails
Stripe, ACH, and card networks for services that require traditional payment infrastructure. Coming in v2 — sign up to be notified.
MPP coming v2
Four steps. Done.
01
Install
One npm install. Bring your own wallet key or connect Alby / Voltage.
02
Discover
Your agent hits an endpoint. PayAgents reads the 402 headers and detects protocol.
03
Route
Automatically picks Lightning, x402, or fallback based on amount and counterparty.
04
Settle
Payment completes, request retries with proof. Your agent gets its response.

Built for what's
coming next.

The agentic economy is being built right now. Get in early.

You're on the list — we'll be in touch.