System Overview
What You’ll LearnThis page explains:
- How LedgerOS architecture separates users, agents, and cards
- The funding and spending flow
- Key concepts: attestation, intents, and velocity limits
- How MCP integration works for AI agents
Architecture Overview
Hierarchy
| Level | Description | Example |
|---|---|---|
| Organization | Your company account. Holds API keys. | Acme Corp |
| User | Person/entity who funds spending. Must complete KYC. | John Doe (customer) |
| Agent | Logical identity that spends. Your AI bot or workflow. | checkout-bot |
| Card | Virtual card issued to an agent. | Single-use Amazon card |
Main Workflows
LedgerOS is built around three main workflows:1. User Onboarding & Funding
Before any spending can happen, a user must be verified and funded:2. Agent & Card Creation
Once a user is verified and funded, register agents and issue cards:3. Spending Flow
When your AI agent needs to make a purchase:Core Concepts
Users vs Agents
| Concept | Who/What | Responsibilities |
|---|---|---|
| User | Human or company | KYC verification, deposit funds, set spending limits |
| Agent | Your AI bot | Request cards, declare intents, make purchases |
Card Types
| Type | Behavior | Use Case |
|---|---|---|
| Single-use | Auto-closes after one transaction | One-time purchases |
| Multi-use | Reusable with velocity limits | Recurring purchases |
Velocity Limits
Multi-use cards support spending controls to limit agent behavior:Security Attestation
Before accessing card credentials, agents must attest what they intend to do:Spending Intents
Agents must declare intent before accessing card credentials:pending → revealed → matched | expired | mismatched
Integration Points
REST API
Direct HTTP calls for full control:MCP Server
For AI agents using Claude, Cursor, or other MCP clients:Webhooks
Real-time notifications for all events:transaction.created- New transactiontransaction.settled- Transaction finalizedcard.frozen- Card frozen (manual or limit exceeded)user.approved- KYC completeddeposit.completed- Funds available
Common Deployment Patterns
Single Company, Multiple Agents
Single Company, Multiple Agents
Your company is the User. You fund one account, create multiple agents for different workflows.
Platform with End-User Funding
Platform with End-User Funding
Each of your customers is a User. They fund their own agents.
Hybrid: Company + Customer Funding
Hybrid: Company + Customer Funding
Some spending is company-funded, some is customer-funded.