Skip to content

fix: fall back to macOS Keychain when credentials.json is missing#3

Open
hamiltoon wants to merge 1 commit into
ohugonnot:mainfrom
hamiltoon:fix-macos-keychain-auth
Open

fix: fall back to macOS Keychain when credentials.json is missing#3
hamiltoon wants to merge 1 commit into
ohugonnot:mainfrom
hamiltoon:fix-macos-keychain-auth

Conversation

@hamiltoon

Copy link
Copy Markdown

On macOS, Claude Code stores OAuth credentials in the system Keychain (service "Claude Code-credentials") instead of ~/.claude/.credentials.json, so the usage API call always failed. Try the file first, then fall back to security find-generic-password when available.

On macOS, Claude Code stores OAuth credentials in the system Keychain
(service "Claude Code-credentials") instead of ~/.claude/.credentials.json,
so the usage API call always failed. Try the file first, then fall back to
`security find-generic-password` when available.
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.

1 participant