DEV Community

Cover image for No Copilot? No Problem! Get Free AI in VSCode Now
Oluwaseyi Komolafe
Oluwaseyi Komolafe

Posted on

No Copilot? No Problem! Get Free AI in VSCode Now

Tired of relying on paid tools like Copilot, Cursor AI, or ChatGPT? Here's how you can integrate a powerful and completely free AI assistant directly into your Visual Studio Code. Follow these steps, and you’ll have a personal coding guru at your fingertips—without any restrictions!


Groq console

Step 1: Set Up Your Groq Account

  1. Visit Groq Console.
  2. Create an account or log in.
  3. Navigate to API Keys and create a new key.

Groq api key view

  1. Important: Copy and save your API key immediately—it’s displayed only once!

Continue extension on vscode

Step 2: Install the Continue Extension

  1. Open Visual Studio Code.
  2. Search for “Continue” in the Extensions Marketplace.
  3. Install the extension.

Step 3: Configure the Continue Extension

Continue extension look on vscode

  1. Open the installed extension and click the gear icon (third icon from the right at the top of the page).
  2. A configuration file will open. Replace its content with the following:
   {
     "models": [
       {
         "model": "AUTODETECT",
         "title": "Ollama",
         "apiBase": "http://localhost:11434",
         "provider": "ollama"
       },
       {
         "model": "AUTODETECT",
         "title": "Groq",
         "apiKey": "YOUR_GROQ_API_KEY",
         "provider": "groq"
       }
     ],
     "customCommands": [
       {
         "name": "test",
         "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
         "description": "Write unit tests for highlighted code"
       }
     ],
     "tabAutocompleteModel": {
       "title": "codeqwen",
       "provider": "ollama",
       "model": "starcoder2:3b"
     },
     "contextProviders": [
       { "name": "code", "params": {} },
       { "name": "docs", "params": {} },
       { "name": "diff", "params": {} },
       { "name": "terminal", "params": {} },
       { "name": "problems", "params": {} },
       { "name": "folder", "params": {} },
       { "name": "codebase", "params": {} }
     ],
     "slashCommands": [
       { "name": "edit", "description": "Edit selected code" },
       { "name": "comment", "description": "Write comments for the selected code" },
       { "name": "share", "description": "Export the current chat session to markdown" },
       { "name": "cmd", "description": "Generate a shell command" },
       { "name": "commit", "description": "Generate a git commit message" }
     ]
   }
Enter fullscreen mode Exit fullscreen mode
  1. Replace YOUR_GROQ_API_KEY with your saved API key. Save the file.

Step 4: Start Using Your AI Partner!

  • Highlight any code in your editor.
  • Press Command + L (or the equivalent on your system) to open Continue.
  • Ask questions, request code reviews, or generate solutions without limits!

Why This Is a Game-Changer:

  • Completely Free: Say goodbye to subscription fees!
  • Unlimited Prompts: Unlike ChatGPT, you’re not capped by usage limits.
  • Seamless Integration: Directly within your VSCode workspace.
  • Customizable: Tailor commands to suit your needs.

Experience a smarter, faster way to code. Set up your free AI assistant today and elevate your coding workflow to the next level! 🚀

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay