Skip to content

Added support for signing in with a ChatGPT Plus/Pro/Team subscription - #164

Merged
oleg68 merged 3 commits into
nbplugins:mainfrom
oleg68:feature/openai-chatgpt-subscription
Jul 18, 2026
Merged

Added support for signing in with a ChatGPT Plus/Pro/Team subscription#164
oleg68 merged 3 commits into
nbplugins:mainfrom
oleg68:feature/openai-chatgpt-subscription

Conversation

@oleg68

@oleg68 oleg68 commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • New profile connection type ("ChatGPT Subscription") that routes Claude Code sessions through OpenAI's Codex backend (chatgpt.com/backend-api/codex) using ChatGPT OAuth instead of an Anthropic/OpenAI API key.
  • Fully manual, network-condition-agnostic sign-in: click "Copy sign in link" to copy a PKCE authorize URL to the clipboard, sign in in your own browser (any proxy), then paste the resulting code back into the plugin to complete sign-in — the plugin never opens or blocks on a browser itself.
  • "Model Aliases…" now fetches the live model list from the Codex backend for this connection type instead of a hardcoded list, once signed in.
  • The Codex Responses API request/response shape (stream:true always required, store:false always required, no max_output_tokens field, {"detail":...} error shape, client_version query param, models list envelope with slug field) was reverse engineered against openai/codex's own Rust source and verified against live traffic.

Test plan

  • mvn test — full suite green (959 tests)
  • mvn package — NBM builds cleanly
  • Manually verified end-to-end: sign in via ChatGPT OAuth, fetch live model list via "Model Aliases…", switch to a Codex model (/model gpt-5.6-terra) in a live session and confirm prompts round-trip successfully

🤖 Generated with Claude Code

Oleg Samarin and others added 3 commits July 18, 2026 21:35
New profile connection type that routes Claude Code sessions through
OpenAI's Codex backend using ChatGPT OAuth instead of an API key. The
user copies a sign-in link (PKCE flow against auth.openai.com), signs
in in their own browser, and pastes the resulting code back to
complete sign-in — the plugin never opens or waits on a browser
itself, since the browser may run under different network conditions
than the plugin.

Once signed in, "Model Aliases…" fetches the live model list from the
Codex backend instead of a fixed list. The Codex Responses API request
shape (stream:true always required, store:false always required, no
max_output_tokens field, {"detail":...} error shape) was reverse
engineered against openai/codex's own Rust source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Disambiguates it from the new "ChatGPT Subscription" connection type.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Added a README feature bullet, a new user-manual section covering the
copy-link/paste-code sign-in flow and live model discovery, updated
the connection-type table and Model Aliases description to cover it,
and refreshed the Profiles tab screenshot to show the current UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@oleg68
oleg68 merged commit ada5a21 into nbplugins:main Jul 18, 2026
3 checks passed
@oleg68
oleg68 deleted the feature/openai-chatgpt-subscription branch July 19, 2026 06:24
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