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-install --user
That builds CodexLimit.app, installs it to ~/Applications, and launches it.
Use codex-limit-install --system to install to /Applications.
You can also run it directly as a Python menu-bar process:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_limit-0.1.3.tar.gz.
File metadata
- Download URL: codex_limit-0.1.3.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27239d705095ff86932318b56003721046207192b72b0e48fca4066827d28e9a
|
|
| MD5 |
6148e25f770e95dc55d25219d2b0ac8c
|
|
| BLAKE2b-256 |
9cbc44bbc38ed107a568d1f1dfdec1791680d4b6549135c7598c1e7de6593032
|
File details
Details for the file codex_limit-0.1.3-py3-none-any.whl.
File metadata
- Download URL: codex_limit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af95ecb2ffe33e03f8c52efc46eb5d9e72a6916efb09983209c596bd80babd35
|
|
| MD5 |
7bbeaaf685557cb62f88dc5b14a14f44
|
|
| BLAKE2b-256 |
2e09dbed6741bae487da34fb39a2fb76449e6dc907c41820a402b2ae72903102
|