Free Copilot and Cursor alternatives: local coding with Ollama and Continue

11 min read
free-alternatives
coding
ollama
continue
open-source
Try Code Diff MergerFree, runs in your browser — no upload or sign-up.Open tool →

You can add coding chat and suggestions to VS Code without buying another AI subscription. A local model served by Ollama and the open-source Continue extension are a useful starting point—especially for small functions, explanations and tests.

They are alternatives for parts of the workflow, not free copies of GitHub Copilot, Cursor or Claude. Local models can be slower, less accurate and harder to configure than hosted products. This guide starts with a modest machine, a small model and a review-first workflow.

What each piece does

PieceJobWhat it does not provide
VS CodeYour editorA local coding model by itself
OllamaDownloads and serves model weights locallyEditor integration or automatic safety
Qwen2.5-CoderGenerates coding textGuaranteed correct code or the latest API knowledge
ContinueConnects editor chat, edits and completion to configured modelsFree access to paid cloud models

A local chat model can explain selected code. Autocomplete is a separate workload: it needs low latency and suitable fill-in-the-middle behaviour. Agent mode is different again: it needs compatible tool calling and carefully controlled actions. Do not assume that configuring chat unlocks every feature.

What is actually free?

The local path below does not need a model API key or a per-request subscription. You still need storage, memory, electricity and internet for installation and model downloads. Continue can also connect to hosted providers and optional services; those may have prices, quotas and account requirements.

Use the official Continue repository and Ollama downloads. Read the individual model license before commercial use or redistribution. “Available on GitHub” and “open weights” are not blanket permission for every use.

This is not a way to unlock Claude or bypass Cursor/Copilot payment. Paid products may offer collaboration, remote models, larger context or integrated agent workflows that this setup does not reproduce. Their current prices change; evaluate the task and plan you actually need.

Choose the smallest useful coding model first

For a reproducible starting point, we use the established Qwen2.5-Coder family, not a claim that it is today's newest or strongest model. Its Ollama packages support a range of sizes.

Model tagApproximate default downloadSuggested experiment
qwen2.5-coder:1.5b986 MBSmall suggestions and short explanations; lowest starting download here
qwen2.5-coder:7b4.7 GBMore capable chat and edits if memory and latency allow

Sizes are from the official 1.5B and 7B pages checked on 4 December 2026. Tags and quantization can change. Disk download size is not total runtime memory: context, caches and the editor add overhead.

Other coding families, including DeepSeek-Coder, are options to investigate, not automatic upgrades. Check the exact model's license, completion format, hardware needs and capabilities. Do not download several large models before measuring one.

A realistic 8 GB, 16 GB and 32 GB guide

These are starting experiments, not guaranteed compatibility or measured speed claims. GPU VRAM, unified memory, operating-system use, context length and whether two models remain loaded all matter.

  • 8 GB system RAM: start with 1.5B, one active model and short prompts. Close heavy applications. CPU-only suggestions may still feel slow.
  • 16 GB: test a quantized 7B model for short chat while keeping autocomplete small. If the machine swaps or stalls, unload the bigger model and reduce context.
  • 32 GB: you have more room to experiment with larger models or context, but extra RAM alone does not make a CPU fast or guarantee agent quality.

On a discrete GPU, system RAM does not replace VRAM. On a shared-memory machine, the editor, OS and model compete for the same pool. Check the requirements for your platform instead of treating parameter count as a hardware specification.

Step 1: install and test Ollama

Install the official application for your system and leave its local service running. Then use a terminal:

bash
ollama pull qwen2.5-coder:1.5b
ollama run qwen2.5-coder:1.5b

Ask: “Explain the difference between Python == and is with one short example.” If the response is too slow or incorrect, fix that before adding editor integration. Exit the interactive chat when finished; keep the service available.

Use ollama list to see installed models and ollama ps to inspect loaded ones. Ollama normally serves local requests on port 11434. Keep it bound to localhost; do not expose that port publicly to solve an editor connection issue.

For a larger optional chat model:

bash
ollama pull qwen2.5-coder:7b

Skip this download on a constrained machine. You can use the small model for both roles initially.

Step 2: connect Continue to the local model

Install the official Continue VS Code extension, checking its publisher and repository rather than trusting a similarly named extension. Open its local configuration from the extension's configuration controls. Current documentation uses config.yaml; old config.json examples may not match your version.

For the smallest setup, use this local configuration:

yaml
name: Local Coding Starter
version: 1.0.0
schema: v1
models:
  - name: Small local coding chat
    provider: ollama
    model: qwen2.5-coder:1.5b
    apiBase: http://127.0.0.1:11434
    roles:
      - chat
      - edit
  - name: Small local autocomplete
    provider: ollama
    model: qwen2.5-coder:1.5b
    apiBase: http://127.0.0.1:11434
    roles:
      - autocomplete

