CodexVSCodexVS is a native VS Code VS Code and the calling Copilot agent remain the sole owners of context selection, tools, MCP integrations, command execution, edits, approvals, and permissions. CodexVS never exposes tools configured in Codex itself. Requirements
Install or update Codex CLI:
Remote SSH, WSL, and dev-container extension hosts need their own Codex CLI installation. If InstallationInstall the pre-release from the VS Code Marketplace once it is published, or download the VSIX and matching SHA-256 file from the v0.2.1 pre-release.
The Marketplace package is uploaded manually from the same verified VSIX attached to the GitHub pre-release. Development install
Open this folder in VS Code, press
To install the packaged pre-release:
Use a separate profile for a truly isolated install:
AuthenticationCodex app-server owns ChatGPT authentication. CodexVS preserves the normal Signing out removes the shared Codex login and therefore requires confirmation. MCP and toolsCodex CLI clients share MCP configuration. CodexVS does not modify that global configuration and does not make those servers available to Copilot. Before starting its passive app-server child it:
Each listing has an independent 30-second timeout. App-server startup retains its separate 10-second timeout. A timeout, malformed listing, changing server set, or failure to disable is reported distinctly. Valid global MCP servers do not need to be removed. Caller-supplied VS Code tools are different: CodexVS reports a dynamic tool call to VS Code, the caller executes it under VS Code permissions, and the result is returned on a later provider invocation. Every Codex-owned command, filesystem, MCP, web, browser, computer, image, plugin, hook, skill, memory, goal, or subagent path is disabled and rejected. Caller tools receive deterministic
VS Code utility modelsVS Code uses separate models for background work such as titles, summaries, intent detection, branch names, and commit messages. When the main agent uses a BYOK or extension-provided model and built-in Copilot utility models are unavailable, both Run Codex: Configure VS Code Utility Models to set both global settings. The command lets you choose a capable general model and a faster small model. This follows the official VS Code utility-model guidance. Thinking effortEach discovered model advertises only the reasoning modes supported by its Codex catalog entry, in catalog order. Known modes receive friendly labels; an unknown future identifier is shown verbatim instead of being discarded. On VS Code 1.128 and newer, choose Thinking Effort beside the model picker to change it for that model in the current chat. The native choice is passed to CodexVS as model configuration and takes precedence over every default. Run Codex: Configure Reasoning Effort from the Command Palette or Codex: Manage for a global default built from the live model catalog. This is also the control for older supported VS Code versions, where provider configuration controls are not rendered. Auto (model default) follows the catalog; an unsupported global choice is ignored for that model instead of being sent to app-server. Max is maximum single-agent reasoning. Ultra (VS Code) appears only when the same model advertises both If the native tool is absent, Ultra completes as single-agent Max instead of failing. This is also the expected fallback inside a VS Code subagent when nested invocation is disabled; nested delegation occurs only when VS Code itself supplies the tool under Greater effort generally spends more reasoning tokens and takes longer. Ultra can additionally consume VS Code subagent credits and the delegated worker's tokens, so it should be reserved for work that benefits materially from an isolated investigation. The request-shape log records the requested mode, backend effort, orchestration mode, and whether VS Code delegation was available without recording prompt content. See the official Codex configuration reference, VS Code model-picker guidance, and VS Code subagent guidance. Prompt and context behaviorVS Code's Language Model API has user and assistant message roles; it does not expose a separate system-message role to providers. Copilot assembles its agent instructions, repository instructions, selected context, conversation history, tool calls, and tool results into the request it sends to CodexVS. The short text visible in the chat input is therefore not the whole model input. CodexVS deliberately replaces Codex's normal agent base instructions with a small passive-provider contract, adds Every model request records a privacy-safe request shape in the CodexVS output: message counts, role counts, part counts, text-character count, tool-definition count, tool mode, requested reasoning mode, backend effort, orchestration mode, and VS Code delegation availability. Codex: Show Integration Diagnostics adds runtime, model, tool-registration, reasoning-default, utility-setting, workspace-trust, and extension-host state. Neither record includes prompt text, tool names, tool arguments, tool results, credentials, or raw app-server stderr. Diagnostics and logs
The app-server remains the right official integration surface: it supplies ChatGPT authentication, model discovery, threads, turns, streaming, usage, and caller-executed dynamic tools without adding a private HTTP transport. See the official Codex app-server documentation. Compatibility policyCodexVS accepts parseable stable Codex CLI releases from 0.144.4 onward. Older, malformed, and prerelease versions fail before launch. A CLI newer than the latest version validated for a given extension release produces a non-blocking warning. Compatibility is then checked progressively at the operation being used: initialization, authentication, model discovery, thread creation/fork/injection, turns, account limits, and dynamic tools. Unknown optional response fields and notifications are ignored. Missing required fields, method-not-found, and invalid-params failures produce a Settings
VS Code's Verification
The real-account suite is opt-in and uses the existing shared ChatGPT login. Public CI never stores or imports that login. Ownership and licensingCopyright © 2026 merceralex397-collab. CodexVS is released under the MIT License. Bundled third-party software remains under its own terms; required notices are shipped in Questions and reproducible bug reports belong in GitHub Issues. Please read Support, Contributing, and Security before filing. See Architecture and Development for implementation details. |