OpenClaw
1.1 API Configuration
Method 1: UI Configuration
-
Start OpenClaw Dashboard
-
Open the configuration page in a browser
-
Navigate to Config → Models → Providers
-
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
-
-
Add model information
-
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