Now Live on Stacks Mainnet

Give a credit card
to your agent

Enable AI agents to pay for API access with Bitcoin micropayments.
Monetize your endpoints with x402 middleware.

server.ts
import { x402PaymentRequired } from 'x402-stacks';

app.get(
  '/api/premium-data',
  x402PaymentRequired({
    amount: 1000, // microSTX
    recipient: 'SP2...',
  }),
  (req, res) => {
    res.json({ data: 'Premium content' });
  }
);

Built for the Machine Economy

The infrastructure layer for autonomous agent transactions.

Micropayments

Accept payments as low as 0.000001 STX. Perfect for LLM token streaming.

Sybil Resistance

Prevent spam and abuse by requiring a small proof-of-work payment.

Drop-in SDK

Integrate with Express, Fastify, or Next.js in minutes.

Dynamic Pricing

Adjust costs based on server load or user tiers automatically.

Agent Native

Standardized 402 Payment Required headers that agents understand.

Non-Custodial

Payments go directly to your wallet. We never touch your funds.

Ready to monetize?

Join the developers building the financial rails for AGI.