nuanu-ai/agent-payment-node
Local-first MCP payment runtime for AI agents with owner-set spending controls
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
APN is a local payment runtime with two entry points: the apn CLI and a stdio MCP server built with @modelcontextprotocol/server. The TypeScript stack includes @x402/core, @x402/evm, viem, and @solana/kit. The Cargo manifest identifies a native Rust binary, APNKeychainAgent, with macOS Security framework bindings and dependencies on secp256k1 and zeroize. MCP is the agent-facing interface, not the authority that approves a payment.
prepare binds the chain, asset, amount, recipient, and fee budget to an idempotency key without signing. Approval or execution rechecks those terms and the active owner policy. A direct transfer requires a typed code in a foreground terminal; x402 execution is bounded by a policy the owner activated. A durable marker precedes each send. If the outcome is unclear, APN checks the existing operation before taking further action rather than treating a lost response as a failed payment.
Key Capabilities & Differentiators
APN prepares transfers of native coins and listed tokens on EVM networks, Solana, and TRON. Its x402 support covers EIP-3009 USDC, Permit2, and merchants that accept ERC-20 transfer proofs. Selected USDC routes pay gas out of the USDC amount through local-wallet or provider paths, including MetaMask, Coinbase, and PayAI. Ethereum USDT uses a separate keyless sponsor path. This is route-specific support, not a promise that every asset works with every network or provider.
Bridge options include LI.FI with Across and Stargate, Relay, Circle CCTP V2, GasZip, NEAR 1Click, and direct Stargate V2. Guarded swaps include Uniswap V3 on Ethereum, SunSwap on TRON, and Jupiter and Orca on Solana. Admission depends on an owner allowlist covering asset, rail, and mechanism, with per-operation and daily caps. apn operation status, apn operation resume, and apn receipt get give operators a way to inspect or recover an interrupted payment without starting over.
Trade-offs & Limitations
Compared with integrating viem or a provider wallet SDK directly, APN offers an owner approval workflow, route-level spending controls, and durable recovery instead of leaving those to application code. In exchange, integrations are limited by APN's command surface and supported routes. Foreground approval is a useful authority boundary for direct transfers but a poor fit for unattended payout workers. Policy-bound x402 purchases are the path for agent-driven spending without a terminal approval on every purchase.
Compared with a hosted payment API, APN puts the agent interface and approval workflow on the operator's machine, but the operator also owns the macOS deployment and release verification. Local-first does not eliminate external RPC endpoints, wallet providers, facilitators, or bridge and swap services. The MIT license permits reuse, but each external service has its own terms. Evaluate the exact route and custody setup before funding; broad chain coverage is not a substitute for those checks.
Hardware & Deployment Guide
The documented deployment target is Apple Silicon macOS with Node 24. The package manifest accepts Node >=24 <27, but that engine range does not extend platform support. Install with brew install nuanu-ai/tap/apn; the formula supplies node@24. Check apn --version, apn help --json, and release provenance together before relying on a specific change. The MCP client uses the descriptor from apn mcp config to launch apn mcp serve locally over stdio. The repo ships no hosted remote MCP endpoint, and live settlement still depends on the network and providers used by the route.
The recent release notes show both coverage and safety changes: v0.5.116 covers a BNB Smart Chain token-input swap; v0.5.117 adjusts Permit2 name/version hint handling and the LI.FI catalog bound; v0.5.118 handles the end of unsigned Permit2 exposure when expiry without use is observed. Before funding, verify the installed artifact and intended route, then test terminal approval and operation recovery with a small payment.
apn mcp config generates a launch descriptor for apn mcp serve, a local stdio server with no hosted remote endpoint.APNKeychainAgent and macOS Security framework bindings; APN exposes no private-key export.Teams running a local MCP client on Apple Silicon macOS that need owner-approved transfers or policy-bounded x402 purchases, with a way to recover interrupted payments.
You need Linux or Windows production support, a hosted remote MCP endpoint, unattended direct payouts, offline settlement, or an asset and route outside APN's supported set.
Quick Start & Installation
brew install nuanu-ai/tap/apn apn --version apn help --json
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agent-payment-node ★ | 40 | +1 | TypeScript | MIT | Local-first MCP payment runtime for AI agents with owner-set spending controls |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/nuanu-ai/agent-payment-node.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agent-payment-node
How does an MCP client connect, and who approves a payment?
apn mcp config to generate the launch descriptor. The client starts apn mcp serve as a local stdio process. If a payment needs approval, APN returns a command for the owner to run in a foreground terminal; the MCP client does not approve it.Does APN need a GPU or a dedicated server?
Can a company self-host APN for commercial use?
Why use APN instead of calling a wallet SDK directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy