Documentation Index
Fetch the complete documentation index at: https://docs.verlon.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OpenClaw is a popular open-source AI agent platform. Verlon AI integrates as a model provider, giving you cost controls, automatic fallbacks, smart routing, and full observability over your OpenClaw agent’s AI usage.Why Verlon for OpenClaw?
OpenClaw users commonly face:- Cost anxiety — No spending controls, surprise bills from long-running agents
- Reliability risk — Single provider means downtime when APIs fail
- No visibility — No insight into per-request costs, token usage, or model performance
- Spending limits — Gate-level and account-level cost caps prevent runaway spend
- Automatic fallbacks — If one provider fails, Verlon routes to the next model in your fallback chain
- Smart routing — The Architect recommends optimal models based on your usage patterns
- Full observability — Every request logged with cost, latency, tokens, and model used
Quick Start
Step 1: Create a Verlon Account and API Key
- Sign up at verlon.ai
- Go to Dashboard → API Keys → Create New Key
- Copy your API key (format:
layer_xxx)
Step 2: Create a Gate
Create a gate for your OpenClaw agent:- Go to Dashboard → Gates → Create New Gate
- Configure:
- Task type —
chat - Model — Choose your primary model (e.g.,
claude-sonnet-4-20250514,gpt-4o) - Fallback models — Add fallbacks for reliability (e.g.,
gpt-4o→gemini-2.0-flash) - Spending limit — Set a daily or monthly cap
- Task type —
- Copy the gate ID (UUID)
Step 3: Configure OpenClaw
Edit your OpenClaw configuration file (~/.openclaw/openclaw.json):
layer_your_api_key with your Verlon API key and your-gate-uuid with your gate ID.
Step 4: Restart and Test
How It Works
Verlon provides an OpenAI-compatible endpoint (/v1/chat/completions) that OpenClaw connects to natively. The request flow:
- Model resolution — Your gate ID maps to the configured model, fallbacks, and parameters
- Streaming — Full SSE streaming support across all providers
- Tool calling — Function/tool calls pass through transparently
- Cost tracking — Every request logged with actual cost based on token usage
Multiple Gates
You can configure multiple gates for different OpenClaw tasks:Dashboard
Verlon provides an OpenClaw integration page in the dashboard at Dashboard → Integrations → OpenClaw with:- Overview — Integration status, key metrics (gates, requests, cost, latency), and quick actions
- Quick Start — Step-by-step setup guide with code examples
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Agent completes in ~7ms with no output | API type mismatch | Ensure both api fields are "openai-completions" |
| Model not changing after config update | Cached session | Delete sessions: rm ~/.openclaw/agents/main/sessions/*.jsonl |
| ”Missing gateId” error | Gate ID not in request | Verify the id field in your model config is a valid gate UUID |
| No requests in Verlon dashboard | Gateway not routing to Verlon | Check logs: tail -f ~/.openclaw/logs/gateway.log and look for provider=layer |