cd /news/artificial-intelligence/ai-pair-programming-in-your-terminal… · home topics artificial-intelligence article
[ARTICLE · art-27296] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

AI Pair Programming in Your Terminal with Aider and Ollama

A developer combined Aider, an AI pair programming tool, with Ollama running local models like Qwen3 Coder 30B to create a fully private coding assistant that works in the terminal. The setup reads files, understands git repos, makes real edits, and commits changes with sensible messages, all without sending code to the cloud. On an RTX 4090, the Qwen3 Coder 30B at Q4 achieves 15-20 tok/s for real-time suggestions.

read1 min publishedJun 14, 2026

Want an AI coding assistant that works on YOUR codebase, respects YOUR git history, and doesn't send your code to the cloud? Aider + Ollama gives you exactly that.

Aider is an AI pair programming tool that works directly in your terminal. It sees your files, understands your git repo, and makes real edits to your code. Paired with Ollama running a local model, you get a fully private coding assistant.

pip install aider-chat

ollama pull qwen3-coder:30b-a3b

Set Aider to use your local Ollama model:

export OLLAMA_CONTEXT_LENGTH=8192

aider --model ollama_chat/qwen3-coder:30b-a3b --editor

For persistent config, create .env

in your project:

OLLAMA_CONTEXT_LENGTH=8192
AIDER_MODEL=ollama_chat/qwen3-coder:30b-a3b
cd my-project
aider --model ollama_chat/qwen3-coder:30b-a3b

Aider reads your files, makes changes, and commits them with sensible messages. You approve each change before it's applied.

On a RTX 4090 with Qwen3 Coder 30B at Q4: ~15-20 tok/s, enough for real-time code suggestions.

Qwen2.5 Coder 14B runs faster (~35 tok/s) and fits on a 12GB GPU, great for smaller projects.

Originally published on everylocalai.com

── more in #artificial-intelligence 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ai-pair-programming-…] indexed:0 read:1min 2026-06-14 ·