per.hr for AI · Claude Code · Beta

per.hr With Claude Code

One command sets up the per.hr plugin. Start a Plan item, check your time and send finished work to Review without leaving Claude Code, then invoice from the app or your terminal.

In beta, part of Pro and Team, with a 14-day trial on Free. Request access and start right away while per.hr Customer Support reviews it. Everything agents share is on per.hr for AI.

A 73-second walkthrough: one command to set up, working as usual in Claude Code, what's recorded, the live Work page, Review, and the invoice.

Setup

Two Ways to Set Up, About Five Minutes Each

From your terminal or in the app. Both walk the same steps, record through the same plugin and share your progress, so you can start one way and finish the other.

  • From your terminal (recommended): npx perhr setup. The per.hr CLI comes from npm with nothing to install first and no key to copy; you approve a code at per.hr/device
  • In the app: Guided Setup in your browser, a key you make there, and the plugin added from inside Claude Code. No Node and no terminal needed
  • The plugin is installed once for all your repos; only the repos you link are recorded
  • With the CLI, Claude can read from per.hr without asking; every change asks you first
  • On a team, the repos are already linked; a setup link points each developer to it
  • How You Work
  • Sign This Computer In
  • Your Business
  • How Clients Pay You
  • Your First Client and Project
  • The Claude Code Plugin
  • Link Your Code Folders

npx perhr setup

Approve the code QMRP-XTKD at per.hr/device

Signed in. Next: your business

Plan Items

Work Against Your Plan

Say which Plan item you're on, or let your branch name do it. When one stretch of work covers several items, give it a range or a list.

  • /perhr:start PAY-214, or a branch like feat/pay-214-reset
  • Several items: PAY-214:216 or PAY-214+PAY-220
  • Your time splits by estimate, adjustable before you confirm
  • /perhr:status shows your time, agent time, cost and how much of the estimate is used

❯ /perhr:start PAY-214:216

Working on PAY-214, PAY-215 and PAY-216 · estimates 10.00 h · your time splits by estimate

❯ /perhr:status

You 1h 12m · Agents 2h 40m · $5.10 · 27% of the estimate

Plan items and how your time splits

PAY-214: Password reset flow60%0.72 h
PAY-215: Reset email template20%0.24 h
PAY-216: Expired link screen20%0.24 h

Split by Estimate

Your Time

Counted the Way You Worked

Your time is the span you were attending the session: prompting, reading, testing and supervising agents. Breaks are left out on their own.

  • A gap of more than 15 minutes with nothing running is a break
  • Long agent runs keep the session open, background agents included
  • The plugin's own commands are never counted as prompts
  • Sessions past midnight show both dates and the breaks left out
  • 1:58 – 2:46 PMPrompting, reviewing and testing while agents work0.80 h
  • 2:46 – 3:58 PMLunch: nothing running for over 15 minutesLeft out
  • 3:58 – 4:34 PMBack at it, three agents in parallel0.60 h
  • 4:34 – 4:40 PM/perhr:end and the summary0.10 h

Your time1.50 h

Agent time, counted separately2.60 h

Terminal

For Terminal Users: The per.hr CLI

perhr is a package on npm. The command that sets you up also runs the business side: clients, projects, time, review, estimates and invoices, without leaving the terminal you're working in. The video here follows it from setup to a sent invoice.

  • perhr status, review and time, alongside /perhr:start, /perhr:status and /perhr:end in Claude Code
  • Make an invoice, preview it with per.hr's checks, and send it
  • Anything with money is approved in your browser; no command skips that
  • Every command takes --json, and writes take --dry-run
For terminal users, a three-minute walkthrough: one command to set up, a session in Claude Code, review, and an invoice sent from the terminal.

Best Practices

In the App: Plan With Claude, Build With Claude Code

Prefer to stay in Claude Code and the app? Plan the work with Claude as Plan items with references and estimates, import them, then run one self-contained prompt per item in Claude Code with the plugin's commands. Review and invoice in per.hr. Every session is on the record, so clients see exactly what was worked on, and you see what your own projects take.

  • A starter prompt that sets Claude up to plan this way, with a Copy Prompt button
  • One CSV to import the plan into Work → Plan
  • Ranges and lists for a series of related items: API-1:3 or API-1+API-3
  • /perhr:end when the work is checked: Claude writes the summary for your client
A two-minute tour of working in Claude Code and the app: plan the work with Claude, import it into per.hr, run each item in Claude Code, and bill what it took.

Also Included

Switch Items Mid-Session

Start another Plan item, and the work so far goes to Review on its own.

Several Items at Once

Ranges and lists, with your time split by estimate.

GitHub App

Commits and pull requests attach to the session and show whether they merged.

Compute per Session

Model, tokens and an estimate at API rates, from Claude Code's own usage data.

Private by Design

Times and counts. Your prompts and code stay on your computer.

Open Source

The perhr CLI on npm and the Claude Code plugin are public on GitHub, under the MIT license.

Questions

How Do I Get Access?

per.hr for AI is in beta. Request access with your per.hr account and start right away: per.hr Customer Support reviews each request, and you can set up and record while you wait. On Free, a 14-day trial starts with your first recorded session. Then set up from your terminal with npx perhr setup, or in the app with Guided Setup; both walk the same steps and share your progress.

Terminal or App: Which Way Should I Set Up?

Both record the same sessions through the same plugin, so choose by how you like to work. From your terminal: npx perhr setup runs the per.hr CLI straight from npm (Node 18.17 or later), signs your computer in with a code you approve, installs the plugin, and afterward the perhr command handles clients, time and invoices. In the app: Guided Setup does the business steps in your browser, you make a key and add the plugin from inside Claude Code, and you review and invoice in per.hr. No Node, and no terminal if you'd rather stay out of one. You can start one way and add the other later.

How Is My Time Counted?

From your first prompt to the end of the session, including the time you spend reading, testing and thinking, and the time agents work while you're there. A gap of more than 15 minutes with nothing running is a break and is left out. Pause recording for anything you don't bill. Agent time is counted on its own and never added to yours.

Does per.hr Read My Code or Prompts?

Your prompts, code and files stay on your computer. per.hr receives session and turn times, the repo and branch, and, if you record compute, the model, tokens, cost and commit and line counts. Summaries are the ones you write or approve. Rates are typed at your own keyboard and never pass through Claude.

Try It on Your Next Session

Request access, set up from your terminal or in the app, and your next Claude Code session arrives ready to confirm.