[BUG] Claude Code backend runs "npx ccb oauth usage --json" — resolves to wrong npm package, fails
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using Claude Code via the GUI (PhpStorm IDE plugin), the backend attempts to run npx ccb oauth usage --json.
The Claude Code backend (powering the JetBrains/PhpStorm IDE plugin) attempts to run npx ccb oauth usage --json to check OAuth usage. However, there is no ccb binary in @anthropic-ai/claude-code. npx resolves
ccb to an unrelated third-party package (https://www.npmjs.com/package/ccb) which has no bin entry, causing a failure on startup.
Additionally, the Account section does not display account details, likely due to the same failed ccb command.
What Should Happen?
The OAuth usage check should either use the correct executable name (e.g., claude auth ...) or not attempt to run ccb at all. The backend should not fetch an unrelated npm package.
Error Messages/Logs
Command failed: npx ccb oauth usage --json
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\<username>\AppData\Local\npm-cache\_logs\2026-04-30T15_14_05_444Z-debug-0.log
Debug log (abbreviated):
7 verbose title npm exec ccb oauth usage --json
8 verbose argv "exec" "--" "ccb" "oauth" "usage" "--json"
14 http fetch GET 200 https://registry.npmjs.org/ccb 189ms (cache revalidated)
16 verbose pkgid ccb@0.2.1
17 error could not determine executable to run
18 verbose cwd C:\Users\<username>\AppData\Local\Temp\claude-code-backend
Steps to Reproduce
- Install Claude Code CLI: npm install -g @anthropic-ai/claude-code@2.1.123
- Open PhpStorm with the Claude Code GUI plugin (latest version from JetBrains Marketplace)
- Navigate to the Usage tab in the Claude Code GUI panel
- npx fetches the unrelated ccb@0.2.1 from the npm registry instead of an Anthropic-owned package
- Error: "could not determine executable to run"
Environment: Windows 11 Enterprise 10.0.26200, Node v22.14.0, npm/npx 10.9.2, Claude Code CLI @anthropic-ai/claude-code@2.1.123
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.123 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
JetBrains built-in terminal (IntelliJ/PhpStorm) — but the error originates from the Claude Code GUI plugin itself, not from a terminal session.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