--bare breaks OAuth/subscription login in 2.1.216 (regression from 2.1.210)

Status Open
Reported on v2.1.216
Maintainer reply None cached
Activity 0 comments · opened Jul 21, 2026

claude --bare -p "..." fails authentication with "Not logged in · Please run
/login", while the identical call without --bare succeeds — using the same
on-disk credentials (~/.claude.json), same account, same machine, same shell
session.

Environment

  • Claude Code version: 2.1.216 (auto-updated from 2.1.210 at 2026-07-21T09:43:06Z,

per ~/.claude/.last-update-result.json)

  • OS: macOS (Darwin)

Repro

claude -p "ping" # succeeds
claude --bare -p "ping" # fails: "Not logged in · Please run /login"

Impact

Anyone relying on --bare with OAuth/subscription login (rather than an API
key) is completely blocked until this is fixed.

View original on GitHub ↗