Windows: codex fails silently without Visual C++ Redistributable installed

Open 💬 0 comments Opened May 1, 2026 by Jonohobs

Description

On Windows, codex fails silently with exit code -1073741515 (0xC0000135 - STATUS_DLL_NOT_FOUND) when the Microsoft Visual C++ Redistributable is not installed. The user gets no error message — the CLI simply does nothing.

Steps to Reproduce

  1. Install @openai/codex via npm on a fresh Windows 11 machine without the VC++ Redistributable
  2. Run codex in a terminal
  3. No output, no error — silent exit

Expected Behaviour

A clear error message telling the user they need to install the Visual C++ Redistributable, with a link to download it.

Actual Behaviour

Silent failure with exit code 0xC0000135 (STATUS_DLL_NOT_FOUND).

Fix

Install the Visual C++ Redistributable from https://aka.ms/vs/17/release/vc_redist.x64.exe — after installing, codex works correctly.

Environment

  • OS: Windows 11 Pro 10.0.26200
  • codex version: 0.128.0
  • Node.js: v24.15.0

Suggestion

Either bundle the required DLLs, add a pre-flight check that detects the missing runtime and prints a helpful error, or document this requirement prominently in the Windows installation instructions.

View original on GitHub ↗