Skip to content

Conversation

@mdibaiee
Copy link
Member

Description:

  • on macOS the keychain record is an API key, not JSON, and it should be added to ~/.claude.json

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)

@mdibaiee
Copy link
Member Author

@jgraettinger addressed your comments and tested by re-creating a VM, works as expected. Can you also check that it works fine on yours too?

ssh "${HOSTNAME}" 'cat > ~/.claude/.credentials.json'; then
# Try extracting from macOS Keychain with both possible service names
if security find-generic-password -s "Claude Code-credentials" -w 2>/dev/null | \
ssh "${HOSTNAME}" 'cat > ~/.claude/.credentials.json'; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compare to the diff -- this dropped logic to strip the refresh token, which shouldn't go into the VM (otherwise it breaks the host's single-use refresh token)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants