Allow multiple instances of any provider in separate or combined menu-bar layouts
Please allow the same provider to be added more than once, with each instance independently named, configured, and bound to its own account or supported credential/profile source. Each instance should participate in the existing menu-bar controls and icon layout builder just as a different provider does.
Codex is one example of a general need. Users can have personal, work, or other accounts for Claude and other providers too. A setup such as Codex Personal + Codex Work should be as configurable as the existing Codex + Claude setup.
Both presentation choices are important:
- Separate icons: show Codex Personal, Codex Work, Claude Personal, and Claude Work as independent menu-bar items, each displaying its own selected quota windows.
- A combined icon built with the existing layout builder: add labeled bars or percentages from several instances to one icon. Each layout element should explicitly select its provider instance/account and quota metric, so two Codex accounts can remain visible simultaneously inside that icon.
For example, the user could choose either:
[Codex Personal: Session / Weekly] [Codex Work: Session / Weekly]
or one custom item containing independently bound elements:
[Codex Personal: Session bar | Codex Work: Weekly % | Claude Work: Session %]
Requested behavior:
- Adding or duplicating a provider creates an independent configuration/display instance, with a short user-selected name. Where saved accounts already exist, an instance can bind to one of them.
- Instances use the existing controls for enabling, hiding, ordering, icon styles, layouts, and separate/combined presentation.
- The layout builder can select a specific instance and quota metric for each element, including several accounts of the same provider in one icon.
- Every indicator stays bound to its own account when the active or followed account changes. Its settings and usage remain independent of the other instances.
- Both modes show the selected accounts' quotas while the dropdown is closed. A combined layout preserves the separate account values and labels.
Saving several accounts inside one provider, showing them only in the dropdown/Overview, or switching the followed account does not provide this flexibility. A separate-icons-only mode that is disabled with Merge Icons would address only part of the request; combined layouts should remain in scope.
This is a user-facing configuration and display request. Provider-specific authentication and external account-switching mechanisms can remain with their existing implementations. The internal representation of provider types, instances, and account identities is an implementation choice for maintainers.
Related history: #1268 and #1843. Both discussions are closed. This issue explicitly tracks independent provider instances in the existing menu-bar presentation controls and layout builder, beyond the multi-account storage and switching features that have already shipped.
Codex review: this still needs some work.
Summary Keep open: the requested account-bound menu-bar displays remain unfinished, and the owner explicitly retained this issue as their tracking request.
Reproducibility: Source and model tests confirm the missing account-bound display capability; no app execution or live reproduction was performed.
Root-cause cluster
Relationship: canonical
Canonical: https://github.com/steipete/codexbar/issues/4772
Summary: The owner retained this issue as the current display tracker beyond earlier multi-account storage and switching discussions.
Members:
partial_overlap: https://github.com/steipete/codexbar/issues/1268 - Earlier separate-account status-bar request; it does not cover the full combined-layout scope.partial_overlap: https://github.com/steipete/codexbar/issues/1843 - Historical account-management tracker closed after provider-specific multi-account support shipped.partial_overlap: https://github.com/steipete/codexbar/pull/3251 - Closed unmerged implementation of separate account items.partial_overlap: https://github.com/steipete/codexbar/pull/3881 - Closed unmerged multi-account display implementation with a different rendering approach.
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
- Question: What identity, persistence, refresh, and account-removal contract should combined account-bound layouts use after separate account icons land?
- Recommendation: Stage the broader design: Implement the accepted account-icon foundation, then review combined bindings and per-instance settings against that foundation.
- Why: The owner established sequencing, but the broader layout contract remains outside the currently accepted design.
Next step Follow the owner’s staged plan and settle account identity, refresh, persistence, and lifecycle rules before implementing combined layouts.
Review details
Best possible solution:
Deliver the accepted separate-account-icon design first, then extend the shared renderer with persistent account-bound combined elements and scoped settings.
Do we have a high-confidence way to reproduce the issue?
Source and model tests confirm the missing account-bound display capability; no app execution or live reproduction was performed.
Is this the best way to solve the issue?
Reusing account projections and the shared layout renderer fits the owner guidance; arbitrary provider duplication would require broader configuration and lifecycle design.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- Combined account bindings and per-instance settings still need a reviewed persistence and identity contract.
- Account removal, expiration, stale measurements, refresh limits, and upgrade or downgrade behavior remain unspecified.
Codex review notes: model internal, reasoning medium; reviewed against 0aa34100b7a7.
Label changes
Label changes:
No label changes.
Label justifications:
P3: This adds optional monitoring flexibility while existing account cards and account selection remain usable.impact:ux-friction: Users must open account displays or change the selected account to inspect quotas they want visible together.
Evidence reviewed
What I checked:
- Explicit owner direction: The owner says separate account icons are the next step, combined account-bound layouts and per-instance settings follow afterwards, and this issue remains their tracker: https://github.com/steipete/CodexBar/issues/4772#issuecomment-6418440435.
- Current status-item identity: StatusItemIdentity contains merged and provider cases; lazyStatusItem accepts UsageProvider and reuses the item keyed by provider.instanceID. (
Sources/CodexBar/StatusItemController+StatusItemVending.swift:77, 0aa34100b7a7) - Combined rendering remains provider-bound: Each stacked row obtains one menuBarUsageSource snapshot for its UsageProvider; layout tokens select metrics without an account identity. (
Sources/CodexBar/StatusItemController+MenuBarLayout.swift:134, 0aa34100b7a7) - Existing presentation contract: The accepted design caps selected account icons at four, replaces the provider item, and excludes Merge Icons; changes require product/auth review. (
docs/claude-multi-account-and-status-items.md:169, 0aa34100b7a7) - Tests encode distinct-provider stacking: The merged-icon model tests reject duplicate provider selections and require two distinct eligible providers for stacked presentation. (
Tests/CodexBarTests/MergedIconPresentationTests.swift:31, 0aa34100b7a7) - Prior implementations do not own an open fix: https://github.com/steipete/CodexBar/pull/3251 and https://github.com/steipete/CodexBar/pull/3881 are closed without merging; owner comments require shared layout rendering, bounded refreshes, stable account selection, and compatible persistence.
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 October 26, 2026, 10:35 AM ET / 14:35 UTC.
Thanks for the review. To clarify the Merge Icons question, I have updated the title and description: Codex was an example, and the desired behavior applies to multiple independent instances of any provider.
I would like both options: separate menu-bar icons for the instances, or one combined icon where the existing layout builder lets me add quota bars/percentages from explicitly selected instances/accounts. For example, Codex Personal and Codex Work should be usable in these controls in the same way as Codex and Claude are today.
A separate-account-icons mode that is mutually exclusive with Merge Icons covers only part of this need. I would like combined layouts to remain part of the requested scope, rather than limiting the feature to that earlier design.
The request concerns user-facing configuration, account-bound display elements, and existing presentation controls. I am not prescribing duplicate provider implementations or a new credential vault. The internal architecture can be chosen by maintainers while retaining the existing provider-specific authentication behavior.
Thanks for the request. CodexBar already supports managed Codex accounts and saved token or cookie accounts for several providers, with account switching and cached account cards in Overview, and CLI selectors such as --account and --all-accounts. What it can't do yet is bind several menu-bar items to different accounts of the same provider at once: the layout still resolves one selected snapshot per provider.
There's an accepted design for up to four separate account icons per provider (mutually exclusive with Merge Icons), and that's the next step here. Account-bound combined layouts and per-instance settings (different regions, endpoints or workspaces) would build on it afterwards — they need stable provider/account identities, account-bound snapshots and refreshes, persisted layout bindings, and clear behavior when an account is removed or expires. Keeping this open as the tracking request for that work.
補足です。特に希望しているのは、Codex と Claude それぞれで独立して有効化できる、アカウント別クリッターの同時表示オプションです。各プロバイダーで3アカウント以上(可能なら選択した複数アカウント)を、それぞれの使用量に結び付いた別々のクリッターとしてメニューバーに並べたいです。アカウント切替後も、表示中の各クリッターはそれぞれのアカウントの使用量を示す想定です。
One case to keep in scope for the Claude side: a single Claude login (same email) that belongs to two organizations, for example a personal plan and a Team/Enterprise org.
Each organization has its own quota, so it should count as a separate account here: each account icon, and later each combined layout element, should stay bound to one organization rather than just to the email. That means the stable account identity needs to include the organization (e.g. email + organization UUID), with labels that tell the two apart, such as email · organizationName.
The claude-swap design already treats email + organization UUID as the identity, so this mostly asks that the account-bound display keeps that distinction, and that it works for saved token accounts with an organizationID too.
Thanks for clarifying that simultaneous account-bound layouts are the goal. Existing saved accounts, Overview cards, and CLI account selectors do not satisfy that requirement: each provider's menu-bar layout still resolves one selected snapshot. We're closing the broader instance/layout request rather than retaining it as a commitment. It requires coordinated account identity, refresh ownership, persisted bindings, and removal/expiry behavior. A focused design covering those boundaries for one presentation mode would be a basis to reconsider; the earlier discussion should not be read as a delivery promise.