per.hr for AI · Beta
per.hr records your Claude Code and Codex sessions: your time, your agents' time, compute and what shipped, on the right client. Confirm each session, then invoice it.
In beta with Claude Code and Codex, 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. Setting it up for a team? Talk to us.
Each one has its own setup, guide and walkthrough. Use both, and they record side by side.
One command installs the per.hr plugin. Start a Plan item, check your time and send finished work to Review without leaving the chat.
per.hr With Claude CodeThe same command adds per.hr's hooks to Codex. You approve them once in Codex, then work the way you already do.
per.hr With CodexTell us which coding agent you work with. Requests decide what per.hr supports next.
Request It$ npx perhr setupOne command sets up either agent, or both.Live
Work → Review shows every session that's running across your projects, Claude Code and Codex together, each on its own clock.
Agents working now
4
On 2 projects
Leverage today
2.9×
Agent time per prompt, at 5 min each
You today
1:27
Since midnight
Agents today
4:13
Since midnight
Review
A finished session arrives in Review with its summary, commits and both clocks, matched to the client, project and Plan item.
PAY-214: Password reset flow
harbor-app · feat/pay-214-reset · Oct 27, 1:58 PM – 4:40 PM
Your time
1.40 h
9 prompts · 1.2 h of breaks left out
Agent time
2.60 h
3 agents in parallel
Compute
$6.80 est.
At API rates · 1.9M tokens
Output
PR #214
Merged · 9 commits · +412 −88
Summary for your client
Added the password reset flow: the request form, an emailed link that expires after 30 minutes, and the new-password screen, with tests.
Logs 1.40 h on PAY-214 (estimate 6.00 h).
Invoice
Bill by the hour, or at agreed hours for each item delivered. Each line names the work and the hours billed.
Invoice INV-0412 · Harbor & Pine
October Development
PAY-214: Password reset flow6.00 h · $720.00
You 1.40 h · Agents 2.60 h · Compute $6.80 · PR #214
PAY-219: Invoice PDF fonts2.00 h · $240.00
You 0.37 h · Agent 0.85 h · Compute $1.94 · 3 commits
Client call: Q4 roadmap0.50 h · $60.00
Total$1,020.00
AI-assisted work. See the work behind this invoice
Privacy
Every client starts with AI off their invoices. You turn the receipt on for the clients who want to see it.
How Harbor & Pine Pays for AI-Assisted Work
Applies to this client's projects.
Hours Worked
Your hours at your rate, as with any other work.
1.40 h × $120 = $168.00
Agreed Hours
Each finished Plan item bills its agreed hours. Your time on it is included, not billed again.
6.00 h × $120 = $720.00
Show the receipt on invoices
Share the work behind each invoice
This client doesn't allow AI-assisted work
Cost
Tell per.hr your Claude plan or your ChatGPT plan, and each session shows its share of what you really pay, beside an estimate at API rates.
Your hours
30.0
This month
Agent hours
102.0
This month
Compute
$214.60
At API rates
Items done
14
With agent sessions
Your hours and agent hours stay in separate columns and are never added together.
Billing Profile
Your Billing Profile can show AI-Assisted Development: what you've shipped, counted by per.hr from the sessions you confirmed. It's off until you turn it on.
With Claude Code and Codex · All time.
41
Items shipped
38
PRs merged
64
Sessions
186.50
Agent hours
71.25
Jordan's hours
2.6x
Leverage
Claude Code · 58 sessionsCodex · 6 sessions
Last active Nov 19.
From the Claude Code and Codex sessions Jordan confirmed in per.hr, with pull requests from GitHub. Totals only: no clients, projects or code.
Teams
Connect the team's repos once. Each developer gets a setup link, and their sessions record to the team's clients and projects.
Confirmed the wrong session? Send it back to Review while its time is unbilled.
Commits and pull requests attach to the session and show whether they merged, whichever agent you used.
Model, tokens and an estimate at API rates, from each agent's own usage numbers.
Mark a client that doesn't allow AI-assisted work, and its sessions can't reach an invoice.
Every client starts with AI off their invoices. You turn the receipt on for the clients who want it.
Times and counts. Your prompts and code stay on your computer.
The perhr CLI on npm and the Claude Code plugin are public on GitHub, under the MIT license.
Your Billing Profile can show what you've shipped, by type of work. Totals only: clients, projects and code stay private.
Tell per.hr your Claude plan or ChatGPT plan, and each session shows its share of what you really pay. Only you see it.
Repos connected once for everyone, a setup link for each developer, and a Monday summary of what the team shipped.
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.
Claude Code, through the open-source per.hr plugin, and Codex, through per.hr's hooks. One command, npx perhr setup, sets up either one or both, and their sessions record side by side. With the per.hr GitHub App, commits and pull requests attach to the session that made them, whichever agent you used.
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.
Only if you choose. Every client starts with AI kept private: their invoices show the work and the hours and never mention AI, agent time or compute. Client by client, you can turn on a receipt under each line (your time, agent time, compute and what shipped) and a link to the work behind the invoice. If a client doesn't allow AI-assisted work, mark it, and sessions on their projects can't be confirmed.
It depends on how the client pays. Billed by Hours Worked, faster work means fewer hours on the invoice. Billed by Agreed Hours, each finished Plan item bills the hours you agreed for it: its estimate, or the hours you set when it's done. When agents help you finish in less of your own time than that, you earn more for each hour you work. Reports show both, and what the compute cost you.
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 an agent.
Yes. In a team workspace, each developer's sessions go to their own Review on the team's projects and are logged at their rate, and submitted or approved timesheet weeks stay locked. Owners and admins connect each repo to a project once for everyone and send each developer a setup link. The developer runs npx perhr setup, and the team's repos are already linked. They see each developer beside their agents in the AI-Assisted Work report, the margin on every item, and a summary each Monday of what the team shipped. Access can be turned on for the whole team, so mixed teams work too: each developer chooses whether to connect Claude Code, and owners don't need it to see the report or bill clients.
Compute is shown as an estimate at API rates. On a flat Claude plan or ChatGPT plan you pay less than that, so tell per.hr which plan you're on, and each session shows its share of what you really pay. Only you see that figure: never a client, and never a team.
Yes. Put your own work on an internal project, and per.hr shows what each item took: your time, agent time and compute.
Request access, set up with one command, and your next session arrives ready to confirm.