OpenClaw Model API Configuration
After installing OpenClaw, you need to configure the large language model API.
To configure OpenClaw model API, follow these steps:
- Select Model Provider: Choose a large language model provider such as OpenAI, Anthropic, etc., and register to obtain API keys.
- Obtain API Key: On the model provider's official website, create an account and get the API key, which will be used for communication between OpenClaw and the large model.
- Configure OpenClaw: In OpenClaw's settings interface, enter the model provider's API key and select the model type you want to use (such as GPT-4, MinMax2.5, etc.).
- Test Connection: After configuration, you can use OpenClaw's test functionality to verify that the API connection is successful and ensure OpenClaw can properly invoke the large model for task processing.
We'll use MinMax as an example:
- First, visit the MinMax Developer Platform to register and click
Get your key:
https://platform.minimaxi.com/user-center/basic-information

-
Click Create New API Key:

-
Copy the newly generated API key:

Configure OpenClaw Model API
Use the command below to enter the OpenClaw settings interface:
openclaw configure

- Use arrow keys to select "Local", then press Enter.
- Next, select the
Modeloption and press Enter.

- Use arrow keys again to select the
MiniMaxmodel and press Enter to confirm:
Tip: Since we're using the
MiniMaxmodel here, selectMiniMax2.5 (CN)from the model provider list. If using a different model, select the corresponding provider.

Then enter the API key we obtained earlier and press Enter to confirm:

Next, a multi-select page will appear. Press Enter to accept the default options, and finally select Continue to exit the configuration process:

Model API configuration is now complete.
Test Model API Configuration
Enter OpenClaw's chat interface and send a message to OpenClaw:


