OpenClaw
Use Edgee with OpenClaw to compress tokens, route requests, and observe every session.
Edgee's OpenAI-compatible API works with OpenClaw, letting you route all model traffic through Edgee to gain token compression, intelligent routing, and observability — without changing how you use OpenClaw day-to-day.
Setup
Get your Edgee API key
In the Edgee Console, navigate to API Keys, click Create API Key, and copy the key. It will not be shown again.
Add Edgee as a provider in OpenClaw
Open your OpenClaw config file at ~/.openclaw/openclaw.json (create it if it doesn't exist) and add the edgee provider under models.providers:
{
models: {
mode: "merge",
providers: {
edgee: {
baseUrl: "https://edgee.io/v1",
apiKey: "sk-edgee-...", // replace with your key
api: "openai-completions",
models: [
{
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6 (Edgee)",
input: ["text"],
contextWindow: 200000,
maxTokens: 8096
},
{
id: "gpt-4o",
name: "GPT-4o (Edgee)",
input: ["text", "image"],
contextWindow: 128000,
maxTokens: 16384
}
]
}
}
}
}
Replace "sk-edgee-..." with your Edgee API key. Add or remove models from the list to match what you want to use — see the Edgee model list for all available model IDs.
Select an Edgee model in OpenClaw
Restart OpenClaw. Your Edgee models will appear in the model picker under the names you defined (e.g., "Claude Sonnet 4.6 (Edgee)").
Select one to start routing requests through Edgee.
Next Steps
- Browse the model list for all model IDs available through Edgee
- Enable token compression to see what's being trimmed on each request
- Set up observability to track usage across sessions
- Explore routing strategies to configure your provider failover chain
Verify the connection
Send one request from the configured client, then open Logs in the same Edgee organization. Check the served model, provider, and key. For a CLI-launched coding agent, also inspect its session report.
If the request is missing, check that you launched through Edgee or saved the client’s gateway URL and Gateway API key. If it appears with an error, inspect the error before changing settings. See Troubleshooting and Gateway errors.