✓ Verified 💻 Development ✓ Enhanced Data

Agentpay

Buy things from real websites on behalf of your human.

Rating
4.5 (373 reviews)
Downloads
45,612 downloads
Version
1.0.0

Overview

Buy things from real websites on behalf of your human.

Complete Documentation

View Source →

AgentPay — Secure Checkout for AI Agents

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

  • references/cli-reference.md — All CLI commands with examples
  • references/workflow.md — Step-by-step purchase workflow and error handling

Setup (one-time, human does this)

bash
npx 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:

bash
npx agentpay budget --set 500 --limit-per-tx 100

Core Workflow

1. Propose a purchase

bash
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.

2. Human approves

bash
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.

3. Check status

bash
npx agentpay status      # wallet status + recent transactions
npx agentpay history     # full transaction log

MCP Server

AgentPay includes a built-in MCP server for direct tool integration:

bash
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.

Quick Actions

TaskCommand
Buy somethingnpx agentpay buy --merchant "Store" --description "Item" --url "https://..." --amount "29.99"
Check pendingnpx agentpay pending
View budgetnpx agentpay budget
Transaction historynpx agentpay history
Open dashboardnpx agentpay dashboard

Important Rules

  • Never attempt to read, extract, or log payment credentials from the vault
  • Always include --merchant, --description, and --url when proposing a purchase
  • Always tell your human what you want to buy and why before proposing
  • If a checkout fails, check npx agentpay status for error details — do not retry without telling the human
  • Respect budget limits. If a purchase exceeds the per-transaction limit, inform the human instead of splitting into multiple transactions

Ideas to Try

  • "Order me a new phone charger under $20 from Amazon"
  • "Restock my usual coffee beans from the same store as last time"
  • "Find the cheapest flight to Madrid and book it for me"
  • "Buy the textbook I need for next semester"
  • "Subscribe me to that newsletter we were looking at"

Installation

Terminal bash

openclaw install agentpay
    
Copied!

💻Code Examples

npx agentpay setup

npx-agentpay-setup.txt
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-budget---set-500---limit-per-tx-100.txt
## Core Workflow

### 1. Propose a purchase

--amount "39.99"

---amount-3999.txt
This creates a pending purchase mandate. The human must approve it.

### 2. Human approves

npx agentpay approve <txId>

npx-agentpay-approve-txid.txt
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.

### 3. Check status

npx agentpay history # full transaction log

npx-agentpay-history--full-transaction-log.txt
## MCP Server

AgentPay includes a built-in MCP server for direct tool integration:
example.sh
npx agentpay buy \
  --merchant "Amazon" \
  --description "Wireless keyboard, Logitech K380" \
  --url "https://www.amazon.com/dp/B0148NPH9I" \
  --amount "39.99"

Tags

#web_and-frontend-development #web

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author kar69-96
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install agentpay