Instantly issue virtual cards with real-time controls and audit trails, so your AI agents can pay for services and make purchases independently while staying within your guardrails.
Instantly issue single-use or multi-use virtual cards for your agents to make online payments during checkout.
Set spend limits, merchant restrictions, and usage rules in real time.
Every transaction is logged and auditable, giving you complete oversight without slowing agents down.
$ ledger mor create-transaction --amount 99.99 --customer-id cust_123 { "id": "txn_8f14e45f", "amount": 99.99, "tax_collected": 8.25, "net_revenue": 91.74, "compliance": { "sales_tax": "collected", "vat_registered": true, "jurisdiction": "US-CA" }, "status": "processed" }
We support JavaScript/TypeScript, Python, and Go, with adapters for Next.js, Node.js, and FastAPI. All SDKs are typed, handle auth and retries, and stay in sync with our API.
Start with the quickstart to get your first wallet or card live in minutes, or dive into the full API reference for detailed endpoints, parameters, and usage examples.
$ npm i @ledgerai/sdk + @ledgerai/sdk@0.12.0 added 23 packages, and audited 23 packages in 1s 3 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
Ledger's Model Context Protocol (MCP) lets AI agents directly manage their financial tools through a standardized interface. Using MCP, agents can create wallets, issue virtual cards, set spend controls, freeze or delete cards, and review balances and transaction histories — all in a secure, machine-readable format.
MCP works across all Ledger products, so your agents can reason about funds, take action instantly, and stay within the guardrails you define.
import { MCPClient, Tool } from '@modelcontextprotocol/sdk'; import { LedgerAPI } from '@ledger/mcp-server'; const mcpClient = new MCPClient('ledger://financial-tools'); const CreateCardTool = new Tool({ name: 'create_virtual_card', description: 'Issue a new virtual card for agent payments' }); await mcpClient.callTool('create_virtual_card', { limit: 500.00, merchant_category: 'software', single_use: true });
Simple, transparent pricing that scales with your agents. Start free, pay only for real usage as you grow.
AI agents will soon handle billions of transactions. They will need to pay suppliers, purchase services, and manage expenses across countless workflows. The current financial system was not designed for this future.
We believe commerce should be as autonomous as the agents driving it. Imagine a world where AI can transact seamlessly on any platform, pay for any service, and run complex financial workflows without human intervention. A world where agents are deployed with full confidence, knowing every transaction is tracked, every policy is enforced, and every dollar is accounted for.