Skip to content

feat: OpenAI Codex ChatGPT OAuth + v2.1.1#203

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/operator-cockpit-v2
Apr 6, 2026
Merged

feat: OpenAI Codex ChatGPT OAuth + v2.1.1#203
github-actions[bot] merged 4 commits into
mainfrom
feat/operator-cockpit-v2

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

Summary

  • Full OpenAI Codex ChatGPT OAuth: reads ~/.codex/auth.json, Auth Code + PKCE login (port 1455), single-use refresh token handling, JWT exp expiry detection
  • Correct inference endpoint: chatgpt.com/backend-api/codex/responses (not api.openai.com)
  • Fixed config.yaml endpoints and client ID
  • Bump to v2.1.1

Test plan

  • faigate-auth openai-codex reads existing credentials
  • faigate-auth openai-codex --refresh rotates single-use token
  • faigate-auth openai-codex --login opens browser on port 1455
  • CI Gate passes

🤖 Generated with Claude Code

André Lange and others added 2 commits April 6, 2026 23:03
- openai_codex_oauth(): reads ~/.codex/auth.json (auth_mode=chatgpt),
  decodes JWT exp claim for expiry detection
- openai_codex_refresh(): single-use refresh token flow, always writes
  new token back to auth.json immediately
- openai_codex_login(): full Auth Code + PKCE flow on port 1455,
  matching Codex CLI's redirect URI
- _codex_jwt_expiry(): decode JWT exp without signature verification
- main(): dispatch for --refresh / --login / read-existing
- registry.py: correct base_url → chatgpt.com/backend-api/codex/responses,
  backend → oauth
- config.yaml: fix token/refresh endpoints to auth.openai.com, correct
  client_id and base_url

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot enabled auto-merge (squash) April 6, 2026 21:08
André Lange and others added 2 commits April 6, 2026 23:32
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot merged commit c108c5d into main Apr 6, 2026
18 checks passed
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