From 148ea4bb7c06ff17cc1f21f9b1832ebab8d45ebd Mon Sep 17 00:00:00 2001 From: GenexisAI CHOI Date: Sun, 2 Aug 2026 16:44:56 +0900 Subject: [PATCH] Add chatgpt-web provider: route ChatGPT Web models via codex-chatgpt-web bridge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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} --- src/providers/registry.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/providers/registry.ts b/src/providers/registry.ts index 48ad865eb2..5aaa64912d 100644 --- a/src/providers/registry.ts +++ b/src/providers/registry.ts @@ -1282,6 +1282,35 @@ export const PROVIDER_REGISTRY: readonly ProviderRegistryEntry[] = [ // A self-hosted proxy may legitimately run without a master key. keyOptional: true, }, + { + 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", + modelContextWindows: { + "chatgpt-web/light": 256_000, + "chatgpt-web/medium": 256_000, + "chatgpt-web/high": 256_000, + "chatgpt-web/extra-high": 256_000, + "chatgpt-web/pro": 256_000, + }, + modelInputModalities: { + "chatgpt-web/light": ["text", "image"], + "chatgpt-web/medium": ["text", "image"], + "chatgpt-web/high": ["text", "image"], + "chatgpt-web/extra-high": ["text", "image"], + "chatgpt-web/pro": ["text", "image"], + }, + dashboardUrl: "https://github.com/miuuyy/codex-chatgpt-web", + note: "Local ChatGPT Web browser bridge. Requires codex-chatgpt-web running on loopback (default port 17841). Routes ChatGPT Web Instant–Pro through an embedded browser session; no API key needed.", + }, { id: "ollama-cloud", label: "Ollama Cloud",