LATENCY

The Latency usage export

One open source file you run on your own machine. It reads your Anthropic usage and cost totals and writes a file you check before sending.

Run it on your own machine, or use the private link we send you. Either way, you see exactly what we collect.

Two ways to run it

  • Private link, about 2 minutesCreate a short lived key in the Claude Console, paste it on our page and click Connect. Your key is sent over HTTPS to a server we run on Cloudflare, held in memory for the run, then discarded. It is never stored or logged. Please delete it afterwards.
  • Run it yourself, about 5 minutesRun the open source file on your own machine. Your key never leaves it. This suits teams whose policy says a key can't be pasted into a vendor page.

What it reads

CollectedNever collected
Daily token counts by model, workspace, API key, tier and regionPrompts, outputs or conversations
Daily cost in USD, as Anthropic reports itFiles, documents or code
Spend per person or service account, as a salted hashNames or email addresses
Monthly totals, to check the numbers add upPayment or billing details
Your API key, stored or logged

What it does when you run it yourself

  1. Asks for your key in a hidden prompt and keeps it in memory only.
  2. Makes read only requests to two Anthropic endpoints: usage and cost. Nothing else.
  3. Replaces every ID and email with a salted hash.
  4. Writes two files: one to send us, one with the real names that stays with you.

What it never does when you run it yourself

No phone home.

It only talks to Anthropic. Nothing goes to Latency until you send the file yourself.

No changes.

It only reads. Nothing in it can change your organization.

No surprises in the file.

Before writing, it checks every value and refuses to write if it finds your key, an email, or any free text.

For your security team

Which key does it need?
Your own API key with no workspace selected works, and a Developer role is enough. An Admin key works too. There is no read only option for usage data. We recommend a key that expires after 1 day, revoked right after the run.
Where does the key go with the private link?
Over HTTPS to a Cloudflare Worker we operate, where it is held in memory for the run, about 2 to 5 minutes. It is not written to storage or logs. Cloudflare is our only added subprocessor.
Can we read it first?
Yes. It's one file, about 400 lines, no dependencies. Most engineers read it in under 10 minutes.
How do we know we're running the published version?
Each release lists a SHA256 fingerprint. The same fingerprint is written into the output file, so we can confirm it too.
Can we lock it down further?
On Node 22.13 or newer, run it with node --permission --allow-fs-read=. --allow-fs-write=. so it can only write in its own folder.
What happens to the file?
We use it for your audit only. Raw files are deleted 30 days after your report. Anonymous totals may be used for benchmarks across five or more companies, never with your name, and you can opt out. See our audit terms.
Who are you?
Latency is run by Kev Rieck. Questions go straight to kevin@latency.systems.

Run it yourself

node latency-export.mjs --audit <your audit id> --salt <your salt>

Use the exact command we sent you. It takes about 5 minutes.