Skip to content

Failed to read GitHub CLI credentials from Keychain #549

@jacob-cn

Description

@jacob-cn

Description

I authenticated successfully with GitHub CLI using gh auth login, but OpenUsage still fails to detect the GitHub account and continues to ask me to login.

Found the following log messages:

[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:copilot] OpenUsage keychain read failed: TypeError: Error calling function with 1 argument(s) while 2 where expected
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:copilot] gh CLI keychain read failed: TypeError: Error calling function with 1 argument(s) while 2 where expected
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:codex] auth loaded from file: ~/.codex/auth.json
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:codex] HTTP GET https://chatgpt.com/backend-api/wham/usage
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][DEBUG] [http] proxy not used
[2026-06-03][15:20:32][openusage_lib][WARN] probe copilot completed with error
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:claude] keychain read: service=Claude Code-credentials, account=[REDACTED]
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:cursor] keychain read failed for cursor-access-token: TypeError: Error calling function with 1 argument(s) while 2 where expected
[2026-06-03][15:20:32][openusage_lib::plugin_engine::host_api][INFO] [plugin:cursor] keychain read failed for cursor-refresh-token: TypeError: Error calling function with 1 argument(s) while 2 where expected

Steps to Reproduce

  1. Install OpenUsage on macOS.
  2. Install GitHub CLI (gh).
  3. Run gh auth login in Terminal.
  4. Select GitHub.com when prompted.
  5. Complete the authentication flow (web browser or SSH).
  6. Verify authentication is successful with:
    gh auth status
  7. Launch OpenUsage.
  8. Check the Copilot usage.

Expected Behavior

OpenUsage should detect the existing GitHub CLI authentication and successfully read the required credentials from Keychain.

Actual Behavior

OpenUsage does not recognize the GitHub authentication state.

OpenUsage Version

v0.6.25

Operating System

macOS (Apple Silicon)

Screenshots

Image Image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions