Feature request: Jimeng credits, MiniMax regular API keys, Kimi multi-region and team spaces
Hi, thanks for CodexBar. A few provider requests:
- Jimeng / Dreamina (ByteDance): show remaining credits, including team-space credits.
- MiniMax: today only Coding Plan keys work. Please also show the balance for regular pay-as-you-go API keys on the China host (minimaxi.com).
- Kimi: one person can hold several Kimi plans at once, but CodexBar can only show one of them today.
- Both regions at the same time. My Kimi Code API key is on kimi.com (China), while my membership account is on kimi.ai (International). The Kimi provider uses one region for all its accounts, so I can't show both.
- Personal vs. team/enterprise spaces. On kimi.ai one login can switch between a personal space and an enterprise space, and each has its own plan. The web source calls
GetUsageswith onlyFEATURE_CODINGand no way to choose the space, so the enterprise space can't be read. Please let each account choose which space to read. - Label each plan clearly (Kimi Code API plan, membership, team/enterprise space, personal space) so it's obvious which quota belongs to which plan.
Happy to help test.
Codex review: this still needs some work.
Summary Keep this issue open: meaningful provider and account-scope gaps remain, and the owner explicitly requested endpoint evidence while keeping the discussion open.
Reproducibility: Source, documentation, and existing tests establish the support limitations; no live provider reproduction was attempted, and enterprise-space behavior remains unverified.
Maintainer decision needed
- Question: How should Kimi represent a China Code API plan alongside international personal and enterprise web plans?
- Recommendation: Define independently scoped accounts: After validating space requests, bind credential type, region, and space to each account and label its plan explicitly.
- Why: The owner acknowledges the capability gap, but the discussion does not settle the account model or the external space-selection contract.
Next step Collect the owner-requested redacted balance and space-switching examples, then define the Kimi account model and split verified capabilities into focused proposals.
Review details
Best possible solution:
Implement verified provider extensions separately, with explicit account, region, space, currency, and plan attribution.
Do we have a high-confidence way to reproduce the issue?
Source, documentation, and existing tests establish the support limitations; no live provider reproduction was attempted, and enterprise-space behavior remains unverified.
Is this the best way to solve the issue?
Separate provider-scoped changes are appropriate after validating the requested contracts; removing MiniMax's key guard or changing Kimi's scope string alone would not establish correct behavior.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- Jimeng credit units and team attribution, MiniMax wallet currency, and Kimi space-selection semantics remain unverified.
- A mixed Kimi API/web account model needs explicit credential, region, and plan attribution to avoid displaying unrelated quotas together.
Codex review notes: model internal, reasoning medium; reviewed against 68f6f221a7c2.
Label changes
Label changes:
- add
issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label. - add
clawsweeper:source-repro: Current issue advisory state selects this label. - remove
issue-rating: 🌊 off-meta tidepool: Current issue advisory state no longer selects this label. - remove
clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.
Label justifications:
P3: Optional provider and account-scope expansion with no established regression or failure of the documented supported workflow.
Evidence reviewed
What I checked:
- Explicit owner direction: The owner accepts Jimeng as a provider fit, acknowledges the Kimi per-account region gap, and explicitly keeps this issue open to collect redacted endpoint and space-switching examples: https://github.com/steipete/CodexBar/issues/4698#issuecomment-6350213348.
- Kimi accounts still share region and source constraints: Documentation explicitly says saved accounts use web credentials and cannot mix China and International credentials; the app constructs every account snapshot using the provider-level region. (
docs/kimi.md:173, 68f6f221a7c2) - Existing account tests establish the narrower contract: The tests expect labeled accounts to retain one configured region and resolve exclusively to kimi.web, including when the provider preference is API. (
Tests/CodexBarTests/KimiTokenAccountTests.swift:39, 68f6f221a7c2) - No Kimi space selector: GetUsages sends only FEATURE_CODING, membership statistics send an empty object, and the request builder supplies no explicit organization or workspace target; this establishes the missing selector without proving the external enterprise protocol. (
Sources/CodexBarCore/Providers/Kimi/KimiUsageFetcher.swift:150, 68f6f221a7c2) - MiniMax excludes standard API keys: Auto mode routes standard keys to the web strategy, and the API strategy reports itself unavailable for those keys; existing China-host support does not implement a regular-key wallet balance. (
Sources/CodexBarCore/Providers/MiniMax/MiniMaxProviderDescriptor.swift:146, 68f6f221a7c2) - Jimeng integration remains absent: Searching source, both test trees, documentation, and README found no Jimeng, Dreamina, or 即梦 implementation; GitHub searches for both English service names returned this issue without another owning proposal. (68f6f221a7c2)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
- Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Reviewed November 6, 2026, 3:27 PM ET / 20:27 UTC.
Thanks @summerliuuu! Going through these one by one:
- Jimeng / Dreamina: it's an identifiable service, so it's a fit, but we need either a documented credits endpoint or redacted request/response examples (including how team-space credits appear) before we can add a provider.
- MiniMax pay-as-you-go: China hosts are already supported, but the balance paths we use cover Coding/Token Plan keys. Supporting regular API keys needs the wallet balance endpoint and its currency details, so a redacted example of that response would help.
- Kimi multiple plans/regions: regional selection exists, but saved accounts currently share one region and use Web sign-in, so showing a China Code key and an international membership side by side needs per-account region binding. That's a real gap we're keeping in mind.
- Kimi team spaces: the current requests don't select a space. Redacted request/response pairs from before and after switching spaces would tell us how each quota maps.
Please remove tokens, cookies and personal or account identifiers from anything you share. Keeping this open to collect that.
Thanks for collecting these. We checked current support: MiniMax's China support still targets Coding/Token Plan usage, and saved Kimi Web accounts still share one region. No Jimeng credit, regular-key MiniMax wallet, or Kimi space-switching response has arrived to establish the missing contracts. We're closing this combined request. Separate user plugins, such as jimeng-credits.js, minimax-wallet-cn.js, or a separately scoped Kimi plugin, are the extension path. Sanitized provider-owned request/response examples with units, region, and space attribution would let us reconsider each integration separately.