Home / use case

Aider + qwen2.5-coder:14b as a local Claude Code alternative

At a glance
Hardware
Ubuntu 24.04, Ryzen 9 9900X, 64 GB RAM, RTX 5060 Ti 16 GB
Models & engines
Ollama in a container (nerdctl compose) with CUDA and flash attention
qwen2.5-coder:14b, preloaded with a 3-hour keep-alive
Key gotcha
Out-of-range input was reported as 'already taken' even though the prompt asked for validation

What they built

The author uses Claude Code and wanted to know what the self-hosted version feels like: no API, no subscription, code that never leaves the machine, and no dependence on a provider's prices or survival.

He paired Aider (a CLI that reads and edits project files) with a local coder model and recorded building a terminal tic-tac-toe game.

Setup

  • Ubuntu 24.04, Ryzen 9 9900X, 64 GB RAM, RTX 5060 Ti 16 GB
  • Ollama in a container (nerdctl compose) with CUDA and flash attention
  • qwen2.5-coder:14b, preloaded with a 3-hour keep-alive
  • Aider v0.86.2 in a Python 3.13.9 virtualenv

Results & numbers

  • The core game logic was correct on the first pass
  • Input validation and unit tests needed several rounds of prompting

Gotchas

  • Out-of-range input was reported as 'already taken' even though the prompt asked for validation
  • Generated unit tests had a bug
  • Sometimes it's faster to edit the file yourself than keep prompting
“Sometimes the most efficient path with AI coding tools is knowing when to stop prompting and start typing”— mrmcmuffinz.dev

Do it yourself

  1. Run Ollama with GPU access and pull qwen2.5-coder:14b
  2. Preload the model with a long keep_alive so it stays warm
  3. Install Aider and point it at the local Ollama endpoint
  4. Write a detailed prompt (features, validation, tests) and start in ask mode
  5. Review and test everything it writes
curl http://localhost:11434/api/generate -d '{"model":"qwen2.5-coder:14b","keep_alive":"3h"}'
Source: mrmcmuffinz.dev · Added 2026-10-18. This write-up summarizes the original source; see it for full details.

Similar setups

Cutting a local Qwen coding agent's wait on a 16GB Mac with a memory hook

A developer running a coding agent on qwen3.5:9b through Ollama replaced its always-loaded memory index with a hook that attaches only relevant memory lines, and cut median answer time from 90.4s to 56.4s.

DEV Community (JustJinoIT) · 2026-12-02

Getting OpenCode to work with a local Ollama model by fixing the 4,096-token context

OpenCode on a local Ollama model ignored files, invented tasks or looped, because each ~23k-token request was silently cut to fit Ollama's default 4,096-token context on a 16 GB GPU.

DEV Community (Davidrs) · 2026-11-27

Testing a reasoning-effort fix on a local Qwen 27B for build-fix tasks

A developer ran a pre-registered overnight test on a local Qwen3.8 27B in Ollama to see if dropping a hidden reasoning-effort paragraph from the prompt helps it patch failing builds; the run was valid but scored 4/10 against a 5/10 bar.

DEV Community (hexisteme) · 2026-11-25

PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU

WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.

WiseProbe Blog · 2026-11-25