Saltar para o conteúdo principal

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
openclaw onboard
Selecione Yes Oc 1 Selecione QuickStart Oc 2 Selecione Skip for now Oc 3 Selecione All providers Oc 4 Escolha the default model as needed; você pode initially selecione Keep current, which can be modified no configuration file no next step. Oc 5 Link your personal account as needed; if not required, please selecione Skip for now. Oc 6 Configure skills by selecting Yes. Oc 7 Selecione npm Oc 8 Configure skill selection as needed. Oc 9 Selecione No for all options. Oc 10 Selecione Skip for now. Oc 11 Selecione Hatch in UI.

Configure AIHubMix

Plugin source code: aihubmix-auth
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

openclaw gateway

Test

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

Perguntas Frequentes

Version Upgrade

npm update -g openclaw-aihubmix

Gateway Process Occupied

openclaw gateway stop
openclaw gateway

Última atualização: 2026-06-01