-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I just pushed an update to Agentic-Payments adding support for Visa's new Trusted Agent Protocol that dropped earlier this week, plus full QUIC transport integration from Agentic Flow.
Just hit 10,000 downloads in the first week!
npx agentic-payments is a TypeScript/WASM library that lets AI agents handle money and commerce. Your AI shopping assistant can buy groceries. Your trading bot can execute stock purchases. Your business agents can approve invoices. All with pre-set spending limits and cryptographic security.
The library includes a MCP server (both stdio and sse/http) so AI assistants like Claude, ChatGPT, and Cline can create payment mandates, sign transactions, and verify consensus through natural language.
No coding required. Just connect the MCP server with 'npx agentic-payments mcp' and your AI assistant gains 10 payment tools.
The library has four layers.
- Active Mandates set budgets and rules like "spend max $500 per week at Whole Foods."
- Agent Payments Protocol uses Ed25519 signatures so every transaction is cryptographically verified in under 3 milliseconds.
- Agentic Commerce Protocol connects to payment processors like Stripe.
- Visa TAP adds enterprise-grade payment standards with direct integration into the Visa ecosystem.
Why QUIC matters?
Traditional TCP is like a single-lane highway. If one packet gets lost, everything behind it stops and waits. QUIC runs over UDP and gives you multiple independent lanes called streams. Your AI agent can authorize a payment on stream one while simultaneously checking a digital signature on stream two and coordinating with other agents on stream three. A hiccup in one stream does not freeze the others.
QUIC also encrypts everything by default with TLS 1.3. No setup needed. It supports 0-RTT resumption, meaning when your agent reconnects, it skips the handshake and starts sending data immediately. Connection migration lets mobile agents switch networks mid-transaction without breaking the session.
My new VisaTapQuicTransport class handles all the QUIC connection management. Import it, point it at your merchant endpoint, and start sending payments 66% faster than HTTP/2. RFC 9421 signatures happen automatically when you call signHttpMessage with your agent's private key.
The core cryptography runs on Rust compiled to WebAssembly for maximum performance and security. The whole package stays under 200KB gzipped and works in Node.js, Deno, Bun, and browsers.
Install with npm install agentic-payments. Run the MCP server with npx agentic-payments.
New Agentic Flow QUIC Tutorial drops tomorrow showing how to transform the internet into a multi-threaded reasoning fabric.