GNOME Shell extension for GNOME Shell 50 that shows remaining Codex usage in the top bar and displays the current 5-hour and weekly windows in the popup.
- Multiple account profiles with per-account bearer tokens
- Multi-select account visibility for both the top-bar label and popup menu
- Top-bar label showing remaining or used usage for the selected accounts
- Popup with the latest fetch timestamp plus 5-hour and weekly usage windows for each selected account
- Cached account profile lookups from
/backend-api/mefor display names and initials - Configurable refresh interval
- Toggle to show
leftorusedvalues - Bearer tokens stored in the GNOME keyring through Secret Service
extension.js: panel indicator and popupprefs.js: settings UIsecret.js: Secret Service token storage helpersusageApi.js: HTTP requests and response normalizationschemas/: GSettings schema
-
Copy this directory to
~/.local/share/gnome-shell/extensions/codex-usage-indicator@stone.dev -
Compile the schema in place:
glib-compile-schemas schemas
-
Enable the extension:
gnome-extensions enable codex-usage-indicator@stone.dev -
Open extension preferences and set:
Update interval- one or more accounts
- each account's
Bearer token - which accounts should be shown
- The extension intentionally does not store cookies or browser session state.
- Account metadata and visibility are stored in GSettings.
- Cached user profile data from
/backend-api/meis stored in GSettings per account. - Bearer tokens are persisted in the GNOME keyring rather than GSettings.