Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do Anthropic quotas give you precise remaining token counts or something? I have something similar set up for tracking my ChatGPT usage but it only gives percentages remaining, which is a pretty coarse metric.
 help



Claude code supposedly has otel you can set via env. I haven't set it up, so I'm just repeating hearsay.. but it supposedly has everything relevant in it wrt token usage and cost

It's meant for their test env I think, so is not documented to my knowledge


It's for corporate users who want to track how the product is used internally, and it was documented at least some time ago, quite extensively even.

youre right!

https://code.claude.com/docs/en/monitoring-usage#usage-monit...

thanks for correcting me on that regard


Has otel? What is that?

OpenTelemetry

Tokens used / percentage change is a pretty obvious metric. They give you both, but they don’t do the math for you.

It's obvious unless you have multiple requests from different models in flight at the same time, and the sum total usage comes out to less than a single percentage.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: