Cline & VS Code
Two ways to get the gateway working inside VS Code.
Option A — Cline (recommended)
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.
- Install Cline from the VS Code marketplace.
- Open Cline's settings → API Provider → choose OpenAI Compatible.
- Enter:
- Base URL →
https://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)
- Base URL →
- 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:
- Install Claude Code in your terminal (see getting started) — set the env vars persistently at the user level, not just in
.zshrc. - Install the Claude Code extension from the VS Code marketplace.
- Reload VS Code. The extension reads the same
ANTHROPIC_BASE_URL/ANTHROPIC_AUTH_TOKENand connects through the gateway automatically. - 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.