Skip to content

About

Native macOS notch & external display island for Codex weekly/5h quotas, live task status, and shared-home multi-account switching.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Repository files navigation

CodexNotch app icon

CodexNotch

Weekly & 5-hour Codex quota, exact reset countdowns, live task state, and shared-home multi-account switching—right beside your MacBook notch.

macOS 14+ Swift 5.9 Latest Release MIT License LINUX DO

Download Latest Release · Watch 1080p Video · v2.1.0 Release Notes · 简体中文

CodexNotch v2.1.0 product demo

Real v2.1.0 UI demo (synthetic sample accounts): notch quota & task pulse, live hover comparison & shared-home account switching, External Island modes, and macOS Settings.


At a Glance

CodexNotch keeps your ChatGPT/Codex quota and task state pinned beside your physical notch (or centered at the top of external/notchless displays as an External Island) without depending on any third-party notch host.

What you need How CodexNotch handles it
Always-visible quota Weekly quota stays in the right lane (Clockwise ring or Wave ball); on notched displays, 5-hour quota appears on the left when returned, otherwise showing your chosen status mark (Codex / ChatGPT / Off).
Exact resets & credits Hover to view 5h and 7d progress bars, exact reset timestamps, live second-by-second countdowns, and manually confirmable Use reset credits.
Live task pulse & jump Distinguishes running, idle, and a ~5s green completion check. Click any active or recent conversation to open codex://threads/<thread-id> directly.
Multi-account switching Save multiple logins locally (0700/0600 vault), compare 5h + 7d limits by hovering standby cards, and switch on one shared ~/.codex workspace without losing projects or threads.
Lightweight & reversible Show or hide anytime with ⌥⌘N, customize in native macOS Settings (Cmd+,), and update safely via Ed25519-verified Sparkle releases.

Core Features

1. Notch & External Island Display

  • Physical-notch Macs: Left and right compact indicators align inside 24pt safe-area containers clear of the camera housing. Hovering expands smoothly downward inside a pre-allocated transparent canvas and releases hit-testing immediately on collapse.
  • External & notchless screens (External Island): Renders a pill centered at the top edge of the display with four center styles previewable in Settings → External Island:
    • Signature: Animated rhythm bars + subtle text shimmer while running (supports custom text up to 12 characters).
    • Orbit text: Orbiting dot beside custom text while running; ring and dash at rest.
    • Task timer: Live elapsed task timer while running (MM:SS / H:MM:SS).
    • Minimal flow: Centered light flow while running, dimmed at rest, with a brief green checkmark on completion.
  • Accurate window & color semantics: Quota windows are classified dynamically from limit_window_seconds, preventing 7-day-only plans from masquerading as 5-hour windows. Colors reflect remaining quota (> 20% green, 11–20% amber, <= 10% red, gray when unavailable).

2. Shared-Home Multi-Account Switching

Rather than creating fragmented per-account CODEX_HOME folders that break your project list and session history, all accounts share ~/.codex:

  1. Three clean onboarding paths (Settings → Accounts):
    • + Sign in: Browser-sandbox OAuth login via an isolated app-server process—adds or refreshes an account without signing out of your running Codex desktop session.
    • Import auth.json: Import an exported auth.json file directly into the vault.
    • Adopt local login: Capture the currently active ~/.codex/auth.json session.
  2. Quit-first atomic swap & project continuation:
    • Before switching, CodexNotch inspects active processes and refuses cleanly if external Codex CLI/IDE sessions hold ~/.codex/auth.json.
    • Quits Codex first so rotated tokens flush to disk, compares token freshness (last_refresh, JWT iat/exp) so older copies never overwrite newer tokens, atomically swaps ~/.codex/auth.json, synchronizes .codex-global-state.json project/New-Chat continuation state, and automatically restores the previous session if relaunch fails.
  3. On-demand notch drawer & live hover preview:
    • Collapses to a compact 36pt anchor bar by default (K/N healthy pool summary and Switched badge).
    • Expands into a scrollable drawer (Available, Recent, and All filter pills when 5+ accounts are saved).
    • Hovering any standby card previews its 5h and 7d limits at the top of the card with zero vertical height jump, and clearly flags signed-out (Re-auth) or unavailable accounts.

Install

