Connect Any AI Agent to KleePay
KleePay gives AI agents the ability to make payments, manage cards, and control spending. Works with any agent framework that supports MCP (Model Context Protocol) or HTTP APIs.
Quick Start
Three commands to get your agent connected.
curl -fsSL https://klw.kleepay.ai/install.sh | shklw setup <YOUR_TOKEN>klw startMCP Integration
For agents that support Model Context Protocol — Claude Desktop, OpenClaw, and any MCP-compatible client.
Claude Desktop
{
"mcpServers": {
"kleepay": {
"command": "klw",
"args": ["mcp"]
}
}
}Generic MCP Client
{
"command": "klw",
"args": ["mcp"],
"env": {}
}HTTP API Integration
For agents without MCP support, the klw daemon exposes a local REST API.
http://127.0.0.1:7732
Bearer token from ~/.kleepay/daemon_token
| Method | Endpoint | Description |
|---|---|---|
| GET | /health | Check daemon health |
| GET | /cards | List all cards |
| POST | /authorize | Authorize a payment |
See the full HTTP API reference for all endpoints.
Agent Skill File
Agents can fetch a comprehensive skill file that describes all available operations and recommended flows. This is useful for agents that load instructions dynamically.
{
"skills": [
{
"name": "kleepay",
"url": "https://klw.kleepay.ai/skill.md",
"description": "KleePay payment operations for AI agents"
}
]
}Available Tools
22 MCP tools organized by category. See the MCP Tools Reference for full parameter details.
Card Payments6
kleepay_payAuthorize and execute a card paymentkleepay_list_cardsList all virtual cards on the accountkleepay_check_txCheck the status of a transactionkleepay_list_txList recent transactions with filterskleepay_cancel_txCancel a pending transactionkleepay_refund_txRequest a refund for a settled transactionWallet6
kleepay_wallet_balanceCheck wallet balance (USDT + card balances)kleepay_wallet_paySend USDT to an external addresskleepay_wallet_deposit_addressGet the deposit address for fundingkleepay_wallet_historyList wallet transaction historykleepay_wallet_allocateAllocate funds from wallet to a cardkleepay_wallet_reclaimReclaim funds from a card back to walletCard Management6
kleepay_create_cardCreate a new virtual Visa cardkleepay_reveal_cardReveal full card number, CVV, and expirykleepay_freeze_cardFreeze a card (block all transactions)kleepay_unfreeze_cardUnfreeze a cardkleepay_set_card_limitUpdate spending limits on a cardkleepay_delete_cardPermanently delete a cardAccount4
kleepay_whoamiGet current account info and statuskleepay_list_policiesList active spending policieskleepay_audit_logView the full audit trailkleepay_healthCheck daemon and API health statusExample Flows
Common agent workflows, step by step.
Pay $50 to Amazon
kleepay_list_cardsFind the card to use
kleepay_payCall with card_id, amount: 50.00, currency: "USD", merchant: "amazon.com"
kleepay_check_txConfirm the transaction settled
Check my spending
kleepay_wallet_balanceSee total wallet and card balances
kleepay_list_txList recent transactions
kleepay_audit_logReview the full audit trail if needed
Create a card for subscriptions
kleepay_create_cardCreate a card with label "subscriptions"
kleepay_wallet_allocateAllocate $200 to the new card
kleepay_set_card_limitSet monthly limit to $200, restrict MCC to SaaS