DEV Community

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

Posted on

3

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! 🚀

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →