[BUG] claude on Mac deletes the .credentials.json file that claude on Linux uses

Resolved 💬 2 comments Opened Dec 2, 2025 by Ghoelian Closed Dec 2, 2025

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?

#1414 has not been fixed, and no response from the maintainers have been given.

Claude Code on MacOS seems to use the keychain. I don't want or need this, I would prefer it to be a file. The main reason for this is so that I can mount this file in all of my devcontainers and not have to log in on every re-build of a container.

What Should Happen?

Make saving to OS keychain optional.

Error Messages/Logs

Steps to Reproduce

  1. log in to claude code on mac
  2. no .claude/credentials.json exists

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.55

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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