[Bug] Unauthorized API usage increase during idle CLI session with zero activity

Status Fixed / completed
Reported on v2.1.217
Maintainer reply None cached
Activity 1 comment · opened Jul 22, 2026 · closed Jul 24, 2026

Bug Description
--- Subject: Reproducible usage % increase in Claude Code CLI with zero activity (idle session) Environment: - Claude Code version: 2.1.217 - OS: Ubuntu 24.04.3 LTS (Noble Numbat), kernel 6.17.0-23-generic (x86_64) - Terminal: zsh (/usr/bin/zsh), TERM=xterm-256color GNOME Terminal - Login method: Claude Code CLI (terminal), not web app Issue: Usage percentage in Claude Code increases steadily while the terminal session is completely idle — no prompts sent, no background tasks, no scheduled jobs. Steps to reproduce: 1. Logged into Claude Code via terminal (not web). 2. Sent zero prompts, took no actions. 3. Usage started at 55%. 4. After a few minutes, rose to 56%, then 57% — increases occurring every few minutes while idle. 5. Revoked the token once the pattern was confirmed. Ruled out: - Other devices/sessions: none active (checked authorization token list). - Scheduled routines: none (/schedule → confirmed empty). - Background tasks: none (/tasks → confirmed "No tasks currently running"). - Dashboard lag: ruled out — increase observed live over several minutes, not a one-time catch-up. - Non-essential background model calls: set DISABLE_NON_ESSENTIAL_MODEL_CALLS=1 before reconnecting — usage still climbed. - Confirmed the behavior is specific to terminal login — logging into the web app and staying idle did not increase usage. Current status: Token has been revoked, logged out. Request: Please check server-side logs for this token/account to identify what requests were being made during the idle period, and let me know if this is a known bug. Thank you for your time, Kind regards, Josip ---

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.1.217
  • Feedback ID: 77fbe36d-6cdf-430d-9130-be06c2109282

Errors

[]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