Apus supports MiniMax as a web_search provider through the MiniMax Token Plan search API. It returns structured search results with 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](https://platform.minimax.io/user-center/basic-information/interface-key).
OAuth setups can reuse `MINIMAX_OAUTH_TOKEN` instead.

Store the key

Set `MINIMAX_CODE_PLAN_KEY` in the Gateway environment, or configure via:

```bash
apus configure --section web
```

Apus also accepts MINIMAX_CODING_API_KEY, MINIMAX_OAUTH_TOKEN, and MINIMAX_API_KEY as env aliases, checked in that order after MINIMAX_CODE_PLAN_KEY. MINIMAX_API_KEY should point at a search-enabled Token Plan credential; ordinary MiniMax model API keys may not be accepted by 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, put it in ~/.apus/.env.

Region selection

MiniMax Search uses these endpoints:

Apus resolves the region in this order:

  1. Plugin-owned plugins.entries.minimax.config.webSearch.region, when set.
  2. MINIMAX_API_HOST, when it points at a minimaxi.com host.
  3. models.providers.minimax.baseUrl or models.providers.minimax-portal.baseUrl, when either points at a minimaxi.com host.

Steps 2 and 3 only detect the CN host; anything else resolves to global.

That means CN onboarding or MINIMAX_API_HOST=https://api.minimaxi.com/... automatically keeps MiniMax Search on the CN host too.

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/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. Apus trims the returned list to this size.

Provider-specific filters are not currently supported.

Related