Skip to main content

OpenClaw

1.1 API Configuration

Method 1: UI Configuration

  1. Start OpenClaw Dashboard

  2. Open the configuration page in a browser

  3. Navigate to Config → Models → Providers

  4. Click Add Entry and fill in:

    • Provider name: HPC-AI Tech

    • Base URL: https://api.hpc-ai.com/inference/v1

    • API Key: your-hpc-ai-api-key

    • API: openai-completions

  5. Add model information

  6. Save

Method 2: CLI Configuration

# Set model provider configuration
openclaw config set 'models.providers.hpc_ai' --json '{
"baseUrl": "https://api.hpc-ai.com/inference/v1",
"apiKey": "sk-your-hpc-ai-api-key",
"api": "openai-completions",
"models": [
{
"id": "minimax/minimax-m2.5",
"name": "HPC-AI Tech",
"reasoning": false,
"input": ["text"],
"cost": {"input": 0.001, "output": 0.002, "cacheRead": 0, "cacheWrite": 0},
"contextWindow": 128000,
"maxTokens": 8192
}
]
}'

# Set default model
openclaw models set minimax/minimax-m2.5

# List models
openclaw models list

Method 3: Manual Config File Edit

OpenClaw config file by default:

~/.openclaw/openclaw.json

Edit the providers field and agents.defaults.model.primary as needed.

1.2 Configuration Verification

# Restart gateway to apply config
openclaw gateway restart

# Probe model connectivity (sends real request)
openclaw models status --probe