






















@@ -1,22 +1,23 @@
11---
2-summary: "MiniMax Search via the Coding Plan search API"
2+summary: "MiniMax Search via the Token Plan search API"
33read_when:
44 - You want to use MiniMax for web_search
5- - You need a MiniMax Coding Plan key
5+ - You need a MiniMax Token Plan key or OAuth token
66 - You want MiniMax CN/global search host guidance
77title: "MiniMax search"
88---
991010OpenClaw supports MiniMax as a `web_search` provider through the MiniMax
11-Coding Plan search API. It returns structured search results with titles, URLs,
11+Token Plan search API. It returns structured search results with titles, URLs,
1212snippets, and related queries.
131314-## Get a Coding Plan key
14+## Get a Token Plan credential
15151616<Steps>
1717<Step title="Create a key">
18-Create or copy a MiniMax Coding Plan key from
18+Create or copy a MiniMax Token Plan key from
1919[MiniMax Platform](https://platform.minimax.io/user-center/basic-information/interface-key).
20+OAuth setups can reuse `MINIMAX_OAUTH_TOKEN` instead.
2021</Step>
2122<Step title="Store the key">
2223Set `MINIMAX_CODE_PLAN_KEY` in the Gateway environment, or configure via:
@@ -28,8 +29,9 @@ snippets, and related queries.
2829</Step>
2930</Steps>
303131-OpenClaw also accepts `MINIMAX_CODING_API_KEY` as an env alias. `MINIMAX_API_KEY`
32-is still read as a compatibility fallback when it already points at a coding-plan token.
32+OpenClaw also accepts `MINIMAX_CODING_API_KEY` and `MINIMAX_OAUTH_TOKEN` as env
33+aliases. `MINIMAX_API_KEY` is still read as a compatibility fallback when it
34+already points at a token-plan credential.
33353436## Config
3537@@ -40,7 +42,7 @@ is still read as a compatibility fallback when it already points at a coding-pla
4042 minimax: {
4143 config: {
4244 webSearch: {
43- apiKey: "sk-cp-...", // optional if MINIMAX_CODE_PLAN_KEY is set
45+ apiKey: "sk-cp-...", // optional if a MiniMax Token Plan env var is set
4446 region: "global", // or "cn"
4547 },
4648 },
@@ -57,7 +59,8 @@ is still read as a compatibility fallback when it already points at a coding-pla
5759}
5860```
596160-**Environment alternative:** set `MINIMAX_CODE_PLAN_KEY` in the Gateway environment.
62+**Environment alternative:** set `MINIMAX_CODE_PLAN_KEY` or `MINIMAX_OAUTH_TOKEN`
63+in the Gateway environment.
6164For a gateway install, put it in `~/.openclaw/.env`.
62656366## Region selection
@@ -80,7 +83,8 @@ automatically keeps MiniMax Search on the CN host too.
80838184Even when you authenticated MiniMax through the OAuth `minimax-portal` path,
8285web search still registers as provider id `minimax`; the OAuth provider base URL
83-is only used as a region hint for CN/global host selection.
86+is used as a region hint for CN/global host selection, and `MINIMAX_OAUTH_TOKEN`
87+can satisfy the MiniMax Search bearer credential.
84888589## Supported parameters
8690此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。