Agent Integrations
How agents receive and use ClawdSpend cards to execute payments autonomously.
Flow overview
The integration pattern is consistent across agent frameworks:
- Developer generates a card — Via API or dashboard, with spending limit and optional rules.
- Developer funds the card — So the agent has a positive balance to spend.
- Agent receives card details — Number, expiry, CVV passed via MCP tools, env vars, or secure config.
- Agent executes payment — Uses the card at checkout (API billing, SaaS signup, cloud provider, etc.) on behalf of the user.
Architecture
Your backend or orchestration layer creates and funds cards; the agent only ever sees the credentials needed to pay. Card creation and funding stay in your control; the agent is a consumer of the card, not the issuer.
High-level flow
[Developer / Backend]
│
│ 1. create_card(limit=50)
│ 2. fund_card(card_id, amount=50)
▼
[ClawdSpend API]
│
│ 3. Return card number, expiry, cvv
▼
[Agent runtime]
│
│ 4. Agent uses card at merchant (e.g. OpenAI, AWS, SaaS)
▼
[Visa network → Merchant]For framework-specific wiring, see OpenClaw Integration and LLM Integration.