Cohere
Cohere 通过其 Compatibility API 提供 OpenAI 兼容推理。OpenClaw 将 Cohere 作为官方外部插件提供。
| 属性 | 值 |
|---|---|
| 提供商 ID | cohere |
| 插件 | @openclaw/cohere-provider |
| 认证环境变量 | COHERE_API_KEY |
| 引导标志 | --auth-choice cohere-api-key |
| 直接 CLI 标志 | --cohere-api-key <key> |
| API | OpenAI 兼容(openai-completions) |
| 基础 URL | https://api.cohere.ai/compatibility/v1 |
| 默认模型 | cohere/command-a-plus-05-2026 |
| 上下文窗口 | 128,000 tokens |
内置目录¶
| 模型引用 | 可见性 | 输入 | 上下文 | 最大输出 | 备注 |
|---|---|---|---|---|---|
cohere/command-a-plus-05-2026 |
可见 | 文本、图像 | 128,000 | 64,000 | 默认;旗舰智能体和推理模型 |
cohere/command-a-03-2025 |
隐藏 | 文本 | 256,000 | 8,000 | 上一代;已被 Command A+ 取代 |
cohere/command-a-reasoning-08-2025 |
隐藏 | 文本 | 256,000 | 32,000 | 上一代;已被 Command A+ 取代 |
cohere/command-a-vision-07-2025 |
隐藏 | 文本、图像 | 128,000 | 8,000 | 上一代;已被 Command A+ 取代 |
cohere/north-mini-code-1-0 |
可见 | 文本、图像 | 256,000 | 64,000 | 智能体编码;推理;免费额度限制 |
支持推理的 Cohere 模型支持两种 Compatibility API 推理模式。OpenClaw 将 off 映射为 none,并将每个启用的思考级别映射为 high。Command A Vision 不支持工具使用,因此 OpenClaw 会保持该模型的智能体工具处于禁用状态。
快速开始¶
- 安装官方插件:
安装会自动应用于正在运行的 Gateway;否则将在下次启动时生效。参见应用更改并检查。
- 创建 Cohere API 密钥。
- 运行引导:
openclaw onboard --non-interactive --accept-risk --skip-health \
--auth-choice cohere-api-key \
--cohere-api-key "$COHERE_API_KEY"
- 确认目录可用:
引导仅在尚未配置主模型时,才将 Cohere 设置为主模型。
引导会保留你的模型条目,并将生成的目录行留给发现机制。在 models.mode: "replace" 下,它还会写入内置目录,因为该模式会跳过发现。
仅环境变量配置¶
使 COHERE_API_KEY 对 Gateway 进程可用,然后选择 Cohere 模型:
Note
如果 Gateway 作为守护进程或在 Docker 中运行,请为该服务设置 COHERE_API_KEY。仅在交互式 shell 中导出它,不会使其对已运行的 Gateway 可用。
相关¶
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 cl/openclaw