Skip to main content

Installation

Please ensure Node >= 22 before installation.
Run the installation command
After installation, the following commands can be run from any directory. You do not need to switch to the OpenClaw installation directory first. If your terminal recognizes openclaw, you can copy the commands in this guide directly.
If Windows reports that openclaw cannot be found, replace the leading openclaw command with your local executable path:
your-install-path is a placeholder. Replace it with the parent directory where OpenClaw is installed. For example, if OpenClaw is located at D:\Apps\OpenClaw, use & "D:\Apps\OpenClaw\openclaw.cmd" models status.

Terminal Configuration

Open the terminal and run the following command to start the configuration
Select Yes Oc 1 Select QuickStart Oc 2 Select Skip for now Oc 3 Select All providers Oc 4 Choose the default model as needed; you can initially select Keep current (if using “Method 2: Manual Configuration”, it can be modified in the configuration file in the next step). Oc 5 Link your personal account as needed; if not required, please select Skip for now. Oc 6 Configure skills by selecting Yes. Oc 7 Select npm Oc 8 Configure skill selection as needed. Oc 9 Select No for all options. Oc 10 Select Skip for now. Oc 11 Select Hatch in UI.

Configure AIHubMix

Plugin source code: aihubmix-auth
Install the AIHubMix auth plugin and restart the Gateway:
Run the auth command. Enter your AIHubMix API Key when prompted. You only need to run the command below once for any one of the four providers — the plugin uses providerAuthAliases to make the same key valid for all transports:
The plugin organizes models into the following groups:
  • aihubmix-openaigpt-* / o1-* / o3-* / o4-*, https://aihubmix.com/v1 (openai-completions)
  • aihubmix-anthropicclaude-*, https://aihubmix.com (anthropic-messages)
  • aihubmix-googlegemini-*, https://aihubmix.com/gemini/v1beta (google-generative-ai)
  • aihubmix-other — other models, https://aihubmix.com/v1 (openai-completions)
Shorthand model ids (e.g. claude-sonnet-4-5) are automatically routed to the correct transport by the plugin’s resolveDynamicModel hook — no need to write the full provider/model.
Prefer to skip interactive login? Set export AIHUBMIX_API_KEY=sk-... before installing — the plugin will write the key as an inline apiKey in the provider config (interactive login stores it in the auth-profile instead).
Once configured, jump to the Start section to begin using it.

Method 2: Manual Configuration

Open the ~/.openclaw/openclaw.json file and add the following configuration:

Method 3: Switch the Default Model with Dynamic Model Commands

The AIHubMix OpenClaw plugin supports dynamic model routing. As long as a model is available in your AIHubMix account, you can call it in the provider/model-id format. The actual model availability depends on the AIHubMix console and API response. Common provider rules:
  • aihubmix-openai: OpenAI-compatible models, such as gpt-*, o1-*, o3-*, and o4-*
  • aihubmix-anthropic: Claude models, such as claude-*
  • aihubmix-google: Gemini models, such as gemini-*
  • aihubmix-other: other models called through an OpenAI-compatible endpoint, such as glm-5.2
For example, set gpt-5.4 as the default OpenClaw model:
If Windows cannot find openclaw, use the local path form:
Check the current default model and authentication status:
Run a real call for verification:
To call a model outside the OpenAI / Claude / Gemini groups, use aihubmix-other, for example:
List the model catalog currently loaded by OpenClaw:

Start

Test

Type hello in the chat page; if you receive a reply, the configuration is successful. Oc 12

Frequently Asked Questions

Version Upgrade

Gateway Process Occupied


Last updated: 2026-07-03