Peras watches your plan's usage, tells you where the week is headed, and pauses the agent (or asks first) at the line you set.
v0.4 · free, MIT, local · Node 18+, no dependencies · peras remove takes the hooks out
The pear sits next to your clock with each agent's 5-hour usage. Click it for the weekly bars, when each window resets, and a pause button for Claude Code and Codex separately.
The CLI and its guard stay free. Build the app yourself from the source, or use the free SwiftBar menu: peras menubar install
A desktop notification. The agent keeps going.
The next tool call waits for your OK, once per session. Even from your phone.
Tool calls are refused and the turn ends, until it lifts or you run peras resume.
peras set weekly pace pauseperas set prompt 3 pauseperas set 01:00-08:00 weekly 50 pauseperas set --here weekly 60 pauseLet an agent use ten percentage points today, with a fresh allowance at local midnight.
Set an estimated weekly allowance for a folder. Parallel account activity can count too; tracking gaps can miss usage.
Weekly charts show observed usage, last-known remaining allowance, recording gaps and retained interventions.
peras budget daily 10 pauseperas budget --here weekly 5 pauseperas settingsperas pace 20peras profile use "Normal day"peras extra daily 3 1hperas sessionsperas reviewperas compareperas notify unused onAllowances count observed increases in your weekly percentage. Daily tracking begins with the first reading each day. Reminders require the menu bar and a fresh reading. When one agent pauses, the menu can point out fresh allowance on the other.
One command adds the same hooks to Codex desktop and the Codex CLI. Its own status, lines, pauses, allowances and history work there too: peras codex status, peras codex pause, and the rest.
Codex's lines, history and pauses are kept apart from Claude Code's.
Usage comes from your ChatGPT plan, read through Codex's own local app-server. Peras reads no login files.
Codex has no approval prompt, so an ask line holds its tools until you run peras codex resume.
peras whyWhich line is acting, and when it lifts.peras historyPast weeks: the peak, the lines crossed, and when it hit the wall.peras pause 1h · peras pause 18:00Pause by hand, for a while or until a time.peras resume 1hLift a stop for an hour instead of until the reset.peras eventsRecent warnings, pauses, resumes and resets.peras testTries a pause and resume on a throwaway copy of the hooks, for both agents.peras doctorChecks that each agent's hooks actually ran lately.peras notify resets onChoose your desktop notifications: warnings, pauses, resets.peras updateThe newest Peras, with your hooks and menu bar refreshed. Your lines and history stay.peras removeTakes out Claude's hooks and restores its status line; peras codex remove does Codex. Your rules and history stay.Everything stays on your machine. The event log holds no prompts and no tool commands.