mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 20:43:45 +08:00
Source-grounded rewrite of 529 published docs pages with per-unit information-loss verification: 1,713 factual corrections cited to src/**, generated surfaces regenerated, frontmatter titles preserved for i18n, release notes pages untouched. All docs gates green. Closes #100141
2.3 KiB
2.3 KiB
summary, title, read_when
| summary | title | read_when | ||
|---|---|---|---|---|
| Cohere setup (auth + model selection) | Cohere |
|
Cohere provides OpenAI-compatible inference through its Compatibility API. OpenClaw bundles the Cohere provider during its externalization transition and also publishes it as an official external plugin.
| Property | Value |
|---|---|
| Provider id | cohere |
| Plugin | bundled during transition; official external package |
| Auth env var | COHERE_API_KEY |
| Onboarding flag | --auth-choice cohere-api-key |
| Direct CLI flag | --cohere-api-key <key> |
| API | OpenAI-compatible (openai-completions) |
| Base URL | https://api.cohere.ai/compatibility/v1 |
| Default model | cohere/command-a-03-2025 |
| Context window | 256,000 tokens |
Get started
- Cohere ships with current OpenClaw packages. If it is missing, install the external package and restart the Gateway:
openclaw plugins install @openclaw/cohere-provider
openclaw gateway restart
- Create a Cohere API key.
- Run onboarding:
openclaw onboard --non-interactive \
--auth-choice cohere-api-key \
--cohere-api-key "$COHERE_API_KEY"
- Confirm the catalog is available:
openclaw models list --provider cohere
Onboarding only sets Cohere as the primary model when no primary model is already configured.
Environment-only setup
Make COHERE_API_KEY available to the Gateway process, then select the Cohere model:
{
agents: {
defaults: {
model: { primary: "cohere/command-a-03-2025" },
},
},
}