Skip to main content

macOS menu bar widget for Codex weekly limit burn rate.

Project description

CodexLimit

CodexLimit is a macOS menu bar widget that reads local Codex session logs and shows the weekly non-Spark Codex limit burn rate as a status item title.

The app does not call a network API. It reads CODEX_HOME or ~/.codex/sessions, records samples in:

~/Library/Application Support/CodexLimit/samples.jsonl

Install for Development

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[packaging]"

Install from PyPI

pip install "codex-limit[app]"
codex-limit

Run

python -m codex_limit

Click the menu bar title to open the graph popover. The title is the current burn multiple, where 1.0x means weekly quota is being consumed at the real-time replenishment pace.

Build a macOS App Bundle

python setup.py py2app
open dist/CodexLimit.app

The bundle is configured as a menu-bar-only accessory app and should not show a Dock icon. The app icon is generated from assets/CodexLimit.icns.

Install Locally

scripts/install.sh

The installer builds dist/CodexLimit.app, stops any running copy, installs to /Applications when writable or ~/Applications otherwise, and launches the app. Use scripts/install.sh --user to force ~/Applications, or scripts/install.sh --no-open to install without launching.

Test

python -m unittest discover -s tests

Release

Publishing uses the same trusted-publishing workflow as codexapi: create a GitHub release or push a v* tag, and .github/workflows/publish.yml builds and publishes the package to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_limit-0.1.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_limit-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file codex_limit-0.1.0.tar.gz.

File metadata

  • Download URL: codex_limit-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for codex_limit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31bfaa80ae711a0e5f24bca17212616b5179e57e618f3638ae704e9caab3244f
MD5 a2b1c0e655752bde7d4eb87d3f28c0ec
BLAKE2b-256 17ebb2a88588c375d361149149d7bd34979d9b0f1f0a862cbadb680a07f3c7d2

See more details on using hashes here.

File details

Details for the file codex_limit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codex_limit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for codex_limit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6402fb11bb5ef479cb0eb67187ab030e07d9b4cd5b3efb22de1977fc254c9ebc
MD5 420f63adce149e7c0e38f3349d4a4c76
BLAKE2b-256 fdde5ddae52ce5f51699dde115f991340bed55feba3cf234b512216a52f20a42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page