メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt

Use this file to discover all available pages before exploring further.

インストール

インストール前に Node >= 22 であることを確認してください。
インストールコマンドを実行します。
npm install -g openclaw@latest

ターミナル設定

ターミナルを開き、以下のコマンドを実行して設定を開始します。
openclaw onboard
Yes を選択します。 Oc 1 QuickStart を選択します。 Oc 2 Skip for now を選択します。 Oc 3 All providers を選択します。 Oc 4 必要に応じてデフォルトモデルを選択してください。最初は Keep current を選択することができ、次の手順で設定ファイルから変更できます。 Oc 5 必要に応じて個人アカウントをリンクしてください。不要な場合は Skip for now を選択します。 Oc 6 スキルを設定するには Yes を選択します。 Oc 7 npm を選択します。 Oc 8 必要に応じてスキルを選択して設定します。 Oc 9 すべてのオプションで No を選択します。 Oc 10 Skip for now を選択します。 Oc 11 Hatch in UI を選択します。

AIHubMix の設定

方法 1:プラグインによるクイック設定(推奨)

プラグインのソースコード:aihubmix-auth
AIHubMix auth プラグインをインストールし、Gateway を再起動します:
openclaw plugins install @akaknele/aihubmix-auth
openclaw gateway restart
auth コマンドを実行します。プロンプトが表示されたら AIHubMix の API キーを入力します。プラグインが自動的に利用可能なモデルを同期し、AIHubMix をデフォルトプロバイダーとして設定します:
openclaw models auth login --provider aihubmix --method api-key --set-default
プラグインはモデルを以下のグループに整理します:
  • openai — OpenAI モデル
  • anthropic — Anthropic モデル
  • google — Google モデル
  • other — その他のモデル
設定が完了したら、起動 セクションに進んで使用を開始してください。

方法 2:手動設定

~/.openclaw/openclaw.json ファイルを開き、以下の設定を追加します:
{
  "models": {
    "mode": "merge",
    "providers": {
      "aihubmix": {
        "baseUrl": "http://aihubmix.com/v1",
        "apiKey": "AIHUBMIX_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-sonnet-4-5",
            "name": "claude-sonnet-4-5",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 64000
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "aihubmix/claude-sonnet-4-5"
      },
      "workspace": "your_workspace_path",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  }
}

起動

openclaw gateway

テスト

チャットページで hello と入力します。返信があれば設定は成功です。 Oc 12

よくある質問

バージョンアップグレード

npm update -g openclaw-aihubmix

Gateway プロセスが使用中の場合

openclaw gateway stop
openclaw gateway

最終更新日:2026-06-01