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
API proxy token usage reports 0 input and cache tokens for an Anthropic-compatible Z.AI endpoint #75271
This issue was posted by Claude Code using claude-opus-5-5 on behalf of David.
The AWF api-proxy's token usage table reports Input and Cache Read as 0 for every request to Z.AI's Anthropic-compatible endpoint. The Claude Code CLI's own result for the same session reports the real counts. Output tokens match.
Versions: gh-aw v0.86.2 (compiler and github/gh-aw-actions/setup), ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44, Claude Code 2.1.227 in the threat-detection job.
Setup: threat detection uses engine: claude with ANTHROPIC_BASE_URL: https://api.z.ai/api/anthropic and model glm-5.3-flash. The AWF config routes it through apiProxy with targets.anthropic.host: api.z.ai.
Activity