{"version":"2.1.281","anchor":"login-fails-loudly-when-credentials-cant-be-saved-eg-loc","canonical_anchor":"login-fails-loudly-when-credentials-cant-be-saved-eg-loc","heading":"Login fails loudly when credentials can't be saved (e.g. locked macOS keychain)","tier":"notice","area":"Auth","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/login-fails-loudly-when-credentials-cant-be-saved-eg-loc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Login fails loudly when credentials can't be saved (e.g. locked macOS keychain)\n\nLogin now shows an error when your credentials can't be saved, for example because the macOS keychain is locked\n\n**What**\n\nWhen you log in, Claude Code saves your login details in your system's secure storage. On macOS that is the keychain. If Claude Code cannot read that storage and so skips saving, and `CLAUDE_CODE_OAUTH_TOKEN` is not set as a fallback, login now stops with an error. On a Mac the message reads: \"Couldn't save your login. If your Mac's keychain is locked, unlock it and log in again.\"\n\n**Why**\n\nYou now find out straight away that your login was not saved and how to fix it, instead of seeming to log in without it being kept.\n\n- Area: Auth\n- Names: `CLAUDE_CODE_OAUTH_TOKEN`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}