Free AI Coding in VS Code

You do not need a subscription to code with AI. I present a free setup using an open source extension called Continue, and a free API key from Google AI Studio. Setup takes about five minutes.

What is a coding harness?

A language model on its own is just text in, text out. It cannot see your project. It cannot open a file, run a test, or apply an edit.

A coding harness is the software that wraps the model and gives it hands. It decides which files to send as context. It formats your question into a prompt. It reads the reply and turns it into an edit in your editor. Think of the model as an engine and the harness as the car around it.

Continue is the harness and it is free forever. Gemini is the model and Google gives away a free tier. Using both, you have a free AI coding assistant in VS Code.

Step 1: Install Continue

Continue is an open source harness, bought by Cursor, but still freely available. The source is on GitHub if you want to see how it works.

  1. Open VS Code.
  2. Press Ctrl + Shift + X to open Extensions. On a Mac use Cmd + Shift + X.
  3. Search for Continue. The publisher is Continue.
  4. Click Install. You can also grab it from the VS Code Marketplace.
  5. A Continue icon appears in the sidebar. Click it to open the chat panel.

Continue will ask you to pick a model. Ignore that for now. Get your key first.

Step 2: Get a free Gemini API key

Google AI Studio hands out API keys at no cost. You need a Google account and nothing else.

  1. Go to aistudio.google.com/api-keys.
  2. Sign in with your Google account.
  3. Click Create API key.
  4. You might be asked to make a project first, give it an arbitrary name.
  5. Copy the key once it's generated.
Treat this like a password Never commit an API key to git. Never paste it into a public repo, a screenshot, or a group chat. If a key leaks, delete it in AI Studio and create a new one.

Step 3: Paste the key into Continue

Open the Continue panel in VS Code. There is a field for API Keys. Paste your key under the appropriate provider. (Gemini if you are using the free Google key.)

  1. Set the provider to Google Gemini if you are using the free Google key.
  2. Paste your API key into the key field.
  3. Click Connect. Continue writes the config for you.

Continue reads a YAML file at ~/.continue/config.yaml. On Windows that is %USERPROFILE%\.continue\config.yaml. It looks like this:

name: My Config
version: 0.0.1
schema: v1

models:
  - name: Gemini Flash
    provider: gemini
    model: gemini-3.7-flash
    apiKey: YOUR_KEY_HERE
    roles:
      - chat
      - edit
      - apply

Save the file. Continue picks up the change straight away.

Step 4: Select a Flash model

Google ships several Gemini models. Pick a Flash one.

Choose the latest Flash in the dropdown. Today that is gemini-3.7-flash, though Google renames these often. If the name changed, take the newest one with Flash in it.

You are done That is the whole setup. Continue is now wired to a real model, and you are not paying for it.

Step 5: Actually use it

Continue has three modes.

Start with questions rather than commands. Ask it to explain an error before you ask it to fix one. You learn more that way, and you catch it when it is wrong.

My Suggestions

When you outgrow the free tier

The free setup is great for learning. Paid tools pull ahead on long, multi-step work: refactoring across many files, running tests in a loop, working from a terminal. These are worth a look once you know the workflow.

Continue also works with those paid models. Swap the provider and key, keep the same harness.