← Back to articles
Detailed Usage

Integrating Free APIs into Your Local IDE

⚠️ 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.

架构图

flowchart LR A[VS Code] --> B[Continue.dev extension] A --> C[Cline extension] A --> D[Copilot alternatives] B --> E[OpenAI-compatible config] C --> E D --> E E --> F[OpenRouter :free model] F --> G[Zero-cost AI coding]

Option 1: Continue (chat + autocomplete)

  1. In the VS Code marketplace, search for Continue and install it.
  2. Press Ctrl+Shift+P → Continue: Open config.json to open ~/.continue/config.json.
  3. 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:

  1. Search for Cline in the marketplace and install.
  2. Open the Cline panel, click the gear icon, and set API Provider to OpenAI Compatible.
  3. 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-instant is the autocomplete choice, with latency often under 100ms.
  • Long context: Use DeepSeek (64K) or Gemini (1M) for long conversations.
  • Save money: Point tabAutocompleteModel at 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, @docs to ground answers in your context.

Troubleshooting

  • No autocomplete: Check that tabAutocompleteModel is complete and restart VS Code. Continue only triggers on certain file types — adjust in tabAutocompleteOptions.
  • 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


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.

More in this category

Free AI Content Moderation API Guide 2026: Llama Guard 3 vs Perspective vs OpenAIConnecting Free Models to OpenCode in PracticeApplying for an OpenRouter API Key and Understanding PricingUsing the Hugging Face Inference ClientFree OCR and Document Parsing API in Practice

Ready to use free LLM APIs?

APIShare aggregates free AI APIs worldwide — sign up and get bonus credits.