@edenai/openclaw-plugin
Eden AI provider plugin for OpenClaw. Route to many model vendors (OpenAI, Anthropic, Google, Mistral, Cohere, and more) through one OpenAI-compatible API with a single key.
Install
clawhub install @edenai/openclaw-plugin
Or via the OpenClaw CLI:
openclaw plugins install @edenai/openclaw-plugin
Set the key
OpenClaw reads EDENAI_API_KEY from several sources, in precedence order:
shell env, ./.env, ~/.openclaw/.env, then the env block of
~/.openclaw/openclaw.json.
export EDENAI_API_KEY=ek_...
Get a key at app.edenai.run/settings/api-keys.
Onboard
openclaw onboard --auth-choice edenai-api-key
Or non-interactive:
openclaw onboard --non-interactive --accept-risk --mode local --skip-health \
--auth-choice edenai-api-key \
--edenai-api-key "$EDENAI_API_KEY"
Pick a model
Any Eden AI model id works as edenai/<vendor>/<model>. Set the default in
~/.openclaw/openclaw.json:
{
agents: {
defaults: {
model: { primary: "edenai/anthropic/claude-sonnet-4-6" },
},
},
}
Or switch interactively in the TUI: /model edenai/openai/gpt-5.5.
Browse the full catalog at app.edenai.run/models.
Use it
openclaw chat --local --message "Reply with exactly OK."
Bundled offline catalog
When EDENAI_API_KEY is not set, OpenClaw shows this curated list. Once your
key is configured, the live /v3/models catalog supersedes it.
| Model ref | Name |
|---|---|
edenai/anthropic/claude-opus-4-7 | Claude Opus 4.7 |
edenai/anthropic/claude-sonnet-4-6 | Claude Sonnet 4.6 |
edenai/anthropic/claude-haiku-4-5 | Claude Haiku 4.5 |
edenai/openai/gpt-5.5 | GPT-5.5 |
edenai/openai/gpt-4o-mini | GPT-4o mini |
edenai/google/gemini-3.5-flash | Gemini 3.5 Flash |
edenai/google/gemini-2.5-flash-lite | Gemini 2.5 Flash Lite |
edenai/mistral/mistral-large-latest | Mistral Large |
Anthropic model ids on Eden AI use the hyphen form (claude-opus-4-7), not
the dot form (claude-opus-4.7). Eden AI returns HTTP 400 on the dot form.
Troubleshooting
provider rejected the request schema or tool payload — usually caused by:
- A stale session transcript from a previously failed model. In the TUI type
/reset, or from the CLI runopenclaw sessions cleanup. - A model id that does not exist in Eden AI's catalog (e.g. Anthropic's
date-suffixed ids like
claude-3-5-sonnet-20241022are not accepted). Browse app.edenai.run/models for valid ids.
Develop
npm install
npm test # runs vitest
npm run typecheck
License
MIT. See LICENSE.