Overview
OpenClaw is a terminal-based AI coding agent. By pointing it at Eden AI, you get:- 500+ models: Access OpenAI, Anthropic, Google, and more through a single API key
- One key, many providers: Switch models by changing a single config value — no per-provider keys
- Automatic fallbacks: Requests reroute to healthy providers if one goes down
Prerequisites
- OpenClaw already installed. If not, see the OpenClaw install guide
- Eden AI API key from app.edenai.run → API Keys
Setup
1. Add Eden AI as a custom provider
OpenClaw stores its config at~/.openclaw/openclaw.json (on Windows: %USERPROFILE%\.openclaw\openclaw.json). Open it in your editor of choice and add the Eden AI provider with a function-calling model:
provider/model from the Eden AI catalog. Pick one that supports function calling, since OpenClaw sends tools with every request.
A few notes on the config above:
nameis just the display label shown in OpenClaw’s model picker. If you switchidto another model, rename this field too so the picker doesn’t show a stale label.costvalues are placeholders. Billing is handled on the Eden AI side through your API key, so OpenClaw’s local cost tracking isn’t used here. Check per-request cost in the Eden AI dashboard.supportsTools: trueenables tool/function calling through Eden AI. Set it tofalseonly if you want to restrict this provider to plain chat completions.
2. Configure OpenClaw interactively
Run the built-in wizard:Eden AI — Claude Sonnet 4.5 — the provider you defined in Step 1. Accept the defaults for the remaining steps (Workspace, Gateway, Channels, etc.) unless you have specific local-networking or channel needs.
The wizard’s Gateway step configures OpenClaw’s local server (port, bind address, auth mode, tailscale exposure) — it does not ask for the Eden AI API URL. That’s already set as
provider.edenai.baseURL in Step 1.3. Start OpenClaw
Using specific models
Target any model by setting theid to a provider/model string:
| Model | Best for |
|---|---|
anthropic/claude-sonnet-4-5 | Recommended default — balanced reasoning, reliable tool calling |
anthropic/claude-opus-4-7 | Maximum capability |
anthropic/claude-haiku-4-5 | Fast and cheap |
openai/gpt-5 | OpenAI’s frontier model |
google/gemini-2.5-pro | Long context, multimodal |
Troubleshooting
401 Unauthorized
Verify your Eden AI key — grab a fresh one at app.edenai.run → API Keys. Check for leading/trailing spaces.
model not found
Ensure the id uses the provider/model format (e.g. anthropic/claude-sonnet-4-5). No bare model names.
Connection issues
Confirm the base URL is exactlyhttps://api.edenai.run/v3/llm and check Eden AI status at app-edenai.instatus.com.
Next Steps
- Hermes Agent - Self-hosted, persistent AI agent from Nous Research
- Claude Code - Official Claude CLI
- OpenCode - Terminal-based AI coding assistant