SuperAPIAI Directory

agent-payment-node vs mastra

Metrics & specs comparison

agent-payment-node

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.

mastra

Mastra is an opinionated TypeScript framework that helps you build AI applications and features quickly. It gives you the set of primitives you need: workflows, agents, RAG, integrations and evals

Dimensionagent-payment-nodemastra
CategoryAI agentsAI agents
Pricing开源项目(可免费自部署)GitHub 开源项目 · 29,983 Stars
PlatformsmacOS · LinuxLinux · API
GitHub stars— 29,983
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools