Why CFOs love GitDB
Your AI coding bill is mostly input tokens, and input is the side GitDB cuts. The honest math, with tokens converted to dollars first — a $1M/yr API bill becomes ~$437K before caching.
Most of what we write about GitDB is aimed at the engineers who use it. This one is for the person who signs off on the invoice.
AI coding is no longer a rounding error. Anthropic's preliminary second-quarter 2026 revenue passed $11.5B, with positive adjusted operating income — more than 14 times what it recorded in the same quarter of 2025. Most of that money is metered: Sacra puts 70–75% of Anthropic's revenue on pay-per-token API calls, with subscriptions at 10–15%. If your teams run coding agents on API billing, you are paying by the token, and the token count is the thing to manage.
Where the tokens go
A coding agent spends most of its tokens reading, not writing. On every turn it re-sends the files it is working on, the files it searched, and the files it opened to confirm what it searched. The output — the patch it writes — is small by comparison.
The data says the same. OpenRouter's State of AI study, built on 100 trillion tokens of real traffic, found that the average request now carries over 6,000 input tokens against about 400 output tokens — roughly 94% input, across all workloads. Programming is the heavy end of that: coding requests routinely exceed 20K input tokens. A 2026 study of agentic coding costs, How Do AI Agents Spend Your Money?, reaches the same conclusion from the other direction: input tokens, rather than output tokens, drive the overall cost.
Input is the side GitDB cuts. Instead of reading a whole file to find one function, an agent asks GitDB for the function and reads exactly those lines. We measured it end to end: 12 measured code-navigation tasks on the same repository at a pinned commit, each answered with the same queries two ways — once with grep and ranged reads on a local checkout and once through GitDB — with every answer checked complete on both sides. Counting only the tokens each side returned to the agent, GitDB cut them by 65% — 19,391 down to 6,718 — and it won 11 of the 12 measured tasks and tied the other. 8 of these 12 tasks come from our pre-registered official run; the other 4 were measured and archived separately under the same rules. That baseline is already efficient; against whole-file reads the per-read cut is 95–96%, and the walk-through of that per-read methodology is in how GitDB cut our agents' input tokens. The money math below uses the measured 65%.
Tokens are not dollars
Here is the mistake that is easy to make. If 97% of the tokens are input and GitDB cuts input by 65%, it is tempting to multiply the two and call the result the saving on the bill. That treats a share of tokens as a share of dollars, and they are not the same thing.
Output tokens cost more. On every Claude model listed on Anthropic's pricing page, output is priced at 5× base input — Claude Sonnet 5, for example, is $2 per million input tokens and $10 per million output tokens. So the few output tokens carry more weight on the invoice than their count suggests.
Here it is for 100 tokens at a 97% input share:
| Token type | Tokens | Price vs input | Cost units | Share of spend |
|---|---|---|---|---|
| Input | 97 | 1× | 97 | ~87% |
| Output | 3 | 5× | 15 | ~13% |
| Total | 100 | 112 | 100% |
So 97% of the tokens is about 87% of the spend. GitDB's measured 65% cut applies to that 87%: 0.65 × ~87% ≈ 56%. A $1M/yr API bill becomes ~$437K. That is the number we put in front of finance teams: −56%, before caching.
It is also why, as the cost write-up puts it, the honest framing is a cut to the retrieval layer — never to the bill. For coding agents, input is most of the bill — about 87% of it at these assumptions — and that is how a 65% token cut becomes a 56% dollar cut.
The caveat: prompt caching
The −56% assumes no prompt caching, and that is on purpose: it is the upper bound. Many teams already cache. A cache hit is billed at the standard 0.1× of the input price, so cached input is a much smaller slice of the bill, and cutting it saves less.
At a 90% cache-hit rate, the same 97% input share and 65% cut take about 36% off the bill: $1M/yr becomes ~$642K. That is still more than a third of the invoice. Your own number sits between the two, depending on your cache-hit rate.
| Prompt-cache hit rate | Cut to the bill | $1M/yr becomes |
|---|---|---|
| 0% (no caching) | −56% | ~$437K |
| 50% | −51% | ~$493K |
| 90% | −36% | ~$642K |
The ROI calculator on our enterprise page lets you set your own spend, input-token share, input-token cut and cache-hit rate.
Check this against your own invoice
Don't take our defaults — your provider's usage/billing console already holds the real numbers: it breaks spend into input, cached and output tokens.
Two numbers to read off it: your input share of tokens (input + cache-read tokens as a fraction of all tokens) and your cache-hit rate (cache reads as a fraction of all input). Put those into the calculator in place of our 97% and 0%, and the result is your number, not ours.
A single developer's bill
The math holds at small scale too. A developer spending $250 a month on API billing — Claude Code, GPT, any coding agent — at a 97% input share and no caching would pay ~$109 with GitDB, and keep ~$141 a month. That is 56% off the bill.
On a Claude Max or coding plan?
Flat plans meter you too — every file your agent reads is re-sent on every turn and burns your 5-hour and weekly limits. GitDB makes those reads a measured ~65% smaller. In practice that means:
- More coding per session window.
- Fewer rate-limit lockouts.
- Staying on your tier instead of upgrading — overflow usage credits are API-priced, where the full savings applies.
We don't put a dollar or percentage figure on this one. A flat membership costs the same either way, and how plan limits weigh input against output isn't published, so any number would be a guess.
What it doesn't cut
GitDB shrinks what the agent reads, not what it writes. Output tokens, long chains of reasoning, and external docs the agent pulls in cost what they cost today — the cost write-up goes through each one. That is already in the numbers above: the model takes the cut off the input side only.
Sources
- The Next Web — Anthropic's Q2 2026 revenue and operating income
- Sacra — Anthropic company profile (revenue mix: 70–75% pay-per-token API)
- OpenRouter — State of AI (input and output tokens per request)
- Bai et al. — How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks (arXiv 2604.22750)
- Anthropic — Claude API pricing (output at 5× input; cache reads at the standard 0.1× of input)
If you'd like to walk through the model with your finance team, please reach out — or run your own numbers in the calculator on the enterprise page.
— Danny