/x402-group-pay:x402-group-payfrom x402-group-pay
Creates shared payment pools where multiple participants each pay a fixed USDC share unit via x402, then fetches a signed funded proof for the merchant. Useful for splitting bookings among people or agents.
Ships in x402-group-pay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
x402-group-pay is an Express service. An organizer creates a pool for a target amount. Each participant pays a fixed USDC share unit over x402 and gets a signed contribution receipt in the same response. When all units are paid, anyone can fetch a signed funded proof listing every contributor. Members of one pool may pay on different rails.
No package is published and there is no hosted instance, so run it from a clone: git clone https://github.com/nirholas/x402-group-pay && cd x402-group-pay, then npm install, cp .env.example .env, and npm run dev (tsx src/server.ts). It listens on PORT, default 4041. For production use npm run build then npm start.
Key env vars: PORT, SHARE_UNIT (USD per share, default 0.01), SIGNING_SECRET, PUBLIC_BASE_URL, PAY_TO_ADDRESS, SOLANA_PAY_TO_ADDRESS, NETWORK, SOLANA_NETWORK, SOLANA_RPC_URL.
POST /pools ($0.001). Body {"purpose": "Dinner at Luna, table for 6", "merchant": "Luna Trattoria", "totalUsd": 0.06, "expiresInHours": 24}. totalUsd is rounded up to a whole number of share units. Returns pool (poolId, shareUnitUsd, unitsRequired, unitsPaid, status, expiresAt), joinLinks (human, agentPay, status, proof) and rails.POST /pools/:id/pay ($0.01, one share unit). Call it once per unit. Returns a signed receipt recording the rail, network and settlement transaction. A missing pool returns 404 and a funded or expired pool returns 409, each with a signed refundClaim.GET /pools/:id (free): the live pool record.GET /pools/:id/proof (free): {status: "pending", unitsPaid, unitsRequired, remainingUsd} while open; once funded, {status: "funded", proof: {payload, signature}} listing every contributor, rail and settlement transaction.POST /verify (free): body {payload, signature} returns {valid}.GET /healthz (free).Share the human link with people and the agentPay URL with agents. The proof is a signed record of who paid, so present it to the merchant that requires the pooled amount. Each pay call charges the caller one unit, so confirm with the user before paying.
Every paid route answers an unpaid request with HTTP 402 and a body whose accepts array lists two rails: USDC on Base (base-sepolia by default, base via NETWORK) and USDC on Solana (solana by default, solana-devnet via SOLANA_NETWORK). Pick the entry your wallet can sign, sign the USDC payment (EIP-3009 on Base, SPL transferChecked on Solana), and retry with the base64 X-PAYMENT header. The artifact is in the 200 body and the settlement receipt is in the X-PAYMENT-RESPONSE header. On the EVM rail x402-fetch with viem does this for you; npm run client runs examples/agent-client.ts, which reads BASE_URL and PRIVATE_KEY.
Discovery: GET /.well-known/x402 lists routes, prices and rails, and GET /skill.md serves the repo's own reference. Paying moves real USDC on the configured network, so show the user the route, amount and rail first and wait for a yes before any paid call. Use a throwaway wallet on base-sepolia or solana-devnet for testing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub nirholas/x402-group-pay --plugin x402-group-pay