x402 Wallet

Self-custodial x402 wallet for AI agents: discover, inspect, and pay any x402 service in USDC.

stdioofficialinfra

Package Details

Transportstdio
Runtimenpx

Environment Variables

SOLANA_SECRET_KEY(str)
Secret

Base58 (or JSON byte-array) Solana secret key that signs payments and holds the USDC. Not needed for the read tools (find_services, inspect_endpoint, or x402_wallet with an explicit address). Treat like cash.

SOLANA_RPC_URL(str)
Default:https://api.mainnet-beta.solana.com

Solana mainnet RPC endpoint. Defaults to the public cluster — bring your own (Helius / QuickNode / Triton) for production traffic.

MAX_PAY_USD(num)
Default:1

Max USD a single pay_and_call may spend. Bounds a runaway or injected payment.

REQUIRE_CONFIRM(bool)
Default:true

When on (default), pay_and_call refuses until re-issued with confirm:true. Set 0/false to disable the gate.

THREE_WS_BASE(str)
Default:https://three.ws

Base URL of the three.ws API that serves /api/bazaar/search for find_services. Override only when self-hosting.