Repository navigation
Conversation
McoreD
force-pushed
the
feat/minimax-token-plan
branch
from
September 1, 2026 12:16
1f57d51 to
79dd774
Compare
…-plan # Conflicts: # manual/17-ai.md
Contributor
|
Thank you! The collector is brought in with your authorship in #14039, with a last-good-limits cache. The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MINIMAX_API_KEY, the officialmmx auth loginAPI-key/OAuth config, or OpenCodeMINIMAX_BASE_URL, andMMX_CONFIG_DIRmmxCLI as a lazy mise wrapper for first-classmmx auth login,mmx auth status,mmx quota, andmmx agent setupworkflowsSetup > AI > MiniMaxwith Login, Configure Agents, and Token Plan Quota actionsWhy
MiniMax Token Plan exposes the same two subscription windows the Agents panel already models for Claude and Codex. Its current quota endpoint returns remaining percentages and reset times for the
generallanguage/agent bucket. Keeping this in a standalone collector preserves the panel's provider-agnostic record contract.The collector deliberately ignores modality rows such as
video: MiniMax currently has a documented server inconsistency where a plan without a modality can report 100% remaining alongside a 0/0 allowance. Thegeneralbucket is the relevant coding-agent quota and avoids presenting that misleading state.MiniMax's official CLI owns authentication, matching Omarchy's existing pattern of delegating provider login to Codex, Claude Code, and other upstream CLIs instead of creating another credential store.
Verification
test/shell.d/agent-usage-minimax-test.shbash test/shell.d/default-agent-test.shbash test/shell.d/menu-test.sh./test/clipython3 -m py_compile bin/omarchy-agent-usage-minimaxgit diff --checkThe focused tests cover quota normalization, reset timestamps, API-key/OAuth/OpenCode credential discovery, saved-region handling, the display-ready record contract, new-install stubs, migration stubs, and preinstall removal.
The collector was also verified live with an OAuth session created by
mmx auth login. It successfully read the current Token Plan's 5-hour and weekly windows and normalized their reset timestamps without exposing credential material.References