Command failed: security find-generic-password -a $USER

Resolved 💬 2 comments Opened Jun 4, 2025 by clharman Closed Jun 4, 2025

Bug Description
Claude code was working on a process for a while, then suddenly crashed. This has happened to me twice now, I'm a new user, and I've only used Claude Code for less than 10 hours. I submitted a bug through the Claude Code interface about the earlier one too.

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 1.0.10
  • Feedback ID: 4503805f-b511-42a3-8f91-d11c5ad344a1

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:984:15)\n    at wrappedFn (node:internal/errors:538:14)\n    at checkExecSyncError (node:child_process:890:11)\n    at execSync (node:child_process:962:15)\n    at YZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:638:3921)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:6842\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at Qi (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:6034)\n    at XG (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5480)\n    at UO2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2002:4706)","timestamp":"2025-06-04T03:25:13.895Z"}]

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