跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

OpenClaw 透過 MiniMax Coding Plan 搜尋 API 支援 MiniMax 作為 web_search 提供者。它會傳回包含標題、URL、摘要和相關查詢的結構化搜尋結果。

取得 Coding Plan 金鑰

1

建立金鑰

MiniMax Platform 建立或複製 MiniMax Coding Plan 金鑰。
2

儲存金鑰

在 Gateway 環境中設定 MINIMAX_CODE_PLAN_KEY,或透過以下方式設定:
openclaw configure --section web
OpenClaw 也接受 MINIMAX_CODING_API_KEY 作為環境變數別名。當 MINIMAX_API_KEY 已指向 coding-plan 權杖時,仍會作為相容性後援讀取。

設定

{
  plugins: {
    entries: {
      minimax: {
        config: {
          webSearch: {
            apiKey: "sk-cp-...", // optional if MINIMAX_CODE_PLAN_KEY is set
            region: "global", // or "cn"
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: {
        provider: "minimax",
      },
    },
  },
}
**環境替代方案:**在 Gateway 環境中設定 MINIMAX_CODE_PLAN_KEY。 若是 Gateway 安裝,請將它放在 ~/.openclaw/.env

區域選擇

MiniMax Search 使用這些端點:
  • 全球:https://api.minimax.io/v1/coding_plan/search
  • 中國:https://api.minimaxi.com/v1/coding_plan/search
如果未設定 plugins.entries.minimax.config.webSearch.region,OpenClaw 會依照以下順序解析區域:
  1. tools.web.search.minimax.region / Plugin 擁有的 webSearch.region
  2. MINIMAX_API_HOST
  3. models.providers.minimax.baseUrl
  4. models.providers.minimax-portal.baseUrl
這表示中國區上線設定或 MINIMAX_API_HOST=https://api.minimaxi.com/... 也會自動讓 MiniMax Search 使用中國區主機。 即使你是透過 OAuth minimax-portal 路徑驗證 MiniMax, 網頁搜尋仍會註冊為提供者 ID minimax;OAuth 提供者基底 URL 只會作為中國區/全球主機選擇的區域提示使用。

支援的參數

MiniMax Search 支援:
  • query
  • count(OpenClaw 會將傳回的結果清單裁剪為要求的數量)
目前不支援提供者特定的篩選器。

相關