Prerequisites
Before you begin, make sure that:
OpenClaw is installed
Download and install OpenClaw. After installation, you should be able to run the
openclawcommand in your terminal.You have obtained a MaiToken API key
Log in to the MaiToken Console to obtain your API key (starting with
sk-).
Tip: If you do not have a MaiToken account yet, first register at MaiToken and obtain an API key.
Configuration Steps
Run the following command in your terminal to start the setup wizard:
openclaw onboardFollow the prompts and enter the information below:
Step 1: Select a Model/Authentication Provider
Model/auth provider:Use the arrow keys to select Custom Provider, then press Enter to confirm.
Step 2: Enter the API Base URL
API Base URL:Enter the following URL:
https://api.maitoken.net/v1Step 3: Enter the API Key
API Key:Paste the API key (sk-xxxxxxxxxxxx) obtained from the MaiToken Console.
Step 4: Select Endpoint Compatibility
Endpoint compatibility:Use the arrow keys to select OpenAI-compatible, then press Enter to confirm.
Step 5: Enter the Model ID
Model ID:Enter the ID of the model you want to use, for example:
claude-sonnet-4-6Recommended Models
| Model Name | Model ID | Key Features |
|---|---|---|
| Claude Sonnet 4.6 | claude-sonnet-4-6 |
The best balance of performance and cost, suitable for most use cases |
| Claude Opus 4.6 | claude-opus-4-6 |
The most powerful Claude model, suitable for complex tasks |
| Claude Haiku 4.5 | claude-haiku-4-5 |
Fast and economical, suitable for lightweight tasks |
| Qwen3 Max | qwen3-max |
Alibaba Cloud's flagship reasoning model |
| Kimi K2.5 | kimi-k2.5 |
Moonshot AI's long-context model |
Configuration Complete
After completing the steps above, OpenClaw will use MaiToken as its backend service. You can immediately start using the AI chat features, and all requests will be routed through MaiToken to the corresponding model.
Frequently Asked Questions
Authentication Failed?
- Confirm that the API Key is correct and starts with
sk- - Check whether the key is valid in the MaiToken Console
- Make sure your account has sufficient balance
Model Unavailable?
- Confirm that the API Base URL is set to
https://api.maitoken.net/v1(including the/v1suffix) - Confirm that OpenAI-compatible is selected for Endpoint compatibility
- Check that the model ID is spelled correctly
Support and Help
If you encounter any issues while using the service:
Get Started with MaiToken — Register for MaiToken now, obtain your API key, and begin your AI journey in OpenClaw!
