Skip to content

[feature] Support OpenAI Codex / ChatGPT subscription auth as an LLM provider #1182

Description

@ClaireGz

Feature request

User request: is it possible to hook up Codex subscription as an AI provider?
Slack thread:
https://naolabs.slack.com/archives/C08C5CZ3CT1/p1783890211033649

Expected behavior

Let users authenticate nao's agent with their ChatGPT / Codex subscription instead of an API key:

  • Identify the auth surface used by the Codex CLI "Sign in with ChatGPT" flow (OAuth login -> short-lived token) and the model endpoint it targets
  • Handle the OAuth login + token refresh in the nao CLI (e.g. `nao` auth/login for OpenAI subscription)
  • Wire it into the existing LLM provider abstraction so users can select the ChatGPT/Codex subscription as their credential source for OpenAI models

Question: how to handle projects with several users? Would they each have to sign in with chatGPT / Codex account?

Metadata

Metadata

Assignees

No one assigned

    Labels

    chat ui/uxEverything that is mainly related to frontend Chat experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions