VS Code extensions

Install and configure the official Codex and Claude Code extensions.

Prerequisites

You need VS Code.

1. Install

Install VS Code, then find and install both official extensions from the Extensions view:

  • Codex – OpenAI's coding agent
  • Claude Code for VS Code
Find the official Codex extension in the VS Code Marketplace. Red boxes mark the Extensions view and correct result; the arrow points to Install. Find the official Claude Code extension in the VS Code Marketplace. Red boxes mark the Extensions view and correct result; the arrow points to Install.

2. Configure

Codex extension

The extension reads the local Codex config.toml. On Windows, open %USERPROFILE%\\.codex\\config.toml:

$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME ".codex" }
New-Item -ItemType Directory -Force -Path $codexHome | Out-Null
notepad (Join-Path $codexHome "config.toml")

On macOS, open ~/.codex/config.toml:

CODEX_DIR="${CODEX_HOME:-$HOME/.codex}"
mkdir -p "$CODEX_DIR"
open -e "$CODEX_DIR/config.toml"

Preserve other settings and merge:

config.toml
model_provider = "GetRun"

[model_providers.GetRun]
name = "GetRun"
base_url = "https://api.get-apikey.com/v1"
wire_api = "responses"
requires_openai_auth = true
experimental_bearer_token = "sk-xxxxx-xxx"

Claude Code extension

The extension reads ~/.claude/settings.json. On Windows, use:

$claudeDir = Join-Path $HOME ".claude"
New-Item -ItemType Directory -Force -Path $claudeDir | Out-Null
notepad (Join-Path $claudeDir "settings.json")

On macOS, use:

mkdir -p "$HOME/.claude"
open -e "$HOME/.claude/settings.json"
chmod 600 "$HOME/.claude/settings.json"

Merge the following env object:

settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.get-apikey.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-xxxxx-xxx",
    "ANTHROPIC_MODEL": "YOUR_MODEL",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "YOUR_MODEL",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "YOUR_MODEL",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "YOUR_MODEL"
  }
}

Merge this into the VS Code user settings.json:

{
  "claudeCode.disableLoginPrompt": true
}

3. Restart

Fully quit and reopen VS Code, then open the corresponding extension sidebar.

4. Confirm a reply

Send Reply only with OK in the Codex or Claude Code sidebar. The setup is complete when the extension replies OK.

On this page