MENUPAPI Claude Session Monitor - real 5-hour resets from Claude.ai usage API with fallback estimate mode
Project description
MENUPAPI-CM (cm)
A lightweight terminal monitor that shows your Claude Code 5-hour reset timer and utilization.
Unlike most monitors, this supports REAL Claude web session reset data by pulling:
https://claude.ai/api/organizations/{org_id}/usage
If cookies are missing, it runs instantly in estimate mode.
Install
pip install menupapi-cm
Run
cm
Features
- Shows real
five_hour.utilizationandfive_hour.resets_at - Shows real
seven_day.utilizationandseven_day.resets_at - Works instantly without setup (estimate mode)
- Optional "real mode" using cookie file
- Includes
cm setupandcm doctor
Usage
# Run monitor
cm
# Setup real usage mode
cm setup
# Diagnose cookie + API access
cm doctor
Enable REAL MODE (Claude Web API)
Cookie stored here:
~/.claude_cookie.txt
Permissions required:
chmod 600 ~/.claude_cookie.txt
Example cookie file format (ONE line only):
sessionKey=sk-ant-sid02-xxxxx; cf_clearance=xxxxx; lastActiveOrg=xxxxxxxx
Works Out The Box
This tool cannot auto-grab browser cookies safely. Auto-extracting cookies from Chrome would become malware-adjacent.
So the correct UX is:
cmruns immediately in estimate modecm setupenables real modecm doctorvalidates cookie + prints fix steps
Build + Publish (for maintainer)
# Build
python3 -m build
# Upload to PyPI
python3 -m twine upload dist/*
Author
Sylvester Assiamah — The Menu Papi
Project details
Release history Release notifications | RSS feed
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