How to Install and Use Aider and Continue on Ubuntu 26.04 and 24.04 (Local AI Coding Setup)

Share

On Ubuntu 26.04 or 24.04 LTS, install Aider with uv and Python 3.12, add Continue to VS Code or VSCodium, and point both at the same local Ollama server so they can share one coding model download.

Use Aider in the terminal for changes across files that you can review in Git. Use Continue in the same project for Tab completions, sidebar chat, and edits to selected code. Choose VSCodium if you want an open-source editor for the whole setup.

Before you begin
  1. Ubuntu and tools. Use Ubuntu 26.04 LTS (Resolute) or 24.04 LTS (Noble) with VSCodium or VS Code installed. Use a new folder for the Git exercise.
  2. Memory and storage. Check available RAM with free -h and free disk space where Ollama stores its models. The 7B and 1.5B downloads total about 5.7 GB. On an 8 GB laptop, start with the smaller chat model below.
  3. Access. Use an internet connection for setup and the first model downloads. You need sudo if you install Git through APT.

Set up one Ollama server for both tools

Step 1. Pull the shared coding models

Follow the Ollama installation guide if Ollama is new to you. Once the service is running, check that it responds on loopback.

Ubuntu terminal
curl -fsS http://127.0.0.1:11434/api/tags

The response lists the models Ollama already has. Pull any missing tags below. Both tools share the same on-disk copy of the chat model. The smaller model is for autocomplete. On an 8 GB CPU laptop, use the 3B chat tag in place of 7B in the commands below.

Ubuntu terminal
ollama pull qwen2.5-coder:7b
ollama pull qwen2.5-coder:1.5b
ollama list

On an 8 GB CPU laptop, use ollama pull qwen2.5-coder:3b in place of the 7B pull and use :3b in both clients. Keep tasks small and pause autocomplete if both models stretch available memory. The editor and each model’s context use RAM beyond the download size. See the Qwen guide for more model choices.

Install Aider and review a Git change

Step 2. Install with uv and Python 3.12

Install uv on Ubuntu first. Ubuntu 26.04 ships Python 3.14 and Ubuntu 24.04 ships Python 3.12. Aider 0.86.2 supports Python 3.10 through 3.12. The explicit Python option lets uv use or fetch Python 3.12 and install Aider in its own environment on either release. This avoids the externally managed Python restriction (PEP 668).

Ubuntu terminal
uv tool install --force --python python3.12 --with pip aider-chat@latest
aider --version

If the shell cannot find aider, run uv tool update-shell and open a fresh terminal. The usual executable directory is ~/.local/bin.

Install Git with sudo apt install git if needed. Create a new folder and initialize Git. If this folder already exists, choose another name before you continue.

Ubuntu terminal
mkdir ~/aider-continue-demo && cd ~/aider-continue-demo && git init

Set a Git identity for this demo repository and commit a small Python file and its test. In a real repository, check git config user.name and git config user.email and set your own details if either is missing. Aider needs a Git identity for commits.

Ubuntu terminal
git config --local user.name "Ubuntu Demo"
git config --local user.email "[email protected]"
git config user.name
git config user.email

cat > greet.py <<'PY'
def greet(name):
    return f"Hello, {name}!"
PY

cat > test_greet.py <<'PY'
import unittest

from greet import greet


class GreetingTests(unittest.TestCase):
    def test_greet(self):
        self.assertEqual(greet("Ada"), "Hello, Ada!")
PY

git add greet.py test_greet.py
git commit -m "Add greeting and test"
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest -v

Launch Aider with both files in the same folder. If you pulled the smaller model, change :7b to :3b.

Ubuntu terminal
OLLAMA_API_BASE=http://127.0.0.1:11434 aider --model ollama_chat/qwen2.5-coder:7b greet.py test_greet.py

Ask Aider to trim surrounding whitespace from the name and add a test for a name with spaces. With auto-commits enabled by default, Aider should commit its changes. Enter /diff in Aider to see the latest diff. In a second terminal in the same folder, run git log -1 -p and PYTHONDONTWRITEBYTECODE=1 python3 -m unittest -v.

After reviewing, enter /undo in the Aider session before making further changes. Check git status --short and git log -1 --oneline to confirm you are back at the demo baseline.

Install Continue and use your local models

Continue release status. Continue joined Cursor in June 2026 and ended active maintenance of the Apache-2.0 project. Version 2.0.0 is the final stable release and 2.1.0 is a pre-release. The handoff removed cloud sign-in and anonymous telemetry. The Ollama setup below runs inference locally and needs no Continue Hub account. See the Cursor guide if you later want an actively updated proprietary IDE.

Step 3. Install the extension and configure YAML

The first command installs the stable extension in VSCodium through Open VSX. Use the second if you have Microsoft VS Code.

Ubuntu terminal
codium --install-extension Continue.continue
code --install-extension Continue.continue

For the optional 2.1.0 pre-release, use the matching command below instead. The extension details in your editor show which version is installed.

Ubuntu terminal
codium --install-extension Continue.continue --pre-release
code --install-extension Continue.continue --pre-release

Open Continue’s local configuration from its sidebar. On Ubuntu the file is ~/.continue/config.yaml. Back up an existing file before editing it. If it already has models, merge the new entries under models: and select the local configuration in Continue. The old config.json fields tabAutocompleteModel and embeddingsProvider have been superseded by YAML model roles.

