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
Want both agents in your menu bar? The Peras app, €4.99 once.
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.
A usage display helps you decide when to stop. An alert asks you to notice it and act.
At your configured line, supported hooks refuse guarded tool calls and end the turn. The CLI and hooks are free; the app is optional.
Stale readings can make a pause late. Requests already in flight and tools outside hook coverage aren't stopped. This guards your own sessions.
Use it as a guard for your own sessions. Usage is account-wide, folder and prompt numbers are estimates, and stale readings can make a pause late. Hooks do not cancel requests already in flight or stop a client that skips them. Default check failures may let work proceed; supported Claude Code versions offer opt-in strict checking.
The CLI, hooks, SwiftBar menu and app source are free and MIT-licensed. €4.99 once gets the signed, notarized, ready-made macOS app and supports the work. Updates included. Get the app, open your purchase downloads, or build it yourself.
No Peras account is required for the guard, and there is no product telemetry. State stays local. Codex reads usage through its own local app-server; update checks contact npm. Polar handles the separate app purchase and customer downloads.
macOS 13 or later, with Node 18+. Builds include Apple silicon and Intel. Execution testing so far is Apple silicon with current macOS; macOS 13 and Intel execution are untested.
Keep using npx peras-cli for each command, or install globally with npm install --global peras-cli to get peras. Set up only your providers. Review and trust Codex hooks in /hooks, then restart sessions. After buying and unzipping the optional app into Downloads, run npx peras-cli menubar install --native --app ~/Downloads/Peras.app.
No. Their provider usage windows, rules and pauses stay separate. Peras shows both together and can optionally tell each agent their saved usage context.
Claude Code weekly limitCodex usage limitSet a stopping point