SuperAPIAI Directory

agent-payment-node

github.com · AI agents

Agent Payment Node (APN) is an open-source, local-first payment runtime and MCP server designed for AI agents. It allows AI agents to initiate payments via the apn CLI or a local stdio MCP server, but payment authority is controlled by the human owner: the owner sets limits and approves direct transfers in a foreground terminal, and x402 purchases run only within spending policies activated by the owner. APN treats every payment as a durable operation with an idempotency key, ensuring no duplicate payments occur on crashes or lost responses. It supports direct transfers of native coins and tokens on EVM, Solana, and TRON networks, standard x402 purchases (EIP-3009 USDC, Permit2, ERC-20 transfer to prove the merchant), as well as USDC transfers (gas paid from the USDC amount) and Ethereum USDT via keyless sponsorship. It also supports cross-chain bridges (LI.FI, Relay, Circle CCTP V2, etc.) and protected swaps (Uniswap V3, SunSwap, Jupiter, Orca). The owner can set per-operation and daily caps by asset, rail, and mechanism via an allowlist. APN runs on Apple Silicon macOS and Node 24, is licensed under MIT, and is written in TypeScript.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Agent Payment Node (APN) is an open-source, local-first payment runtime and MCP server designed to let AI agents execute payment operations under restricted authority without holding unlimited wallet access.

Purpose: APN provides AI agents with secure payment capabilities; agents can prepare payments, but actual fund transfers are subject to limit checks set by the owner. Direct transfers require owner approval in the terminal, and x402 purchases execute only within spending policies activated by the owner. Every payment is recorded as a durable operation with an idempotency key, preventing duplicate payments caused by crashes or lost responses.

Key capabilities:

  • Direct transfers: support native coins and listed tokens on EVM networks, Solana, and TRON.
  • Standard x402 purchases: support EIP-3009 USDC, Permit2, ERC-20 transfer to prove the merchant.
  • USDC transfers: gas fees are paid from the USDC amount, supporting local wallets, MetaMask Agent Wallet, MetaMask Smart Account, Coinbase, PayAI facilitator, and Ethereum USDT via keyless sponsorship.
  • Cross-chain bridges: support LI.FI (including Across and Stargate), Relay, Circle CCTP V2, GasZip, NEAR 1Click, direct Stargate V2.
  • Protected swaps: support Uniswap V3 on Ethereum, SunSwap on TRON, Jupiter and Orca on Solana.
  • Owner allowlist: set per-operation and daily caps by asset, rail, and mechanism.

Usage: Agents drive APN via the apn CLI or a local stdio MCP server. MCP clients print the launch descriptor via apn mcp config and run the local stdio server via apn mcp serve. Agents cannot approve payments; commands requiring human approval return the exact command to run in the terminal. Prepare commands freeze the exact effects (chain, asset, amount, recipient, fee budget) under an idempotency key without signing. Approve or execute commands re-check the frozen facts and active owner policies, display the exact terms in the foreground terminal, and require entering a code before signing. All send operations have durable markers, and ambiguous sends are observed first.

Use cases: Suitable for scenarios where AI agents need to execute cryptocurrency payments, cross-chain transfers, token swaps, or x402 purchases, and especially suitable for developers or organizations that want to maintain ultimate human control over fund flows.

Limitations: APN currently supports only Apple Silicon macOS and Node 24. The platform support matrix documents the boundaries and the conditions required for Linux or Windows. A matching version number cannot prove that the installed artifact contains a specific source code change; it must be checked together with apn --version, the release source, and apn help --json. APN never prints or exports private keys; before use, you should read the custody and threat model. There are no hosted remote MCP endpoints in this repository.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools