[Bug] API credentials not loaded in --bare mode

Resolved 💬 3 comments Opened Mar 28, 2026 by lala202020 Closed Mar 31, 2026

Bug Description
auth works in interactive mode (you're talking to me right now) but fails in --bare mode. The key
clue is "apiKeySource":"none" in the init message — bare mode isn't picking up your claude.ai
credentials.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.84
  • Feedback ID: 5c3c2195-55ef-4654-b058-fc6fe794f790

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/lauragroh/.local/share/claude/versions/2.1.84 (expected in multi-process scenarios)\n    at Jm_ (/$bunfs/root/src/entrypoints/cli.js:2740:2168)\n    at tlT (/$bunfs/root/src/entrypoints/cli.js:2740:1326)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T07:04:22.449Z"},{"error":"Error: Invalid URL\n    at AoT (/$bunfs/root/src/entrypoints/cli.js:3261:4579)\n    at call (/$bunfs/root/src/entrypoints/cli.js:3264:418)\n    at Wd$ (/$bunfs/root/src/entrypoints/cli.js:4195:6700)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T07:05:56.317Z"},{"error":"Error: Invalid URL\n    at AoT (/$bunfs/root/src/entrypoints/cli.js:3261:4579)\n    at call (/$bunfs/root/src/entrypoints/cli.js:3264:418)\n    at Wd$ (/$bunfs/root/src/entrypoints/cli.js:4195:6700)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-28T07:06:02.648Z"}]

View original on GitHub ↗

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