How to bill for AI coding sessions
Last updated: November 2026
A feature that used to be one long afternoon is now twenty minutes of prompting, a few minutes of watching an agent, and an hour of review, spread over the day. The work is real and you can bill it. It just doesn’t look like a block of time any more. Here is how you get from a session to an invoice line.
Record every session
You can’t bill what you didn’t write down, and agent work is where manual timers fail: you start a prompt, switch windows and forget the timer. Whatever you use, every session needs a start, an end and a project. A hook that logs timestamps works. So does a tracker that reads the sessions for you. Døgn does it for Claude Code, Codex and Antigravity once you switch it on.
Decide what counts
Session time and billable time are not the same thing. Three decisions close the gap:
- Your time or the agent’s? If an agent ran for forty minutes while you were at lunch, that is hard to justify at your full rate. Many freelancers bill the time they were engaged: prompting, reading, fixing. Døgn asks at the end of each session whether to book the total or only the active part.
- A client on every entry. Tag the session when it happens, not at the end of the month.
- A description your client understands. “Claude Code, 47 min” says nothing. “Webhook handler for Stripe, with tests” does. Døgn lets Claude Code or Codex write a one-line summary from your prompts. Read it before you bill.
Write the line item
Describe the result, not the tool. Good: “Built and tested the checkout webhook, fixed tax rounding (2.5 h).” Weak: “AI-assisted development.” The first one gets approved without a question and still makes sense in six months.
Then group the month by client, apply your rate, and the invoice is mostly assembly. In Døgn you open Reports › Billing, see what is open per client and pick “Bill in tjent”, which creates a draft in tjent. Without tjent you export a timesheet PDF or a CSV.
Hourly or fixed price
If an agent makes you faster, pure hourly billing passes that speed to your client as a discount. A fixed price for a defined result keeps it with you. Hourly still fits open-ended work and maintenance. Either way you need the record: for hourly to bill, for fixed prices to quote the next job from what the last one really took.
Tell your client
Some contracts require you to disclose AI-assisted work, a few forbid it. Check yours. If nothing is written down, saying which parts an agent helped with is rarely held against you. A clear description per session doubles as your record of what was done.
Questions, answered
Should I bill the agent's time or mine?
Bill the work and your judgement. Most people count the time they were engaged and drop long stretches where the agent ran alone. Døgn asks after each session whether to book the total or only the active time.
Hourly or fixed price for AI-assisted work?
A fixed price keeps the speed-up with you; hourly is simpler for open-ended work. Keep a time record either way, so you can price the next job from real numbers.
How do I word a line item for an AI coding session?
Name what changed: “Built and tested the Stripe webhook handler (2.1 h)”, not “Claude Code session”.
Do I have to tell my client I used AI?
If your contract says so, yes. Otherwise it is your call; many freelancers say it openly. A short description per session makes that easy.