You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-caller usage metering for inference services #976
When a node publishes an inference service backed by a shared upstream (for example a local model router with a single provider account), there is no per-caller usage accounting. The provider operator cannot tell which peer consumed how much, which makes shared model access hard to run fairly: quotas were requested separately, but even without enforcement, visibility is missing.
Proposal
Add per-caller usage metering for inference calls at the provider node:
requests count, prompt/completion tokens (when the upstream reports usage), bytes, per caller peer ID + service
exposed via the node metrics endpoint or a local stats API, in the spirit of metadata-only accounting (no prompt/response content)
This lets fleet operators attribute shared model costs before they need hard limits.
Activity
aojea commentedon Nov 28, 2026
Check if #979 solves the problem