OpenClaw access
Configure the site address, independent keys and available models in OpenClaw.
OpenClaw’s gateway process needs to read the model configuration of the actual running user. Endpoint testing and gateway services should be verified separately.
Step one: Positioning configuration
Install according to OpenClaw official document and execute under the gateway running account:
openclaw config file
The configuration file displayed by the backup command, usually ~/.openclaw/openclaw.json. Create a site-specific key and choose an actual model that supports Chat and tools.
Step 2: Merge Provider
Merge the following structure into the configuration, retaining the original channels, gateway, and other agents settings:
{
"models": {
"mode": "merge",
"providers": {
"dundun": {
"baseUrl": "https://dunduntoken.com/v1",
"apiKey": "YOUR_DUNDUN_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "MODEL_ID",
"name": "DunDun model"
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "dundun/MODEL_ID"
}
}
}
}
Replace the key with the model ID in both places. Examples include clear text credentials, restricting file read permissions, not committing to Git or public backups, setting environment or secret references in syntax supported by the current version, and confirming that the service can read them. dundun/ is just the client provider prefix.
Step 3: Verification and restart
openclaw config validate
openclaw models list
openclaw models set "dundun/MODEL_ID"
openclaw gateway restart
openclaw gateway status
When verifying an error, correct the configuration first without overwriting the entire existing file. If the command changes with the version, please refer to the local help and official documentation.
Step 4: Hierarchical verification
openclaw agent --local --agent main --message "Reply only OK." --timeout 120
After local testing, create a new dialogue on the actual gateway interface and check the call record of this site respectively. Local pass cannot replace the gateway service test. Then verify the read-only tool, and finally access the message channel.
FAQ
The model is visible but not available, check if the Agent still overrides the default model. Endpoint succeeds but service 401, check service account, configuration path and credential source. 404 check /v1/chat/completions; when there is no reply from the message channel, first distinguish whether the message did not enter the gateway or the inference failed. Delete Key, channel Secret and signature link before log feedback.