Claude Code Hours
A timesheet you didn't have to fill in.
Find out yours
npx claude-code-hours
Records
When you clock in
By day of the week
Show hours by time of day as a table
| Hour | Hours |
|---|
Hours by month
Every day on the clock
Each square is one day. Darker means more hours.
Show day-by-day hours as a table
| Date | Hours |
|---|
Where the hours went
By project folder name. Full paths never leave your machine.
Keep this sheet
How many hours have you spent in Claude Code?
Run this in any terminal. It reads the log Claude Code already keeps on your computer, works out your hours, and opens your timesheet here.
npx claude-code-hoursWhat happens when you run it
- It opens
~/.claude/history.jsonland reads only the time of each prompt and the folder name it was typed in. - It works out your hours on your own machine and prints a summary.
- It saves only the totals (hours, dates and folder names) and opens this page on a short link. Short links last 90 days.
What you typed is never used or sent. There's no account and no tracking. Add --private to send nothing at all: the totals then travel inside a longer link instead, which no server ever sees. Add --hide-projects to leave folder names out.
This link doesn't contain a readable timesheet
The part after #d= is cut off or was edited, so there's nothing to show. Run the command again to get a fresh link.
npx claude-code-hours