Use OpenAI Codex models directly from the GitHub Copilot Chat model picker in Visual Studio Code with your ChatGPT Plus or Pro subscription.
This native VS Code LanguageModelChatProvider handles OpenAI OAuth locally and streams ChatGPT Codex responses into Copilot Chat without a local proxy.
Highlights
ChatGPT OAuth with PKCE, automatic refresh, and VS Code Secret Storage
Multiple named Codex Bridge entries for separate ChatGPT accounts
Live Codex model discovery with six-hour persisted models.dev enrichment
Streaming text, reasoning summaries, images, and agent-mode tool calls
Per-model reasoning effort, summary, Speed Mode, Web Search, and Image Generation controls
Codex-aware context accounting and prompt-cache reuse
Status-bar quota and local inference-token tracking
Browser, manual-callback, and optional Codex CLI session sign-in paths
Connection testing and secret-safe diagnostics
Quick start
Install Codex Bridge for Copilot Chat. You need VS Code 1.125 or newer, GitHub Copilot Chat, and a ChatGPT account with Codex access.
Open Chat: Manage Language Models, select Add Models → Codex Bridge, and follow the prompts (group name and profile ID). Codex Bridge then offers to sign in with ChatGPT right away — or run Codex Bridge: Add Provider Entry (or Add ChatGPT Account) yourself; each creates the entry if missing and signs in only when needed. Use manual sign-in if local port 1455 is unavailable.
Repeat those steps with another profile ID to keep work and personal ChatGPT accounts available side by side.
Choose Continue with ChatGPT when connecting an account to register a Codex Bridge app connection with your ChatGPT plan. Manage its weekly percentage cap in ChatGPT Settings → Usage. Existing connections and the Codex browser (legacy) option keep their Codex backend route.
Each connection discovers its available models from its authenticated catalog. Composer controls override workspace defaults; reasoning defaults to Low when advertised. Direct ChatGPT connections support Copilot tools and optional Web Search, while Image Generation remains available only on the legacy route. Click the Codex status-bar item for locally observed tokens and a link to app limits; legacy connections also show account quota and reset credits.
Unofficial project; not affiliated with OpenAI, GitHub, or Microsoft. The ChatGPT Codex backend is not a public compatibility API and can change. Licensed under MIT.