OpenClaw Integration
Use ClawdSpend with OpenClaw agents via the ClawdSpend MCP connector. Agents can request cards and execute payments through tool calls.
Setup
Step 1: Create a ClawdSpend API key
In the ClawdSpend dashboard, go to Settings → API Keys and create a key. You will pass this to the MCP server so it can create and fund cards on your behalf.
Step 2: Install the ClawdSpend MCP connector
Add the ClawdSpend MCP server to your OpenClaw (or MCP-compatible) environment. Configure it with your API key.
# Install ClawdSpend MCP connector
npm install @clawdspend/mcp-serverStep 3: Add ClawdSpend as a tool
Register the ClawdSpend tools in your agent config so the agent can create cards and (optionally) trigger payments.
{
"tool": "clawdspend.create_card",
"limit": 50
}Tool configuration
You can cap how much a single card can spend and how many cards an agent can create in a session. Example tool config:
{
"tool": "clawdspend.create_card",
"limit": 50,
"max_cards_per_session": 5
}Usage in the agent
The agent requests a payment card via the tool; it receives card details and can then use them to complete purchases (e.g. API credits, hosting, subscriptions).
# Agent requests a card with a $20 spending limit
card = clawdspend.create_card(limit=20)
# Agent uses the card to make a purchase
agent.purchase(
service="OpenAI API",
card=card
)The agent receives the card object (number, expiry, CVV) and passes it to the purchase flow; the actual charge runs over the Visa network like any other card payment.