Skip to content

ozyjay/CodexLocalMeterApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Local Meter App

Native macOS menu bar version of the Codex Local Meter VS Code extension. It reads local Codex session files under ~/.codex, derives usage metadata, and keeps data on your Mac.

Privacy

  • No network calls.
  • No telemetry or analytics.
  • No writes to Codex session files.
  • No prompt, response, code, or tool-output content shown.

Development

Run the local parity harness:

swift run CodexLocalMeterCoreTests

Run SwiftPM's package check:

swift test

Build the app executable:

swift build

Package a local .app bundle:

./scripts/package-app.sh

The bundle is written to dist/Codex Local Meter.app.

Run from dist

After packaging, launch the menu bar app from Finder by opening:

dist/Codex Local Meter.app

Or launch it from Terminal:

open "dist/Codex Local Meter.app"

The app runs as a menu bar utility, so it does not open a Dock window. Look for the Codex usage text in the macOS menu bar.

Install to Applications

After packaging, install the app into /Applications:

./scripts/install-app.sh

Then launch the installed app:

open "/Applications/Codex Local Meter.app"

If macOS says the app is already running, quit the menu bar copy first and run the install command again.

Troubleshooting

App is running but not visible in the menu bar

macOS can hide third-party menu bar utilities even when the app is running and has created its NSStatusItem correctly. Check:

System Settings -> Menu Bar -> Allow in the Menu Bar -> Codex Local Meter

Make sure Codex Local Meter is enabled. If this setting is off, the process may appear in Activity Monitor and the app log may show status item updates, but nothing will appear in the menu bar.

Development note: this was mistaken at first for an app lifecycle or NSStatusItem rendering issue. The app was logging updates such as status item updated title=..., but macOS was suppressing the item until the Menu Bar permission was enabled.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors