Codex Usage Widget
Install, update, inspect, or uninstall a local-only Übersicht desktop widget that tracks Codex token usage, recent root sessions, source labels, and context-...
NANA
@tinadu-ai
What This Skill Does
Installs, updates, inspects, or uninstalls a local-only Übersicht desktop widget that displays Codex token usage, recent root sessions, source labels, and context-window pressure by reading local Codex files.
Replaces manually checking Codex logs or terminal commands by putting usage data directly on your macOS desktop.
When to Use It
- Install the Codex usage widget on a new macOS machine
- Update the widget after a Codex release changes local storage fields
- Uninstall the widget when it is no longer needed
- Inspect the widget's JSON output to verify it is working correctly
- Refresh the widget after a Codex session to see updated token usage
Install
$ openclaw skills install @tinadu-ai/codex-usage-widgetCodex Usage Widget
What This Skill Provides
Use this skill to install or maintain a lightweight macOS Übersicht widget for Codex. The widget reads only local Codex files under ~/.codex:
state_5.sqlitefor thread metadata.logs_2.sqlitefor local log byte totals.sessions/**/*.jsonlandarchived_sessions/*.jsonlfor token-count events, origin labels, and context-window pressure.
It does not call external APIs, does not require a model key, and does not upload data.
Install
Run:
scripts/install.sh
The script copies assets/codex-usage.widget/ to:
~/Library/Application Support/Übersicht/widgets/codex-usage.widget/
Übersicht should refresh automatically. If it does not, use the Übersicht menu bar item to refresh all widgets.
Update
Run scripts/install.sh again. The script overwrites only this widget directory and does not touch Codex settings or other Übersicht widgets.
Uninstall
Run:
scripts/uninstall.sh
This removes only:
~/Library/Application Support/Übersicht/widgets/codex-usage.widget/
Behavior Notes
- Recent rows are grouped by root session, so spawned subagents do not appear as separate sessions.
- Source labels prefer rollout
originator:codex_vscodebecomesVSCode,Codex DesktopbecomesClient, and terminal/CLI-like originators becomeTerminal. - The right-side row metric is context-window pressure, calculated from the latest
input_tokens. It uses a 200K window until a session exceeds that level, then uses a 1M window. - The widget never parses message text. Recent rows are filtered only by Codex's local archived state and root-session relationships.
- The widget is intentionally best-effort because Codex local storage fields may change between Codex releases.
Validate
After installing, run:
python3 "$HOME/Library/Application Support/Übersicht/widgets/codex-usage.widget/codex-usage.py"
The command should print JSON with "ok": true.
Top skills in this category
Skill Vetter
@spclaudehomeSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
Github
@steipeteInteract with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Free Ride - Unlimited free AI
@shaivpidadiManages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates opencla...
Elite Longterm Memory
@nextfrontierbuildsUltimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.