@edenai

@edenai/openclaw-plugin

Eden AI provider plugin for OpenClaw - route to OpenAI, Anthropic, Google, Mistral, Cohere and more through one OpenAI-compatible API

当前版本
v0.1.1
code-plugin社区source-linked

@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 refName
edenai/anthropic/claude-opus-4-7Claude Opus 4.7
edenai/anthropic/claude-sonnet-4-6Claude Sonnet 4.6
edenai/anthropic/claude-haiku-4-5Claude Haiku 4.5
edenai/openai/gpt-5.5GPT-5.5
edenai/openai/gpt-4o-miniGPT-4o mini
edenai/google/gemini-3.5-flashGemini 3.5 Flash
edenai/google/gemini-2.5-flash-liteGemini 2.5 Flash Lite
edenai/mistral/mistral-large-latestMistral 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:

  1. A stale session transcript from a previously failed model. In the TUI type /reset, or from the CLI run openclaw sessions cleanup.
  2. A model id that does not exist in Eden AI's catalog (e.g. Anthropic's date-suffixed ids like claude-3-5-sonnet-20241022 are not accepted). Browse app.edenai.run/models for valid ids.

Develop

npm install
npm test       # runs vitest
npm run typecheck

License

MIT. See LICENSE.

Related

源码与版本

源码仓库

edenai/edenai-openclaw-plugin

打开仓库

源码提交

1ff695182c0b1acf28e8b446a7b7ac736cbb3219

查看提交

安装命令

openclaw plugins install clawhub:@edenai/openclaw-plugin

元数据

  • 包名: @edenai/openclaw-plugin
  • 创建时间: 2026/05/26
  • 更新时间: 2026/05/26
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.5.22
  • 插件 API 范围: >=2026.5.22
  • 标签: latest
  • 文件数: 10