Adam Manning
9eb16025bd
feat(cli): add minimax-oauth provider with PKCE browser flow
Add MiniMax OAuth (minimax-oauth) as a first-class provider using a
PKCE device-code flow ported from openclaw/extensions/minimax/oauth.ts.
Changes:
- hermes_cli/auth.py:
- Add 8 MINIMAX_OAUTH_* constants (client ID, scope, grant type,
global/CN base URLs, inference URLs, refresh skew)
- Add 'minimax-oauth' ProviderConfig to PROVIDER_REGISTRY (auth_type
oauth_minimax) with global portal + inference base URLs and CN
extras in the extra dict
- Add provider aliases: minimax-portal, minimax-global, minimax_oauth
- Implement _minimax_pkce_pair(), _minimax_request_user_code(),
_minimax_poll_token(), _minimax_save_auth_state(),
_minimax_oauth_login(), _refresh_minimax_oauth_state(),
resolve_minimax_oauth_runtime_credentials(),
get_minimax_oauth_auth_status(), _login_minimax_oauth()
- Token refresh uses standard OAuth2 refresh_token grant; triggers
relogin_required on invalid_grant / refresh_token_reused
- hermes_cli/runtime_provider.py:
- Add minimax-oauth branch (after qwen-oauth) that calls
resolve_minimax_oauth_runtime_credentials() and returns
api_mode='anthropic_messages' with the OAuth Bearer token
- hermes_cli/auth_commands.py:
- Add 'minimax-oauth' to _OAUTH_CAPABLE_PROVIDERS
- Add auth_type auto-detection for oauth_minimax
- Add provider == 'minimax-oauth' branch in auth_add_command
- hermes_cli/doctor.py:
- Import get_minimax_oauth_auth_status
- Add MiniMax OAuth status check in the Auth Providers section
2026-04-29 09:53:42 -07:00
..
2026-04-23 15:31:59 -07:00
2026-04-29 09:53:42 -07:00
2026-04-29 09:53:42 -07:00
2026-04-28 06:46:45 -07:00
2026-04-28 01:50:23 -07:00
2026-04-28 06:46:45 -07:00
2026-04-28 22:11:10 -07:00
2026-04-14 16:11:37 -07:00
2026-04-28 01:50:23 -07:00
2026-04-13 16:32:04 -07:00
2026-04-11 13:14:32 -05:00
2026-04-23 13:32:43 -07:00
2026-03-30 17:07:21 -07:00
2026-04-28 22:33:33 -07:00
2026-04-14 10:45:42 -07:00
2026-04-29 07:22:33 -07:00
2026-04-24 05:09:08 -07:00
2026-04-24 05:07:01 -07:00
2026-04-28 23:23:11 -07:00
2026-04-16 12:36:49 -07:00
2026-04-28 06:46:45 -07:00
2026-03-26 01:34:27 -07:00
2026-04-28 06:46:45 -07:00
2026-04-29 09:53:42 -07:00
2026-04-28 21:04:35 -07:00
2026-04-28 04:58:22 -07:00
2026-04-26 06:19:04 -07:00
2026-04-29 06:34:13 -07:00
2026-04-28 06:46:45 -07:00
2026-04-11 17:23:36 -07:00
2026-04-29 06:34:13 -07:00
2026-04-29 04:03:03 -07:00
2026-04-15 14:25:40 -07:00
2026-04-28 06:46:45 -07:00
2026-04-24 05:24:54 -07:00
2026-04-29 08:11:05 -07:00
2026-04-28 12:27:36 -07:00
2026-04-26 19:02:55 -07:00
2026-04-28 01:47:20 -07:00
2026-04-23 02:34:11 -07:00
2026-04-26 18:50:49 -07:00
2026-04-29 04:03:03 -07:00
2026-04-29 04:03:03 -07:00
2026-04-28 05:37:09 -07:00
2026-04-28 12:27:36 -07:00
2026-04-24 12:07:46 -04:00
2026-04-29 09:53:42 -07:00
2026-04-29 07:22:33 -07:00
2026-04-29 04:03:03 -07:00
2026-04-26 20:57:10 -07:00
2026-04-28 18:47:14 -05:00
2026-04-26 11:38:32 -07:00
2026-04-29 07:22:33 -07:00
2026-04-26 20:48:20 -07:00
2026-04-28 09:50:27 -07:00
2026-04-29 04:03:03 -07:00
2026-04-18 19:18:13 -07:00
2026-04-29 07:22:33 -07:00
2026-04-23 16:18:15 -07:00
2026-04-29 07:22:33 -07:00
2026-04-29 04:03:03 -07:00