Both entries reference the same downloaded model; they do not require two model downloads. Separate names make the intended roles clear. Use this as a complete starter configuration, or merge the entries carefully into your existing models list. Do not discard a configuration you still need.

Save, let Continue reload the configuration, and select the local chat model. Make sure autocomplete is enabled and its model is selected in your installed extension. If you downloaded 7B, change only the first entry's model to qwen2.5-coder:7b; keep the smaller model for autocomplete.

The example intentionally does not declare tool-use capability, add remote embedding providers or enable autonomous agents. It sets up chat, edits and autocomplete. Follow the current configuration reference and Ollama provider guide if your version differs.

Step 3: verify one useful coding task

Create a small throwaway Python file, not your production repository:

python
def normalise_email(value: str) -> str:
    return value.strip().lower()

Select that function and ask Continue: “Suggest three tests for whitespace, case and empty input. Do not add dependencies or modify files.” Review the proposed tests before running or applying anything.

A minimal test you can understand yourself is:

python
assert normalise_email("  MAYA@EXAMPLE.COM  ") == "maya@example.com"
assert normalise_email("maya@example.com") == "maya@example.com"
assert normalise_email("") == ""

This is normalization, not email validation. It does not prove an address exists, and real application policy may need to preserve case in the local part. Ask the model to explain that limitation; do not let it silently convert a tiny helper into a security claim.

Try a function header in the editor to check autocomplete. Suggestions are optional drafts: reject irrelevant ones and compare latency before relying on them. Use Python Playground for these small Python exercises, not for running Ollama. It cannot host the desktop model service.

Useful advanced features—and what they require

  • Selected-code explanations: give the model a small relevant snippet rather than an entire private repository.
  • Reviewable edits: request one change, inspect the diff and run tests before accepting it.
  • Repository awareness: indexing may require an embedding model and extra storage. It is not configured by the starter YAML, and remote embeddings would change the privacy story.
  • Agent/tool workflows: use a model with verified tool support and keep approval controls. The example above is not an autonomous agent setup.
  • Local custom rules: specify your project's testing and coding conventions, but remember that instructions are not an enforcement boundary.

For a review outside the editor, Code Diff Merger compares before/after snippets, and JSON Formatter helps inspect small JSON payloads. These are existing browser utilities, not local LLM clients.

Privacy: local inference is not the whole application

Choosing Ollama keeps those model requests on your computer. It does not automatically disable editor telemetry, extension analytics, crash reporting, remote embeddings, cloud chat providers, documentation downloads or external tools.

Before using private code, inspect Continue and VS Code's current privacy/telemetry settings, remove unused remote model entries and avoid remote context providers. Never paste API keys or credentials into chat. A repository can also contain instructions that try to manipulate an agent; treat retrieved content as data, not authority.

Offline check: install everything, download the model, then disconnect and ask about a harmless selected snippet. Confirm chat and completion still work without switching providers. Remote documentation, updates and optional services will not be available. Test again after upgrades; do not assume every extension feature is offline.

Common problems and honest fixes

ProblemCheck first
Cannot connectOllama service is running; apiBase and port match
Model not foundollama list contains the exact configured tag
YAML rejectedIndentation, schema: v1 and the installed version's reference
Chat works, completion does notAutocomplete role, selected model and completion toggle
Suggestions arrive too lateSmaller model, shorter context, fewer active models
Invented methods or packagesOfficial documentation and a real test, not another confident prompt
No useful whole-repository answersStarter configuration does not include repository indexing

Do not open the local port to the internet, disable security controls or silently switch to a paid cloud provider as a “fix.” If a smaller local model cannot handle the task, that is a limitation to acknowledge.

Compare it fairly with paid assistants

Use the same five tasks: explain a function, produce tests, fix a small bug, suggest a refactor and identify an unfamiliar API from supplied documentation. Record response time, corrections needed and whether tests pass.

A local setup is attractive for budget control, learning and bounded private work. A hosted assistant may be more productive on complex tasks or limited hardware. Neither should receive unchecked permission to delete files, install packages, push code or deploy changes.

For deeper exercises, continue with Python Mastery or Generative AI & LLM Engineering. For bounded automation beyond editor chat, read our free local AI agents guide.

Sources and next step

Documentation checked on 4 December 2026: Continue, Continue configuration, Ollama and the linked official model pages. Setup and model availability can change; check the installed version's documentation.

Start with the 986 MB 1.5B model, one small function and a test you can explain. Upgrade only when a larger model measurably saves more time than it costs.

Tools from this article

← All articles