QuetraAI + OpenClaw Setup
Connect QuetraAI spending governance to OpenClaw via the remote MCP server. One URL in your config — no skills, no npm packages, no Node.js required.
Prerequisites
- OpenClaw installed and running
- A QuetraAI account at app.quetra.dev
Steps 1-4: Dashboard Setup
Follow the same dashboard setup as the Claude Desktop guide: create organization, register agent (with good description!), create mandate, generate API key.
Step 5: Connect to OpenClaw
Option A: During Initial Setup (recommended)
When you first set up OpenClaw, the setup wizard asks if you'd like to configure MCP servers. Add the QuetraAI remote server URL:
https://mcp.quetra.dev/<sk_your_api_key_here>/mcp
Option B: After Initial Setup
Add manually to ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"quetra": {
"url": "https://mcp.quetra.dev/<sk_your_api_key_here>/mcp"
}
}
}
}Also ensure you have an auth profile configured in the same file for your preferred LLM provider (Anthropic, OpenAI).
Note: The auth profile may already exist in ~/.openclaw/agents/main/agent/auth-profiles.json, but it also needs to be present in openclaw.json. Ensure API keys are set in both files. Verify the connection on the skills page at http://127.0.0.1:18789/skills.
Step 6: Verify the Integration
Restart OpenClaw and try these prompts:
- "List my QuetraAI agents" — calls
quetra_list_agents, shows agents with budgets and rules - "Check my QuetraAI budget status" — calls
quetra_check_budget - "Can I spend $2.00 on research at firecrawl.dev?" — should be approved (if within rules)
- "Can I spend $500 on entertainment at netflix.com?" — should be rejected
How It Works
OpenClaw Agent
│
├─ User: "Research the latest AI agent frameworks using Firecrawl"
│
├─ Agent calls: quetra_evaluate(amount: 100, vendor: "firecrawl.dev", category: "research")
│ │
│ ▼
│ Remote MCP Server (mcp.quetra.dev)
│ │
│ ▼
│ QuetraAI Gateway:
│ 1. Authenticate API key (from URL path)
│ 2. Resolve active mandate
│ 3. Evaluate ALL rules (AND logic)
│ 4. Atomically decrement budget
│ 5. Write to audit log + fire webhooks
│
└─ Agent: "Approved! Proceeding with Firecrawl. $49.00 remaining."Troubleshooting
Tools don't appear
- Verify
openclaw.jsonis valid JSON - Ensure
mcp.servers.quetra.urlis correct - Check auth profiles are in
openclaw.json(not just auth-profiles.json) - Restart OpenClaw completely
- Check skills page at
http://127.0.0.1:18789/skills
Next Steps
- Monitor activity on the dashboard in real-time
- Set up webhooks for budget alerts
- Register more agents for different tasks with separate mandates
- MCP Overview & Tools