pay-x402
v0.1.0
Published
Pay any x402 URL from the command line or your agent. `npx pay-x402 <url>` — sign locally with your own key (zero signup) or use ArisPay delegated custody with server-enforced spend limits. USDC on Base.
Maintainers
Readme
pay-x402
Pay any x402-protected URL with one command. USDC on Base.
npx pay-x402 https://api.example.com/premiumThat's it. pay-x402 fetches the URL, reads the HTTP 402 payment challenge,
signs the payment, retries, and prints the paid response.
Zero-signup quickstart (local key)
No account. No email. Two commands:
# 1. Generate a keypair (printed once, stored nowhere)
npx payagent wallet new
# 2. Fund the address with USDC on Base, then pay
PAYAGENT_PRIVATE_KEY=0x... npx pay-x402 https://api.example.com/premiumThe key signs EIP-3009 transferWithAuthorization locally and never leaves
your machine. Use a dedicated low-balance wallet — the only spending guardrail
in this mode is client-side.
Managed mode (delegated custody)
Prefer server-enforced limits? Create an ArisPay account in one command:
npx payagent quickstart --email [email protected]
npx pay-x402 https://api.example.com/premiumArisPay holds a Coinbase CDP-managed wallet and enforces per-transaction, daily, and monthly caps server-side. No private key on your machine.
What this package is
pay-x402 is a thin CLI alias for payagent,
the agent-side x402 SDK. npx pay-x402 <url> proxies to payagent pay <url>;
any other arguments pass through to the payagent CLI unchanged. All
functionality, options, and documentation live in payagent.
- SDK usage (fetch wrapper, adapters for Vercel AI SDK / LangChain): see
payagent - MCP server for Claude Desktop / Cursor / any MCP host:
@arispay/payagent-mcp
MIT © Polar Industries Ltd
