#13974·oh-my-pi

support the new official “Sign in with ChatGPT” flow

Author: zhaob1nCreated Oct 1, 2026Updated Oct 1, 2026
Labelsenhancementprovidersauthprovider:openaitriaged

OpenAI recently introduced an official Sign in with ChatGPT flow for open-source and local agents, allowing users to use their ChatGPT plan through the public Responses API without providing an API key.

It would be great if OMP could support this new authentication flow alongside the existing openai-codex provider.

The new flow uses:

  • OAuth with PKCE
  • client_id=dynamic_agent_client for initial registration
  • a persistent ext_agent_host_id
  • scopes including resource.invoke and chatgpt.tokens.use.direct
  • a dynamically issued client_id
  • inference through https://api.openai.com/v1/responses

OpenAI documentation:

Upstream Pi already supports the new Sign in with ChatGPT flow while keeping the older OpenAI Codex integration as a legacy option:

https://github.com/earendil-works/pi/blob/main/packages/ai/README.md

It would be useful to add the same option to OMP, ideally while keeping the existing openai-codex path available for compatibility.