Requires Apple Silicon and macOS 14 Sonoma or later (no Xcode or Swift toolchain needed).

  1. Download the latest .dmg (recommended) or .zip from GitHub Releases.
  2. Drag CodexNotch.app into /Applications.
  3. Sign in to ChatGPT / Codex at least once, then launch CodexNotch.
    • Public builds currently use ad-hoc code signing (not notarized by Apple). On first launch, choose Open Anyway in System Settings → Privacy & Security, or Control-click the app and choose Open.
    • By default CodexNotch reads ~/.codex (or $CODEX_HOME if exported before launch).

Controls & Settings

Press ⌥⌘N globally, right-click the notch/island, or use the top-right controls inside the expanded card (Notch On/Off pill & Settings button / Cmd+,):

Tab What you can configure
General Launch at login · Live Chinese / English UI switch (English default) · Recent tasks in expanded card (Hide, 1, 2, 3)
Appearance Live physical-notch preview · Right quota style (Clockwise ring / Wave ball) · Left indicator (Codex / ChatGPT / Off) · Animations toggle (honors both in-app toggle and system Reduce Motion)
External Island Live external/notchless stage preview (Running / Idle / Completion cue) · Center style & up-to-12-character custom text
Accounts Browser-sandbox + Sign in, auth.json / local-session import, inline name & local-only note editor, per-account/bulk quota refresh, Finder reveal (~/.codex), export, delete, and switch/relaunch
Sidebar Footer Check Updates (manual Ed25519-verified Sparkle updates) · GitHub repository shortcut

When the notch/island is hidden, press ⌥⌘N again or hover the physical notch top edge to bring controls back.


Privacy & Scope

  • Local 0700/0600 credential vault: Account payloads reside strictly in ~/Library/Application Support/CodexNotch/Accounts/Vault with owner-only POSIX permissions and are never uploaded or logged.
  • Read-only quota polling: Usage endpoints are read-only; reset credits are only redeemed after an explicit confirmation dialog (Use reset).
  • Minimal local log access: Task activity reads rollout JSONL streams in CODEX_HOME/sessions; conversation titles read session_index.jsonl and read-only state_5.sqlite metadata without retaining message bodies.
  • Zero telemetry: Update checks fetch a static public appcast.xml via Sparkle 2.9.6 without sending account, quota, or usage identifiers.
  • Intentional non-goals: CodexNotch monitors com.openai.codex (not ChatGPT Classic com.openai.chatgpt.classic), never kills background Codex sessions silently, does not calculate API billing, and performs no cloud sync or unattended updates.

Build & Verify from Source

Requires Xcode 16+ targeting macOS 14.0+ (GitHub CI builds on macos-15 with Xcode 16.2):

swift test
./scripts/verify.sh
./scripts/build_app.sh
open dist/CodexNotch.app

Create distributable ZIP, DMG, SHA-256 checksums, and a Sparkle-signed dist/appcast.xml (requires publisher Keychain Ed25519 key; see docs/updating.md and docs/agent-harness.md):

RUN_TESTS=0 ./scripts/release.sh

Skip ad-hoc signing during local iteration:

SIGN_IDENTITY=none ./scripts/build_app.sh

Acknowledgments & References

CodexNotch is a standalone native macOS app with zero runtime dependency on external notch hosts. Thanks to the open-source projects, frameworks, and community efforts that inspired or support this project:

  • Atoll — Inspired CodexNotch's fixed transparent canvas layering, damped spring transitions, and non-intrusive hover interaction beside the physical notch (documented in ADR 001, ADR 035, and ADR 045).
  • Codex Account Switcher (pengshengege/CodexAccountSwitcher) — Inspired CodexNotch's isolated CODEX_HOME OAuth login flow, 0700/0600 local credential vault, local account notes, and archive-before-swap ~/.codex/auth.json Desktop switching model.
  • Sparkle — Powers Ed25519-verified, user-initiated in-app updates (Documentation).
  • macOS & Codex Open-Source Ecosystem — Fellow explorations around local AI quota visibility and developer workflows such as CodexBar and CC Switch, plus real-hardware feedback from the LINUX DO community.

License

Released under the MIT License. If CodexNotch keeps your quota in sight and saves a few context switches, consider giving it a Star.

About

Native macOS notch & external display island for Codex weekly/5h quotas, live task status, and shared-home multi-account switching.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages