AgentPay lets you buy things from real merchant websites without ever seeing your human's payment credentials. Credentials stay encrypted on the human's machine. You propose purchases; your human approves cryptographically.
references/cli-reference.md — All CLI commands with examplesreferences/workflow.md — Step-by-step purchase workflow and error handlingnpx agentpay setup
The human enters their card details and sets a passphrase. Takes ~2 minutes. After this, the agent can propose purchases.
To set spending limits:
npx agentpay budget --set 500 --limit-per-tx 100
npx agentpay buy \
--merchant "Amazon" \
--description "Wireless keyboard, Logitech K380" \
--url "https://www.amazon.com/dp/B0148NPH9I" \
--amount "39.99"
This creates a pending purchase mandate. The human must approve it.
npx agentpay pending # list pending purchases
npx agentpay approve <txId>
Once approved, the headless browser handles checkout automatically. The agent never sees the card number — credentials are injected directly into the page from the encrypted vault.
npx agentpay status # wallet status + recent transactions
npx agentpay history # full transaction log
AgentPay includes a built-in MCP server for direct tool integration:
npx agentpay mcp # stdio transport (default)
npx agentpay mcp --http # HTTP transport
This exposes AgentPay operations as MCP tools that any compatible agent can call directly.
| Task | Command |
|---|---|
| ------ | --------- |
| Buy something | npx agentpay buy --merchant "Store" --description "Item" --url "https://..." --amount "29.99" |
| Check pending | npx agentpay pending |
| View budget | npx agentpay budget |
| Transaction history | npx agentpay history |
| Open dashboard | npx agentpay dashboard |
--merchant, --description, and --url when proposing a purchasenpx agentpay status for error details — do not retry without telling the human共 1 个版本