Peras watches Claude Code and Codex plan usage and warns, asks or pauses the agent at your limit. Free MIT CLI, optional EUR 4.99 macOS menu bar app.
Researched and fact-checked by Bartu Cavusoglu · Updated November 29, 2026
Peras is a usage guard for AI coding agents. It watches how much of your Claude Pro/Max or ChatGPT plan allowance Claude Code and Codex have used, projects where the week is heading, and stops guarded tool calls at a line you choose. The goal is simple: avoid an agent quietly burning through the rest of your weekly limit while you are not looking. Peras is a Vertias project and is not affiliated with Anthropic or OpenAI.
Peras is aimed at individual developers who run Claude Code or Codex on a subscription plan rather than a metered API key, and who have been caught out by hitting a 5-hour or weekly limit in the middle of real work. It is most useful for people who leave agents running for long stretches or across several projects and want a predictable stopping point.
Peras installs hooks into Claude Code (under ~/.claude) and into Codex (desktop and CLI). When usage reaches your configured line, the guard acts in one of three modes. Warn sends a desktop notification and lets the agent continue. Ask makes the next tool call wait for your approval, once per session. Pause refuses tool calls and ends the turn until the limit lifts or you run peras resume. Codex has no approval prompt, so its ask line holds tools until you run peras codex resume. Claude and Codex keep separate limits, rules and pauses, though Peras shows both together.
Setup is a single command: npx peras-cli setup, or a global install with npm install --global peras-cli. The CLI needs Node 18 or later and has no dependencies. Hooks can be removed at any time with peras remove or peras codex remove.
Beyond the basic line, Peras supports rules per time window and per folder, daily allowances, per-prompt limits and saved profiles. Reporting includes status, history, weekly charts, reviews and comparisons of completed weeks. Everything runs locally: no Peras account is needed for the guard, there is no product telemetry, and the event log stores no prompts or tool commands.
The optional macOS menu bar app adds a pear icon showing 5-hour usage, weekly bars and reset times, per-agent pause buttons, a keyboard shortcut and notification choices. A free SwiftBar menu is available as an alternative.
The CLI, hooks, SwiftBar menu and app source code are free under the MIT license. The signed, notarized macOS menu bar app costs EUR 4.99 as a one-time purchase, with updates included. Purchases and downloads are handled by Polar.
Peras is honest about its boundaries. Usage is account-wide, so folder and prompt figures are estimates. Stale readings can make a pause arrive late, in-flight requests are not cancelled, and tools outside hook coverage are not stopped. The menu bar app requires macOS 13 or later and has only been tested on Apple silicon with current macOS. It should be treated as a guard for your own sessions rather than a hard billing control.