| summary | MiniMax provider data sources: Coding Plan tokens, browser cookies, and web-session parsing. | |||
|---|---|---|---|---|
| read_when |
|
MiniMax supports Coding Plan API tokens or web sessions. Web-session mode uses MiniMax browser/session state and falls back across the provider's supported web requests when needed.
-
Coding Plan API token
- Set in Preferences → Providers → MiniMax (stored in
~/.codexbar/config.json),MINIMAX_CODING_API_KEY, orMINIMAX_API_KEY. - When both environment variables are present,
MINIMAX_CODING_API_KEYwins so a standardsk-api-*key does not mask a coding-plansk-cp-*key. - Auto mode can fall back to the web/cookie path when API-token credentials are rejected or the global endpoint returns 404.
- Set in Preferences → Providers → MiniMax (stored in
-
Cached/imported browser session (automatic web path)
- Uses CodexBar's standard cookie cache and browser import flow.
-
Browser cookie import (automatic)
- Uses provider metadata for browser order and MiniMax domain filters.
- Chromium browser storage can supplement imported cookies with access-token context when available.
-
Manual session cookie header (optional web-path override)
- Stored in
~/.codexbar/config.jsonvia Preferences → Providers → MiniMax (Cookie source → Manual). - Accepts a raw
Cookie:header or a full "Copy as cURL" string. - Low-level no-settings runtime can read
MINIMAX_COOKIEorMINIMAX_COOKIE_HEADER.
- Stored in
- Web sessions use the global host or China mainland host.
- Region picker in Providers settings toggles the host; environment overrides:
MINIMAX_HOST=platform.minimaxi.comMINIMAX_CODING_PLAN_URL=...(full URL override)MINIMAX_REMAINS_URL=...(full URL override)
- Open the Coding Plan page and DevTools → Network.
- Select the request to
/v1/api/openplatform/coding_plan/remains. - Copy the
Cookierequest header (or use “Copy as cURL” and paste the whole line). - Paste into Preferences → Providers → MiniMax only if automatic import fails.
- Primary usage, reset timing, and plan/tier are derived from Coding Plan response fields or page text.
Sources/CodexBarCore/Providers/MiniMax/MiniMaxUsageFetcher.swiftSources/CodexBarCore/Providers/MiniMax/MiniMaxProviderDescriptor.swiftSources/CodexBar/Providers/MiniMax/MiniMaxProviderImplementation.swift