AgentWatch is a Windows desktop widget for tracking both Claude and Codex usage in one place.
This project is a fork of the original Claude Usage Widget:
https://github.com/SlavomirDurej/claude-usage-widget
- Open the Releases page:
https://github.com/Timmyy3000/agentwatch/releases - Download the installer asset:
*Setup*.exe - Run the installer.
Do not use win-unpacked/AgentWatch.exe by itself. That binary requires
Electron runtime DLLs (including ffmpeg.dll) from the same folder.
If Windows SmartScreen warns about an unsigned app, click More info -> Run anyway.
- Claude current-session usage and weekly usage
- Codex current-session usage and weekly usage
- Reset timers for each window
- Optional compact mode for quick-glance monitoring
- Windows 10/11
- Node.js 18+
- npm 9+
git clone <your-fork-url>
cd <your-repo-folder>
npm install
npm startnpm run build:win:setupBuild output goes to dist/.
Optional portable build (for advanced/manual distribution):
npm run build:win:portableApp/product name is now AgentWatch, so generated artifacts should use that name.
AgentWatch supports separate auth flows for Claude and Codex.
- Use in-app Claude login first.
- If auto-login fails, use manual session key mode from the UI.
Codex auth can be trickier because embedded browser auth is sometimes blocked by Google/Cloudflare checks.
Use this order:
Auto Connect (Non-Google)in settings.- If blocked, click
Open in Browser, sign in to ChatGPT in your normal browser, then use manual mode. - In manual mode, provide one or both:
- full
Cookieheader from a successful request to/backend-api/wham/usage Authorization: Bearer ...token
- AgentWatch validates auth and falls back to page-context fetch when direct API fetch returns
Unauthorized.
- Some sessions require both cookie context and bearer token.
- Google sign-in inside embedded Electron windows may fail with "browser/app may not be secure".
- Debug export is available in settings to inspect sanitized Codex auth/usage events.
- Run with
--debug:
npm start -- --debug- Or set env var:
DEBUG_LOG=1 npm start- Codex logs can be copied from the settings UI via
Copy Codex Logs.
Contributions are welcome. If you open issues/PRs:
- include clear reproduction steps
- include platform details (Windows version, Node version)
- avoid posting raw auth secrets (cookies/tokens)
Project community files:
CONTRIBUTING.mdCODE_OF_CONDUCT.mdSECURITY.md.github/ISSUE_TEMPLATE/*.github/PULL_REQUEST_TEMPLATE.md
- Credentials are stored locally via
electron-store. - Debug logs are sanitized for token/cookie fields.
- Never paste real session tokens into GitHub issues.
- Original project/foundation:
SlavomirDurej/claude-usage-widget - Codex is used as a co-builder and maintainer assistant for planning, implementation, and refactors.
MIT