One SDK.
Any agent.
Any rail.

Give your AI Agents power to transact.
One integration - your agent can pay and be paid across Lightning L402, x402, and more. Monetize your MCP server in one line.

Live now · No card required · Talk to the person who built it.

quickstart.ts
import { PayAgents } from 'payagents'; const client = new PayAgents({ apiKey }); // pay any agent-gated endpoint await client.pay('api.llm.io/infer', { maxAmount: '0.001 USD', payload: { prompt: 'summarize' }, }); // ↳ rail auto-selected · Lightning
161M+
agent txns / month (x402)
$5T
projected agentic economy by 2030
<1¢
per tx on Lightning
10K+
MCP servers being built

A Simplest Payment API.

Three use cases. One API key. Routing, retries, rail selection, compliance — all handled server-side.

paying-agent.ts Send
import { PayAgents } from 'payagents'; const client = new PayAgents({ apiKey }); // pay any agent-gated endpoint await client.pay('api.llm.io/infer', { maxAmount: '0.001 USD', payload: { prompt: 'summarize' }, });
receiving-agent.ts Receive
import { PayAgents } from 'payagents'; const server = PayAgents.server({ apiKey }); // charge for any endpoint server.charge('/infer', { price: '0.001 USD', handler: (req) => runModel(req), });
new use case

Monetize Your MCP Server Infrastructure.

You don't know who will call your MCP server — or which payment rail they use. PayAgents handles all of it. One line of middleware, any agent can pay you.

mcp-server.ts
import { PayAgents } from 'payagents'; const pa = PayAgents.server({ apiKey: process.env.PAYAGENTS_API_KEY }); // gate any tool call behind payment server.tool('web_search', pa.charge({ price: '0.002 USD', per: 'call' }), async ({ query }) => { // payment verified ✓ — any rail return await search(query); } ); server.tool('image_gen', pa.charge({ price: '0.05 USD', per: 'call' }), async ({ prompt }) => { return await generateImage(prompt); } );
any-caller.ts
// Agent using PayAgents SDK const client = new PayAgents({ apiKey: '...' }) await client.pay('mcp://your-server/web_search', { payload: { query: 'latest AI news' } }) // Agent using L402 // → pays Lightning invoice in your 402 // → PayAgents verifies preimage ✓ // Agent using raw x402 / Coinbase // → signs EIP-712 USDC transfer // → PayAgents verifies on-chain ✓ // You receive payment regardless // of which rail the caller used ↑ // settled to your dashboard balance
Accept any rail
Lightning, x402, or both — you decide in your dashboard.
Per-tool pricing
Charge different prices for different tools in the same server.
Instant settlement
Funds land in your dashboard balance — withdraw anytime.
Zero custody risk
You never handle keys, wallets, or payment proofs directly.

Give your agent the ability to transact.

Spend controls, multi-rail routing, liquidity, and a full audit trail — added to any agent or MCP server in one line.

Your Agent
Active Engine
PayAgents Engine Policy · Routing · Settlement
Lightning
x402
Fiat (soon)
Capability The hard part Recommended
With PayAgents
Liquidity
You fund + rebalance sats & USDC.
One USD balance. We manage rails.
Failover
A retry loop you write and maintain.
Automatic cross-rail failover.
Correctness
Payment edge cases: timeouts, double-pays.
Two-phase settlement, fail-safe.
Control
Spend limits are another thing you build.
Policy engine: limits, allowlists, approvals.
Audit
Logs you stitch together yourself.
Every transaction logged with proofs & hashes.

Automated Lightning x402 Payment Rail Routing.

Whether you're paying an agent or receiving from one — PayAgents routes to the cheapest, fastest rail both sides support. MCP servers can accept any rail simultaneously.

Lightning Network
Sub-cent micropayments settled in milliseconds. Bitcoin-native, permissionless, censorship-resistant. Ideal for high-frequency agent calls.
L402 SATs instant
x402 / Base
Stablecoin payments on the Base chain via the x402 standard. Ideal for low-fee dollar-denominated agent tools. Built for machine-understandable 402 integration.
x402 USDC Base Chain
EVM, Taproot & Fiat
Expanding to more EVM networks for x402, native stablecoin configurations over Bitcoin Lightning via Taproot, and traditional fiat card rails.
Taproot Asset Fiat Rails Roadmap

Four steps. Done.

01
Sign up
Create a PayAgents account and grab your API key from the dashboard. Takes 30 seconds.
02
Install
npm install payagents. Plug in your API key. That's the entire setup.
03
Call
Your agent calls client.pay(). PayAgents detects the protocol and routes to the best rail automatically.
04
Done
Payment settles, your agent gets its response. Every transaction logged in your dashboard.

Frequently Asked Questions

Everything you need to know about giving transactional abilities to your AI agents.

Right now, we natively support **L402 utilizing SATs (Bitcoin Lightning)** and **X402 utilizing USDC on the Base chain**.

Our infrastructure roadmap includes adding other EVM chains for X402 support, native stablecoins directly on Bitcoin Lightning via Taproot, and traditional fiat card/ACH rails in upcoming rollout phases.

No. We provide a **unified wallet framework** that abstracts away all cryptocurrency complexities. Your account maintains a clean **USD balance** sheet.

In the background, our core engine programmatically handles all liquidity management, swapping, and value routing between USDC (Base) and Lightning SATs. You simply configure the exact target USD amounts without ever worrying about raw token management, gas limits, or underlying crypto rails.

For now, during our private beta phase, platform pricing is completely **zero (0%)**.

Later on, as we scale global machine routing volumes, we may introduce a minor developer platform fee of **1 percent** on each completed transaction link to support persistent liquidity networks.

One of the largest risks in multi-agent environments is an LLM hallucination causing a recursive calling loop that rapidly drains corporate capital. PayAgents solves this with rigid granular policy configurations.

From your control panel, you can enforce hard caps on a **per-transaction, per-day, and per-30-days** basis. Additionally, you can construct clean domain track-record guardrails specifying exact **allowed and disallowed destination domain lists** and establish manual approval triggers that intercept and stall any call exceeding your specific dollar thresholds.

By importing our single line of server-side middleware, you can add explicit micro-fees (e.g., $0.002 per call) to specific specialized tools or search utilities in your server. When external agents call your tool, PayAgents intercepts, checks if they support L402 or x402, authenticates the incoming settlement rail, verifies fulfillment proofs, and drops the payment into your dashboard balance instantly.

Built for what's
coming next.

Agents paying agents. MCP servers earning revenue. It's live now — get your API key and start charging, or talk it through with the founder first.