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.
Instalação
Please ensure Node >= 22 before installation.
Run the installation command
npm install -g openclaw@latest
Terminal Configuration
Abra o terminal and execute o seguinte command to start the configuration
Selecione Yes
Selecione QuickStart
Selecione Skip for now
Selecione All providers
Escolha the default model as needed; você pode initially selecione Keep current, which can be modified no configuration file no next step.
Link your personal account as needed; if not required, please selecione Skip for now.
Configure skills by selecting Yes.
Selecione npm
Configure skill selection as needed.
Selecione No for all options.
Selecione Skip for now.
Selecione Hatch in UI.
Method 1: Quick Setup via Plugin (Recommended)
Instale o AIHubMix auth plugin and restart the Gateway:
openclaw plugins install @akaknele/aihubmix-auth
openclaw gateway restart
Run the auth command. Enter your AIHubMix chave de API when prompted. The plugin will automatically sync available models and set AIHubMix as the default provider:
openclaw models auth login --provider aihubmix --method api-key --set-default
The plugin organizes models into o seguinte groups:
- openai — OpenAI models
- anthropic — Anthropic models
- google — Google models
- other — Other models
Uma vez configurado, jump to the Start section to begin using it.
Method 2: Manual Configuration
Abra o ~/.openclaw/openclaw.json file and add o seguinte configuration:
{
"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
}
}
}
}
Start
Test
Type hello no chat page; if you receive a reply, the configuration is successful.
Perguntas Frequentes
Version Upgrade
npm update -g openclaw-aihubmix
Gateway Process Occupied
openclaw gateway stop
openclaw gateway
Última atualização: 2026-06-01