Continue config.yaml
name: Local Ollama Coding
version: 1.0.0
schema: v1
models:
  - name: Qwen Coder Chat
    provider: ollama
    model: qwen2.5-coder:7b
    apiBase: http://127.0.0.1:11434
    roles: [chat, edit, apply]
  - name: Qwen Coder Autocomplete
    provider: ollama
    model: qwen2.5-coder:1.5b
    apiBase: http://127.0.0.1:11434
    roles: [autocomplete]

Change the chat model to qwen2.5-coder:3b if that is what you pulled. Check Continue’s User Settings to see which controls your build shows. The handoff builds removed anonymous telemetry. Keep the old allowAnonymousTelemetry key out of config.yaml. In Microsoft VS Code, you can turn off the editor’s own telemetry by adding this property to your existing user settings.json.

VS Code user settings.json property
"telemetry.telemetryLevel": "off"

Open the demo folder in the editor. In greet.py, add a scratch function named normalize_name with an indented blank line above a comment about trimming whitespace. Pause on the blank line and press Tab if a suitable suggestion appears. A fill-in-the-middle model uses code on both sides of the cursor, which helps its suggestion fit into existing code. Remove the scratch function after trying it.

Select the greeting function and ask Continue Chat to explain it. Then use Continue’s Edit action on the selection and ask it to trim surrounding whitespace from name. Review the proposed edit before accepting it. Run git diff to see the changes and rerun the tests. If the greeting behavior changes, add a test covering the new input before committing.

Connect to llama.cpp if you already run it

Step 4. Point chat and edits at port 9931

Start llama serve using the local setup in the Ubuntu llama.cpp guide and use the model alias you configured there, such as qwen-local. Keep the server bound to loopback. Aider’s OpenAI client needs a non-empty key even when server authentication is off. Use the dummy value below for an unauthenticated local server.

Ubuntu terminal
OPENAI_API_KEY=local OPENAI_API_BASE=http://127.0.0.1:9931/v1 aider --model openai/qwen-local

For Continue, add the following entry to models: and select it for chat and edits. The native provider uses the server root. Keep the Ollama autocomplete entry if you want Tab suggestions.

Continue config.yaml model entry
  - name: Local llama.cpp Chat
    provider: llama.cpp
    model: qwen-local
    apiBase: http://127.0.0.1:9931
    roles: [chat, edit, apply]

Fix common setup problems

Aider is missing or installation selects Python 3.13 or 3.14

Repeat the install with --python python3.12 and run uv tool list to see whether Aider is installed. Run uv tool update-shell, reopen the terminal, and check command -v aider. Aider uses the Python runtime in its own tool environment.

Ollama refuses a request or needs more memory

Check the exact model tag with ollama list and verify the service at http://127.0.0.1:11434/api/tags. If Continue reports that the model requires more system memory, try adding the following under the affected model entry. If it still cannot load, switch chat to the 3B tag and run one client at a time. For acceleration and driver checks, see the CUDA and ROCm guide.

Continue config.yaml model settings
    defaultCompletionOptions:
      contextLength: 4096

Aider drops context or struggles to apply an edit

Aider normally asks Ollama for enough context to fit its prompt, including the repo map, plus room for a reply. A fixed num_ctx can help control memory use or diagnose truncation. For a small repo, try the following in .aider.model.settings.yml. The name must match the launch model exactly, including the ollama_chat/ prefix. Increase the limit only if the machine has room, or give the model fewer files and a smaller task.

.aider.model.settings.yml
- name: ollama_chat/qwen2.5-coder:7b
  extra_params:
    num_ctx: 8192

If the model keeps returning edits Aider cannot apply, try adding --edit-format whole to the launch command for small files. For tougher tasks, use a more capable model or a higher-quality quantization if RAM allows. The DeepSeek guide covers another local model family.

Tab suggestions are missing or competing

Check that Continue’s Tab Autocomplete is enabled and its autocomplete selector uses the 1.5B model. Set this property in VS Code or VSCodium, and disable competing inline completion extensions such as Copilot in this workspace.

Editor settings.json property
"editor.inlineSuggest.enabled": true

Update or remove Aider and Continue

Update your tools

Ubuntu terminal
uv tool upgrade aider-chat

For Continue, open the extension details and choose Update if your registry offers one. The original project ended active maintenance.

Remove the tools

Run the Aider command and the one editor command that matches your installation.

Ubuntu terminal
uv tool uninstall aider-chat
codium --uninstall-extension Continue.continue
code --uninstall-extension Continue.continue

To clear local configuration or history too, back up and review ~/.continue/ first. In the project and home directories, review individual items such as .aider.model.settings.yml, .aider.input.history, .aider.chat.history.md, and the .aider.tags.cache.v* cache directories before removing them. The uninstall commands leave your Git repository and Ollama downloads in place.

Frequently asked questions

Do Aider and Continue download their own copies of the model?

No. When both use the same model tag on the same Ollama server, they share its on-disk copy. The smaller autocomplete model is a separate download.

Can I use Aider and Continue without a GPU?

Yes. On a CPU-only laptop with 8 GB of RAM, start with the 3B chat model and the 1.5B autocomplete model. Run one client at a time if both models put pressure on memory.

Can I use this setup without signing in?

Yes. The Continue handoff builds and Aider can send requests to your local Ollama server without a cloud account. Download the extension, tools, and models before working offline.

Helpful Resources

r/aider

Compare local models and ask about Aider workflows.

Aider’s Ollama documentation

Look up model settings and context limits.

Continue YAML reference

Look up providers, roles, and completion settings.