OpenClaw setup
Select a custom provider
Section titled “Select a custom provider”Install and complete basic setup using the official documentation. Make WUDI_API_KEY available to the running process and choose a model supporting the tools you need. Model access is separate from your message channels and tool permissions.
Configuration example
Section titled “Configuration example”Merge the model section into the active configuration. Its file location depends on the version and profile. Keep other agents, channels and authentication settings:
{ "models":{ "mode":"merge", "providers":{ "wudi":{ "baseUrl":"https://wudiapi.com/v1", "apiKey":"${WUDI_API_KEY}", "api":"openai-completions", "models":[{"id":"gpt-5.6-sol","name":"GPT · WuDi API"}] } } }, "agents":{"defaults":{"model":{"primary":"wudi/gpt-5.6-sol"}}}}openai-completions names this client’s Chat Completions adapter; it does not mean the legacy text-completion endpoint. Switching to Responses also requires compatible client and route support.
Verify
Section titled “Verify”Use the installed version’s validation command or settings screen, reload and start a new session. Ask for a plain answer before testing access to a file you have permitted. Confirm the model and group in WuDi usage logs.
Troubleshoot
Section titled “Troubleshoot”For variable interpolation errors, check the service process’s environment. For missing models, check the provider ID and primary prefix. For tool errors, compare the adapter, model capability and message history. Do not expose an administrative interface or disable authentication to fix a model connection.
Restore
Section titled “Restore”Restore the original primary value and remove the added providers.wudi. If several agents have their own model overrides, check each of them.
Reference: custom providers.
