メインコンテンツへスキップ
Cohere は、Compatibility API を通じて OpenAI 互換の推論を提供します。OpenClaw は外部化移行中に Cohere プロバイダーを同梱し、Command A モデルカタログを備えた公式の外部 Plugin としても公開しています。
プロパティ
プロバイダー IDcohere
Plugin移行中は同梱、公式の外部パッケージ
認証 env varCOHERE_API_KEY
オンボーディングフラグ--auth-choice cohere-api-key
直接 CLI フラグ--cohere-api-key <key>
APIOpenAI 互換 (openai-completions)
ベース URLhttps://api.cohere.ai/compatibility/v1
デフォルトモデルcohere/command-a-03-2025

はじめる

  1. Cohere は現在の OpenClaw パッケージに含まれています。利用できない場合は、外部パッケージをインストールして Gateway を再起動します。
openclaw plugins install @openclaw/cohere-provider
openclaw gateway restart
  1. Cohere API キーを作成します。
  2. オンボーディングを実行します。
openclaw onboard --non-interactive \
  --auth-choice cohere-api-key \
  --cohere-api-key "$COHERE_API_KEY"
  1. カタログが利用可能であることを確認します。
openclaw models list --provider cohere
デフォルトモデルは、プライマリモデルがまだ設定されていない場合にのみ設定されます。

環境変数のみのセットアップ

COHERE_API_KEY を Gateway プロセスで利用可能にしてから、Cohere モデルを選択します。
{
  agents: {
    defaults: {
      model: { primary: "cohere/command-a-03-2025" },
    },
  },
}
Gateway がデーモンまたは Docker で実行されている場合は、そのサービス向けに COHERE_API_KEY を設定します。インタラクティブシェル内でのみエクスポートしても、すでに実行中の Gateway では利用可能になりません。

関連