Back to guides

VS Code Setup Guide

Configure VS Code AI extensions to use KorProxy

1Overview

VS Code supports various AI extensions that can use KorProxy as their backend.

Works with GitHub Copilot alternatives and custom AI extensions like Continue, Cody, and others.

Configure via settings.json or environment variables.

2Prerequisites

  • KorProxy app installed and running
  • VS Code installed
  • AI extension installed (Continue, Cody, etc.)
  • At least one provider authenticated in KorProxy

3General Configuration

Environment Variables

Add to your shell profile (~/.zshrc or ~/.bashrc):

export OPENAI_API_BASE=http://localhost:1337/v1
export OPENAI_API_KEY=korproxy

VS Code Settings (settings.json)

Press Cmd/Ctrl + , → Open Settings (JSON):

{
  "http.proxy": "",
  "openai.apiBase": "http://localhost:1337/v1"
}

4Extension-Specific Setup

Continue Extension

Edit ~/.continue/config.json:

{
  "models": [
    {
      "title": "Claude Opus 4.5 Thinking High [KorProxy]",
      "provider": "openai",
      "model": "claude-opus-4-5-thinking-high",
      "apiBase": "http://localhost:1337/v1",
      "apiKey": "korproxy"
    },
    {
      "title": "GPT 5.1 Codex Max XHigh [KorProxy]",
      "provider": "openai",
      "model": "gpt-5.1-codex-max-xhigh",
      "apiBase": "http://localhost:1337/v1",
      "apiKey": "korproxy"
    },
    {
      "title": "Gemini 3 Pro Image [KorProxy]",
      "provider": "openai",
      "model": "gemini-3-pro-image-preview",
      "apiBase": "http://localhost:1337/v1",
      "apiKey": "korproxy"
    }
  ]
}

Other OpenAI-Compatible Extensions

  • Look for "API Base URL" or "Base URL" setting
  • Set to: http://localhost:1337/v1
  • Use any API key (e.g., korproxy)

5Troubleshooting

Common Issues

  • 1

    Settings not applied

    Reload VS Code window after changes: Cmd/Ctrl + Shift + P → "Reload Window"

  • 2

    Extension errors

    Check the extension's output panel for detailed error messages

  • 3

    Connection refused

    Verify KorProxy is running—look for the status indicator in the menu bar