On-chain USDC payment gateway for AI agents. x402 protocol.
pincerpay is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on agent, agent-sdk, agentic-ai, ai-agents. It currently has 1 GitHub stars and 1 forks, and sits alongside related tools like dna-x402, piprail, Sentinel, x402-client, tdm-integration-kit, tdm-sdk.
The payment gateway for the agentic economy. Accept payments from AI agents. Add a few lines of code. Settle instantly in USDC.
npx @pincerpay/cli signup
# email + password + 6-digit code from your inbox
npx @pincerpay/cli bootstrap-merchant --name "Acme Co" --chains "solana,polygon"
# → generates non-custodial wallets, creates merchant, mints API key
# → prints env vars ready to paste into `vercel env add`
That's the full onboarding flow. Terminal-only. Phantom + MetaMask compatible wallets generated locally. PincerPay never sees your keys. See docs/onboarding and docs/cli for full reference.
Agent → 402 Challenge → Sign USDC Transfer → PincerPay Facilitator → Blockchain → Merchant

PincerPay is a non-custodial x402 facilitator. When an AI agent hits a merchant API and gets HTTP 402, the agent signs a USDC transfer. PincerPay verifies the signature, broadcasts to the blockchain, and confirms settlement.
| Package | Description | Docs |
|---|---|---|
apps/facilitator |
x402 facilitator service (Hono + Node.js) | |
apps/dashboard |
Merchant dashboard (Next.js 15) | |
packages/merchant |
Merchant SDK with Express + Hono middleware | README |
packages/agent |
Agent SDK with automatic x402 payment handling | README |
packages/core |
Shared types, chain configs, constants | README |
packages/db |
Drizzle ORM schema + migrations | README |
packages/program |
Anchor program client for Solana | README |
packages/solana |
Kora gasless txns + Squads smart accounts | README |
packages/onboarding |
Non-custodial wallet generation + merchant bootstrap | README |
packages/cli |
Terminal-only merchant onboarding (npx @pincerpay/cli) |
README |
packages/mcp |
MCP server for AI assistants (26 tools) | README |
examples/ |
Example merchant and agent apps |
pnpm install
pnpm build
# Start all services
pnpm dev
# Start individual services
pnpm --filter @pincerpay/facilitator dev
pnpm --filter @pincerpay/dashboard dev
# Generate migrations from schema
pnpm db:generate
# Push schema to database
pnpm db:push
Provision a merchant from the command line, with no dashboard click-through.
# Generate non-custodial wallets only (no DB)
pnpm create-wallets
# End-to-end: generate wallets, create merchant, mint API key
DATABASE_URL=postgresql://... pnpm bootstrap-merchant \
--name "My Merchant" --auth-user-id <supabase-uuid>
# Mint a key for an existing merchant
DATABASE_URL=postgresql://... pnpm create-api-key list
DATABASE_URL=postgresql://... pnpm create-api-key create --merchant <id|name> --label "Production"
The same flows are exposed as MCP tools (bootstrap-wallets, bootstrap-merchant, create-api-key, list-merchants) in @pincerpay/mcp. See Merchant Onboarding.
import express from "express";
import { pincerpay } from "@pincerpay/merchant/express";
const app = express();
app.use(
pincerpay({
apiKey: process.env.PINCERPAY_API_KEY!,
merchantAddress: "YOUR_SOLANA_ADDRESS",
routes: {
"GET /api/weather": {
price: "0.01",
chain: "solana",
description: "Weather data",
},
},
})
);
See @pincerpay/merchant README for Hono middleware, multi-chain config, and full API reference.
import { PincerPayAgent } from "@pincerpay/agent";
const agent = await PincerPayAgent.create({
chains: ["solana"],
solanaPrivateKey: process.env.AGENT_SOLANA_KEY!,
});
// Automatic 402 handling
const response = await agent.fetch("https://api.example.com/weather");
See @pincerpay/agent README for spending policies, multi-chain setup, and Squads smart accounts.
| Chain | Network ID | Status |
|---|---|---|
| Base | eip155:8453 | Mainnet |
| Base Sepolia | eip155:84532 | Testnet |
| Polygon | eip155:137 | Mainnet |
| Polygon Amoy | eip155:80002 | Testnet |
| Solana | solana:mainnet | Supported |
| Solana Devnet | solana:devnet | Testnet |
| Service | URL |
|---|---|
| Facilitator | https://pincerpayfacilitator-production.up.railway.app |
| Dashboard | https://pincerpay.com |
The facilitator is deployed to Railway via Docker. The dashboard is deployed to Vercel. Solana is the primary chain (devnet). Base and Polygon are supported as optional secondary chains.
pnpm test
47 tests across 5 suites (core, agent, merchant, facilitator).
| Example | Description |
|---|---|
examples/express-merchant |
Express merchant with PincerPay middleware |
examples/agent-weather |
AI agent paying for weather API data |
pincerpay-agent-demo |
Standalone agent demo repository |
MIT
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Enterprise audit, compliance & budget enforcement layer for the x402 payment protocol
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
Open contract-facing SDK for payable routes and gateway-backed integrations. Thin public surface for authorize, checkout, and session flows.
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.
Drop-in OpenAI Python client with transparent x402 payment support.
Drop-in OpenAI Typescript client with transparent x402 payment support.
Autonomous AI BD Agent for SolCex Exchange: 24/7 Cross-Chain Token Scoring & Payments 2026
Rust SDK for the x402 payment protocol.