Skip to content

Cline & VS Code

Two ways to get the gateway working inside VS Code.

Cline is the most popular open-source coding agent for VS Code. It speaks the OpenAI API shape, so any OpenAI-compatible endpoint works — including ours.

  1. Install Cline from the VS Code marketplace.
  2. Open Cline's settings → API Provider → choose OpenAI Compatible.
  3. Enter:
    • Base URLhttps://luckyapi.chat/v1
    • API Key → your sk-... from luckyapi.chat
    • Model ID → e.g. claude-sonnet-4-6, gpt-5, deepseek-v3.2 (see models)
  4. Reopen the Cline panel — you're connected.

Cline supports Claude's full tool/agent loop through the gateway, including streaming and prompt caching.

Option B — Claude Code's official VS Code extension

If you'd rather use Anthropic's first-party extension:

  1. Install Claude Code in your terminal (see getting started) — set the env vars persistently at the user level, not just in .zshrc.
  2. Install the Claude Code extension from the VS Code marketplace.
  3. Reload VS Code. The extension reads the same ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN and connects through the gateway automatically.
  4. Open the panel with Ctrl/Cmd+Esc. Selected code is sent as context.

Windows note: the extension only sees env vars set with [Environment]::SetEnvironmentVariable("…", "…", "User"). Variables set with plain $env: don't persist across the IDE.

JetBrains

The official Claude Code plugin is available in the JetBrains Marketplace (IntelliJ, PyCharm, WebStorm, GoLand, …). Same env-var setup — install the plugin and it picks up your config.

Independent. Not affiliated with Anthropic or OpenAI.