Skip to content

Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge - #876

Closed
GENEXIS-AI wants to merge 1 commit into
lidge-jun:devfrom
GENEXIS-AI:codex/chatgpt-web-provider
Closed

Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge#876
GENEXIS-AI wants to merge 1 commit into
lidge-jun:devfrom
GENEXIS-AI:codex/chatgpt-web-provider

Conversation

@GENEXIS-AI

@GENEXIS-AI GENEXIS-AI commented Aug 2, 2026

Copy link
Copy Markdown

Summary

Register codex-chatgpt-web as a provider in the opencodex registry. Users can add it from the dashboard or ocx account add-key chatgpt-web and route ChatGPT Web Instant–Pro models through the local browser bridge — no API key required.

Provider entry

{
  id: "chatgpt-web",
  label: "ChatGPT Web (codex-chatgpt-web)",
  baseUrl: "http://127.0.0.1:17841/v1",
  adapter: "openai-responses",
  authKind: "local",
  allowPrivateNetworkByDefault: true,
  allowBaseUrlOverride: true,
  keyOptional: true,
  liveModels: true,
  models: ["chatgpt-web/light", "chatgpt-web/medium", "chatgpt-web/high", "chatgpt-web/extra-high", "chatgpt-web/pro"],
  defaultModel: "chatgpt-web/high",
}

How it works

  • codex-chatgpt-web speaks the Responses API natively on loopback (port 17841)
  • The openai-responses adapter forwards requests directly — no translation needed
  • liveModels: true fetches the actual catalog from the running bridge (includes Pro when the account has it)
  • authKind: "local" + keyOptional: true: loopback bind requires no credential
  • allowBaseUrlOverride: true: users can change the port if needed

Companion PR

This pairs with miuuyy/codex-chatgpt-web#21 which adds the reverse direction: codex-chatgpt-web routing its native passthrough through opencodex for multi-provider access.

Testing

  • Registry entry resolves correctly via getProviderRegistryEntry("chatgpt-web")
  • Adapter resolve tests pass (11/11)
  • Verified against a running codex-chatgpt-web instance (26 models via opencodex)

Summary by CodeRabbit

  • New Features
    • Added a ChatGPT Web local provider option for connecting to a locally running service.
    • Supports automatic model discovery and multiple ChatGPT Web model tiers.
    • Includes text and image input support with up to 256K context.
    • Uses the high-capability model tier by default and requires no API key.
  • Documentation
    • Added setup and usage guidance for the new provider.

…web bridge

Register codex-chatgpt-web (github.com/miuuyy/codex-chatgpt-web) as a
provider in the opencodex registry. Users can add it from the dashboard
or CLI and route ChatGPT Web Instant–Pro models through the local browser
bridge without an API key.

The provider uses the openai-responses adapter (codex-chatgpt-web speaks
the Responses API natively on loopback port 17841). Live model discovery
fetches the actual catalog from the running bridge.

Provider entry:
- id: chatgpt-web
- adapter: openai-responses
- baseUrl: http://127.0.0.1:17841/v1
- authKind: local (loopback, no key required)
- liveModels: true
- models: chatgpt-web/{light,medium,high,extra-high,pro}
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

PR quality gates passed

This pull request now targets dev with acceptable ancestry and description.

The [WRONG BRANCH] title prefix has been removed. The pull request has been marked ready for review again.

@github-actions github-actions Bot changed the title Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge [WRONG BRANCH] Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge Aug 2, 2026
@github-actions
github-actions Bot marked this pull request as draft August 2, 2026 07:45
@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The provider registry adds a chatgpt-web local preset for codex-chatgpt-web on port 17841. The preset enables live discovery, seeds five 256K text/image model tiers, requires no API key, and includes documentation links.

Changes

ChatGPT Web provider

Layer / File(s) Summary
Provider registry entry
src/providers/registry.ts
Lines 1285–1313 add loopback routing, local authentication, optional credentials, private-network and base-URL overrides, live discovery, five seeded reasoning tiers, 256K context windows, text/image input metadata, and documentation links.

Estimated code review effort: 3 (Moderate) | ~15 minutes

Possibly related PRs

Suggested labels: enhancement

Suggested reviewers: ingwannu, lidge-jun, wibias

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the addition of the chatgpt-web provider and its codex-chatgpt-web bridge integration.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@GENEXIS-AI
GENEXIS-AI changed the base branch from main to dev August 2, 2026 07:47
@GENEXIS-AI
GENEXIS-AI marked this pull request as ready for review August 2, 2026 07:47
@github-actions github-actions Bot changed the title [WRONG BRANCH] Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge Aug 2, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 148ea4bb7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/providers/registry.ts
label: "ChatGPT Web (codex-chatgpt-web)",
baseUrl: "http://127.0.0.1:17841/v1",
adapter: "openai-responses",
authKind: "local",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expose the local provider in dashboard presets

When a user opens the dashboard's Add Provider catalog, this entry is absent because deriveProviderPresets() includes only featured, key-auth, or dashboardPreset entries, while this provider is local and sets neither flag. Add dashboardPreset: true (or intentionally make it featured) so the new provider can actually be selected from the dashboard.

AGENTS.md reference: src/AGENTS.md:L18-L18

Useful? React with 👍 / 👎.

Comment thread src/providers/registry.ts
Comment on lines +1292 to +1293
allowBaseUrlOverride: true,
keyOptional: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the registry parity assertions for these flags

With this entry present, tests/provider-registry-parity.test.ts deterministically fails: its optional-key assertion at line 444 does not include chatgpt-web, and its base-URL-override assertion at line 487 does not include it either. Remove the redundant keyOptional flag if local auth already expresses the intended behavior, and update the override invariant plus focused provider coverage so bun run test remains green.

AGENTS.md reference: src/AGENTS.md:L24-L26

Useful? React with 👍 / 👎.

Comment thread src/providers/registry.ts
"chatgpt-web/extra-high": ["text", "image"],
"chatgpt-web/pro": ["text", "image"],
},
dashboardUrl: "https://github.com/miuuyy/codex-chatgpt-web",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document how to install and configure the bridge

This provider requires a separately installed loopback bridge, but the repository-wide docs search finds no chatgpt-web setup instructions, and docs-site/src/content/docs/guides/providers.md still lists only Ollama, vLLM, and LM Studio under local providers. Add the bridge installation/startup steps, the supported CLI setup command, and the default endpoint to the English provider guide, keeping translated guides from contradicting it.

AGENTS.md reference: AGENTS.md:L192-L193

Useful? React with 👍 / 👎.

Comment thread src/providers/registry.ts
keyOptional: true,
},
{
id: "chatgpt-web",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Retarget this provider change to dev

The reviewed commit is based directly on 88589c9 (release: v2.9.1) rather than the integration line, and its own subject marks it [WRONG BRANCH]. Rebase or recreate this change on dev before opening or merging it so the feature does not bypass the repository's single integration branch and current development changes.

AGENTS.md reference: AGENTS.md:L177-L178

Useful? React with 👍 / 👎.

@lidge-jun

Copy link
Copy Markdown
Owner

형님 죄송합니다 웹브릿지는 진짜 좆될것 같아요

@lidge-jun lidge-jun closed this Aug 2, 2026
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.

2 participants