Video Walkthrough
Before you begin:
- An active Agent 37 account
- A running OpenClaw instance in Agent 37
- The base URL for your custom provider
- An API key if your provider requires authentication
- A model ID supported by that provider
When to use a custom provider
Use a custom provider when:- your preferred vendor is not in the built-in provider list
- you use an OpenAI-compatible proxy or gateway
- you route traffic through a private or self-hosted endpoint
- you want multiple external providers behind one custom base URL
Step 1: Gather the provider details
Before you open the setup flow, make sure you have:- The provider base URL, for example
https://your-provider.example.com/v1 - The API compatibility type:
- OpenAI-compatible
- Anthropic-compatible
- Unknown, if you want OpenClaw to auto-detect
- The API key, if required
- The model ID you want to use
- An endpoint ID or label so you can recognize this provider later
Step 2: Open your Agent 37 instance
- Go to the Agent 37 dashboard and sign in.
- Open an existing instance, or create a new one.
- Open Terminal.
Step 3: Start the configuration flow
In Terminal, run:- Where will the gateway run? →
Local - Select Section to Configure? →
Model - Model / Auth Provider →
Custom Provider
Step 4: Enter the custom provider details
OpenClaw will guide you through the custom provider setup. You will be asked to:- API Base URL → your provider’s base API URL, such as:
https://your-provider.example.com/v1Example:https://api.minimax.io/v1
- How do you want to provide this API key now? →
Paste API key now - Endpoint-compatibility
- Choose
OpenAI-compatibleif your provider exposes an OpenAI-style /v1 API - Choose
Anthropic-compatibleif it uses Anthropic’s Messages API - Choose
Unknownif you want OpenClaw to auto-detect compatibility
- Choose
- Enter API key → paste the API key you copied from your provider
- Model ID → enter the exact upstream model name Example:
Minimax-M2.7 - Alias (optional) → enter a friendly display name for the model
- Endpoint ID → enter a short provider identifier such as:
myproxyorminimax
Step 5: Continue and verify the model
After you finish the prompt flow, run:<endpoint-id>/<model-id>
Example:
minimax/Minimax-M2.7
If you want to make it your default model, run:
Optional: Understand the underlying config
OpenClaw stores custom providers in the model configuration. A custom provider entry typically includes fields like:baseUrlapiKeyapimodels
Troubleshooting tips
- Confirm that the base URL includes the correct API path, often
/v1 - Make sure the model ID exactly matches the provider catalog
- Recheck whether the endpoint is OpenAI-compatible or Anthropic-compatible
- Verify that your API key has active billing or access
What to do next
OpenAI API
Use the built-in OpenAI flow if you do not need a custom endpoint.
Claude API
Use the Anthropic flow if you want the native Claude provider setup.