Skip to content

Feature request: Add OpenAI's Oauth2 based login as an auth feature, similar to the Claude Pro/Max login method #1839

Closed as duplicate

Description

@rishsriv

One way to do this would be do copy creds from ~/.codex/auth.json.

AFAIK (from reading Codex source code), this is how codex handles this:

  • Changes the base URL to https://chatgpt.com/backend-api/codex
  • Adds an authorization token to the request: Authorization: Bearer <access_token> (JWT from OAuth)
  • Adds an extra header to the frequest: chatgpt-account-id: <account_id from auth json>

Would love to make a PR if this would be a welcome addition. Would you want to support this?

Activity

  1. self-assigned this
    on Aug 12, 2025
  2. thdxr commented on Aug 12, 2025

    @thdxr
    Member

    Duplicate of #1686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions