Files
openclaw/extensions/minimax
NianJiu d4e42d61c9 fix(minimax): normalize OAuth token expiry to absolute millisecond timestamp (#83480)
* fix(minimax): normalize OAuth token expiry to absolute millisecond timestamp

MiniMax returns expired_in from the token endpoint as a relative duration
in seconds (standard OAuth expires_in semantics), but the auth profile
store's hasUsableOAuthCredential() expects an absolute millisecond
timestamp.  Without conversion the token appears perpetually expired,
triggering a slow OAuth refresh network call to api.minimaxi.com on
every request — the root cause of the 30-50s auth-stage delay.

Fixes #83449.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(minimax): cover oauth expiry normalization

* fix: polish minimax oauth expiry normalization (#83480) (thanks @NianJiuZst)

* fix: update minimax raw fetch allowlist (#83480)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-24 05:21:22 +01:00
..
2026-05-24 02:40:16 +01:00

MiniMax (OpenClaw plugin)

Bundled MiniMax plugin for both:

  • API-key provider setup (minimax)
  • Token Plan OAuth setup (minimax-portal)

Enable

openclaw plugins enable minimax

Restart the Gateway after enabling.

openclaw gateway restart

Authenticate

OAuth:

openclaw models auth login --provider minimax-portal --set-default

API key:

openclaw setup --wizard --auth-choice minimax-global-api

Notes

  • MiniMax OAuth uses a user-code login flow.
  • OAuth currently targets the Token Plan path.