@profullstack/payagent
v0.3.0
Published
pay.agent: get paid in crypto with one link, Venmo for the agentic web. Sign in with CoinPay; pay anyone by handle from the web, API, CLI, TUI or MCP.
Readme
pay.agent
Get paid in crypto with one link. Venmo for the agentic web, on CoinPay.
Sign in with CoinPay, pick a name, and share pay.agent/you. People and agents
pay you in USDC, BTC, ETH, SOL and more; it lands in your CoinPay wallet or
your CoinPay business. pay.agent never holds funds.
- Web: https://pay.agent (Moshpit DNS) or https://pay.agent.pit.world
- API:
POST /api/v1/users/:handle/payments {"amount_usd": 5, "payer_email": "[email protected]"}→checkout_url, a CoinPay hosted checkout on the payee's own business: the payer picks any coin the payee takes, or PayPal when they connected it - Invoices:
POST /api/v1/invoices {"to_email", "description", "amount_usd", "recurrence": "monthly"}(your key) → a real CoinPay invoice sent as you; CoinPay emails the pay link and sends the repeats.payagent invoice [email protected] 49 Logo, MCPsend_invoice. Each one has a public page atpay.agent/i/<id>. - CLI / TUI:
bunx @profullstack/payagent alice 5 [email protected], orbunx @profullstack/payagent - MCP:
claude mcp add payagent -- bunx @profullstack/payagent mcp
Onboarding is @profullstack/coinpay-onboard: one pass makes the CoinPay business, payout wallets and webhook. The same engine runs at every fleet site launch.
Run it
bun install
PAYAGENT_KEY=$(openssl rand -hex 32) PAYAGENT_COINPAY_CLIENT_ID=cp_… bun src/server.tsSettings: PAYAGENT_KEY (encrypts stored CoinPay tokens), PAYAGENT_COINPAY_CLIENT_ID
/ _SECRET (a CoinPay OAuth client with scopes openid profile email wallet:read merchant),
PAYAGENT_DB (SQLite path), PORT (8796), COINPAY_BASE, PAYAGENT_WEBHOOK_ORIGIN.
Deploy: bin/install.sh (OpenInstall) on the box, vault profullstack/pay-agent--prod.
MIT
