# NousResearch/hermes-agent · Normalize token usage fields across provider formats

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #14860: fix(usage): fall back to Anthropic token names for OpenAI-compat servers

These issues and PRs address inconsistent token usage field names returned by OpenAI-compatible local servers and other providers, adding fallback handling for Anthropic-style keys (input_tokens/output_tokens) throughout usage normalization logic.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #85769. Verify it addresses your case.
- **Recommended:** read PR #85769 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-85769`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #14686: Context progress bar stays at 0% with OpenAI-compat local servers (mlx_vlm)

## Prior & competing PRs

- **#14698: fix(agent): fallback to input_tokens/output_tokens for OpenAI-compat local servers**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#85769: fix(usage): normalize every provider cache/usage wire shape in normalize_usage (5-PR consolidation)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/usage_pricing.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_usage_pricing.py`
- **#14860: fix(usage): fall back to Anthropic token names for OpenAI-compat servers**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#14698`, `#14686`
  - files: `agent/usage_pricing.py`, `tests/agent/test_usage_pricing.py`
- **#52571: fix(agent): fallback to Anthropic-style token fields in normalize_usage**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `9e482e370e`, `#85769`

## Fix status

- Merged to main in PR #85769 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-14`.
- Subsystem: `agent`
