Skip to content
Discussion options

You must be logged in to vote

Thanks for the logs — this looks deeper than a simple restart/relogin.

Your OpenUsage log shows:

  • OpenUsage reads Codex auth from macOS keychain (Codex Auth)
  • refresh call fails with 401 / refresh_token_reused

When both Codex Desktop + Codex CLI are used, this can happen if a stale keychain entry is still being picked after token rotation.

Please try this exact reset on macOS:

  1. Quit OpenUsage + Codex Desktop + all codex terminal sessions.
  2. Remove all Codex Auth keychain entries:
    while security delete-generic-password -s "Codex Auth" >/dev/null 2>&1; do :; done
  3. (Optional but recommended) move stale auth files out of the way:
    [ -f ~/.codex/auth.json ] && mv ~/.codex/auth.json ~/.codex/auth.…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Srini-B
Comment options

@davidarny
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Srini-B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants