codex-gateway

ChatGPT subscription → OpenAI-compatible endpoint

checking…

Credential

Sign in

One login per gateway. Tokens are stored in the container's /data volume and refresh on their own.

Interactive

Send a test message

A plain OpenAI chat/completions call against this gateway — nothing gateway-specific, which is the point. Uses your real subscription quota.

Reference

Connect a client

Base URL · no API key

Pick one — these are alternatives, not steps.

VS Codethe ACP extension, four steps

The extension is not an HTTP client — it spawns codex-gateway-acp on the machine your code is on, and that process calls the gateway. So 127.0.0.1 there means your machine; use the address above. Needs Python 3.11+, Node 20+, VS Code 1.100+.

the steps below follow this choice
  1. Build the launcher where your code is:
    
          
  2. Package and install the client, then reload VS Code:
    
          
  3. Add to user settings.jsonlauncherPath absolute, on your machine:
    
            
  4. Open a trusted folder → Codex Gateway in the Activity Bar → send a task. Stuck? Codex Gateway: Show ACP Logs.
WSLonly when the code is in the distribution

Windows itself needs no WSL: select Windows above and the four steps run as they are. Use this block only when the repository is in the WSL file system and you open it with the VS Code WSL remote. Then run all four steps inside the distribution.

  1. Install everything in the distribution — repository, uv, Node.js, launcher. Set launcherPath to the path in the distribution.
  2. code --install-extension needs wget. Without it, the command builds the VSIX file and then gives the error "Failed to download the VS Code server":
    sudo apt-get update && sudo apt-get install -y wget
    As an alternative, press Ctrl+Shift+P, select Extensions: Install from VSIX… in the WSL window, and install the file there.
  3. WSL does not use the Windows VPN resolver. A name can resolve in the browser but not in the distribution, so the launcher cannot reach the gateway. Add the host:
    
          
curlcheck it from a shell

  
Bifrost & friendskeyless provider block

  
SSH tunnelwhen there is no network route

The gateway also listens on the host's loopback. Nothing new is exposed, no certificate involved:


  
Diagnostics
loading…