⚠️ Pending Update · 2026-08-29 Verification · Content may be outdated, please refer to official docs Updated: 2026-08-29 · Status: Pending Verification
Introduction
Paid GitHub Copilot is not the only option. Open-source plugins like Continue and Cline support any OpenAI-compatible model, so you can wire in Groq, DeepSeek, OpenRouter, and more — for free. This article configures Continue (chat + completion) and Cline (autonomous agent) in VS Code.
架构图
Option 1: Continue (chat + autocomplete)
- In the VS Code marketplace, search for Continue and install it.
- Press
Ctrl+Shift+P→Continue: Open config.jsonto open~/.continue/config.json. - Add the following:
{
"models": [
{
"title": "Groq Llama 3.3 70B",
"provider": "openai",
"model": "llama-3.3-70b-versatile",
"apiBase": "https://api.groq.com/openai/v1",
"apiKey": "your-groq-key"
},
{
"title": "DeepSeek Chat",
"provider": "openai",
"model": "deepseek-chat",
"apiBase": "https://api.deepseek.com/v1",
"apiKey": "your-deepseek-key"
}
],
"tabAutocompleteModel": {
"title": "Groq 8B Autocomplete",
"provider": "openai",
"model": "llama-3.1-8b-instant",
"apiBase": "https://api.groq.com/openai/v1",
"apiKey": "your-groq-key"
}
}
After saving, the Continue sidebar works and Tab autocomplete is live. To avoid hardcoding keys, set apiKey to ${GROQ_API_KEY} — Continue resolves env vars automatically.
Option 2: Cline (autonomous agent)
Cline is a more aggressive agent that can edit files and run commands:
- Search for Cline in the marketplace and install.
- Open the Cline panel, click the gear icon, and set API Provider to
OpenAI Compatible. - Fill in:
- Base URL:
https://api.deepseek.com/v1 - API Key: your DeepSeek key
- Model ID:
deepseek-chat
Save and ask it to "refactor this module" or "add unit tests" — it runs autonomously, showing diffs at each step for confirmation.
JetBrains Users
Continue also ships for IntelliJ/PyCharm. The config lives at Settings → Tools → Continue → Open config.json with the same format as VS Code. Cline is not on JetBrains yet — you can use GitHub Copilot with a custom endpoint via a third-party patch as a substitute.
Practical Tips
- Autocomplete latency: 8B models are fastest. Groq's
llama-3.1-8b-instantis the autocomplete choice, with latency often under 100ms. - Long context: Use DeepSeek (64K) or Gemini (1M) for long conversations.
- Save money: Point
tabAutocompleteModelat a local Ollama instance; only chat goes to the cloud. - Privacy: For enterprise projects, deploy a NIM container and point the IDE at the internal address.
- @-mentions: Continue supports
@file,@codebase,@docsto ground answers in your context.
Troubleshooting
- No autocomplete: Check that
tabAutocompleteModelis complete and restart VS Code. Continue only triggers on certain file types — adjust intabAutocompleteOptions. 401 unauthorized: Key typo or expired — regenerate it on the provider dashboard.- Streaming: Continue streams by default; no extra config needed.
- Slow responses: Switch to a smaller model or to a LPU-accelerated provider like Groq.
One config powers chat, autocomplete, and an agent — entirely free.
Best Practices
- Continue.dev has the simplest config: a JSON file lists
models, each bound to a provider. - Cline ships an agent loop: can run multi-file edits in sequence; better for large refactors than Continue.
- GitHub Copilot alternatives must support custom models: Copilot itself does not allow custom model endpoints — Continue and Cline do.
- Cache repeated prompts locally: hash the prompt and cache for 5 minutes; free-tier 429s then hit cache.
🚀 Get Started: One-Click Free API Access
Want to call all the free models above with a single API key, no need to sign up for each provider? Apishare.cc provides a unified API Key — one key, 100+ models, free models at zero cost.
👉 Register on Apishare.cc → Get your unified API Key
📊 Want to see more free model rankings? Check out the Sep 2026 Free LLM API Rankings →
Get Started: APIShare Free API Directory
- 🆓 Claim your free credits:Register on APIShare · Sign in to console
- 🔍 Browse every free API and live ranking:APIShare Free API Directory
- 📊 See the leaderboard:Free LLM API Rankings
About the Free API Aggregator
The models covered in this guide are all served through the APIShare free API aggregator, which gives you one key for the whole catalog.
- Full model catalog: APIShare free API directory
- Sign up for a free trial key: Register and claim your API key