Skip to content

ChatgptAuthTokensv2LoginAccountParams

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  848640428["v2_protocol.ChatgptAuthTokensv2LoginAccountParams"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 848640428
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.

Source code in src/codexed/models/v2_protocol.py
class ChatgptAuthTokensv2LoginAccountParams(CodexBaseModel):
    """[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have."""

    access_token: str
    """
    Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.
    """
    chatgpt_account_id: str
    """
    Workspace/account identifier supplied by the client.
    """
    chatgpt_plan_type: str | None = None
    """
    Optional plan type supplied by the client.

    When `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.
    """
    type: Literal["chatgptAuthTokens"] = "chatgptAuthTokens"

access_token instance-attribute

access_token: str

Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.

chatgpt_account_id instance-attribute

chatgpt_account_id: str

Workspace/account identifier supplied by the client.

chatgpt_plan_type class-attribute instance-attribute

chatgpt_plan_type: str | None = None

Optional plan type supplied by the client.

When null, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to unknown.

:fa-brands-github: Show source on GitHub