MiniMax Search via Token Plan API
Configure OpenClaw to use MiniMax as a web search provider with the Token Plan search API. This page covers credential setup, environment variables, and region selection.
Read this when
- You want to use MiniMax for web_search
- You need a MiniMax Token Plan key or OAuth token
- You want MiniMax CN/global search host guidance
OpenClaw supports MiniMax as an web_search provider using the MiniMax Token Plan search API. It returns structured search results containing titles, URLs, snippets, and related queries.
Get a Token Plan credential
Create a key
Create or copy a MiniMax Token Plan key from MiniMax Platform. OAuth setups can reuse MINIMAX_OAUTH_TOKEN instead.
Store the key
Set MINIMAX_CODE_PLAN_KEY in the Gateway environment, or configure using:
openclaw configure --section web
OpenClaw also accepts MINIMAX_CODING_API_KEY, MINIMAX_OAUTH_TOKEN, and MINIMAX_API_KEY as environment aliases, checked in that order after MINIMAX_CODE_PLAN_KEY. MINIMAX_API_KEY should point to a search-enabled Token Plan credential; ordinary MiniMax model API keys may not work with the Token Plan search endpoint.
Config
{
plugins: {
entries: {
minimax: {
config: {
webSearch: {
apiKey: "sk-cp-...", // optional if a MiniMax Token Plan env var is set
region: "global", // or "cn"
},
},
},
},
},
tools: {
web: {
search: {
provider: "minimax",
},
},
},
}
Environment alternative: set MINIMAX_CODE_PLAN_KEY, MINIMAX_CODING_API_KEY, MINIMAX_OAUTH_TOKEN, or MINIMAX_API_KEY in the Gateway environment. For a gateway install, place it in ~/.openclaw/.env.
Region selection
MiniMax Search uses these endpoints:
- Global:
https://api.minimax.io/v1/coding_plan/search - CN:
https://api.minimaxi.com/v1/coding_plan/search
If plugins.entries.minimax.config.webSearch.region is not set, OpenClaw resolves the region in this order:
- Plugin-owned
webSearch.region MINIMAX_API_HOSTmodels.providers.minimax.baseUrlmodels.providers.minimax-portal.baseUrl
This means CN onboarding or MINIMAX_API_HOST=https://api.minimaxi.com/... automatically keeps MiniMax Search on the CN host as well.
Even when you authenticated MiniMax through the OAuth minimax-portal path, web search still registers as provider id minimax. The OAuth provider base URL is used as a region hint for CN or global host selection, and MINIMAX_OAUTH_TOKEN can satisfy the MiniMax Search bearer credential.
Supported parameters
| Parameter | Type | Constraints | Description |
|---|---|---|---|
query | string | required | Search query string. |
count | integer | 1-10, default 5 | Number of results to return. OpenClaw trims the returned list to this size. |
Provider-specific filters are not currently supported.
Related
- Web Search overview -- all providers and auto-detection
- MiniMax -- model, image, speech, and auth setup