Skip to content

Support Claude file-based credentials in usage provider#3

Open
J132134 wants to merge 1 commit intoscari:mainfrom
J132134:fix-claude-file-credentials
Open

Support Claude file-based credentials in usage provider#3
J132134 wants to merge 1 commit intoscari:mainfrom
J132134:fix-claude-file-credentials

Conversation

@J132134
Copy link

@J132134 J132134 commented Mar 9, 2026

Summary

  • read Claude OAuth credentials from ~/.claude/.credentials.json before falling back to the legacy Keychain entry
  • keep the existing Keychain path as a backward-compatible fallback
  • add regression tests for file-first lookup, fallback behavior, and default provider configuration

Testing

  • xcodebuild test -project AgentBar.xcodeproj -scheme AgentBar -only-testing:AgentBarTests/ClaudeUsageProviderTests -destination 'platform=macOS' -derivedDataPath ./build/DerivedData

@J132134 J132134 marked this pull request as ready for review March 9, 2026 06:09
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