TokenNotch
MacBook notch widget for Claude Code & Codex CLI usage, official Clawd & Codex pet mascots show your remaining quota, HP bars, and reset countdowns
Install: git clone https://github.com/Keonho-Chu/TokenNotch
Works with Claude Code, Codex · 19 GitHub stars
Install
git clone https://github.com/Keonho-Chu/TokenNotchInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →TokenNotch
English | 한국어
A widget where Clawd (Claude Code's official pixel crab) and the Codex pet (Codex CLI's official companion) live beside your MacBook notch, showing remaining usage and session reset times for Claude Code / Codex CLI.
- 🦀 Left of the notch — Clawd: a 1:1 reproduction of the official sprite embedded in the
Claude Code CLI (quadrant block art,
clawd_bodycolor rgb(215,119,87), 4 poses). Patrols sideways and shows your remaining % - 🤖 Right of the notch — Codex pet: "The original Codex companion", the CLI's flagship pet. The spritesheet is never bundled in this repo — it's downloaded at runtime from OpenAI's CDN and cached, exactly like Codex CLI itself does
1. Requirements
| Item | Condition |
|---|---|
| Hardware | A MacBook with a notch (Pro/Air 2021 or later) |
| OS | macOS 14 (Sonoma) or later |
| Build tools | Xcode or Xcode Command Line Tools (xcode-select --install) |
| Claude data | Logged in to Claude Code (Pro/Max subscription) |
| Codex data (optional) | Logged in to Codex CLI (ChatGPT Plus/Pro) |
Using only one of the two is fine. You can hide the one you don't use (see Visibility toggles below).
2. Install & run
git clone https://github.com/Keonho-Chu/TokenNotch.git
cd TokenNotch
# Option A) Install as an app (recommended)
./install.sh # builds and creates dist/NotchUsage.app
open dist/NotchUsage.app # run — characters appear beside the notch
# Option B) Also register it to launch at login
./install.sh --autostart
# Option C) Run directly for development
swift build && .build/debug/NotchUsage
On first launch it will:
- Read your Claude Code credentials from the keychain (choose "Always Allow" if prompted)
- Download the Codex pet spritesheet from OpenAI's CDN into
~/Library/Caches/NotchUsage/ - Then poll both providers' official usage APIs every 5 minutes
There is no Dock icon and no menu bar icon. It lives only beside the notch.
The UI language follows your macOS system language (Korean / English).
3. Reading the display
Compact (always visible)
🦀 72% [ notch ] 96% 🤖
- Number = remaining quota for the 5-hour session (or the weekly window if your Codex plan only has that)
- Color = green (>50%) / yellow (20–50%) / red (<20%)
- The characters' behavior also tells you the state:
| Remaining | Clawd | Codex pet |
|---|---|---|
| Over 50% | Relaxed sideways patrol, arms up at turnarounds | Running happily |
| 20–50% | Hurried steps, sweating | Typing frantically on a laptop + sweat |
| Under 20% | Panic dash, flailing arms, bouncing | Sad face (x_x), trembling |
| Error / expired token | Asleep, zzz | Asleep, zzz |
Expanded view (hover over the notch)
Similar plugs
Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
Orchestrate Claude, Codex and Grok in one app. Open-source (MIT), reuses the subscriptions you already pay for.