# Local, private coding agent

> Use an AI coding agent on code that must never leave your machine.

- Category: Coding agents · Difficulty: Intermediate
- Estimated monthly cost: $0/mo. Software is free. You need hardware: the qwen3-coder:30b download is 19 GB, so plan for a machine with enough RAM/VRAM to hold it.
- Model: Qwen3-Coder 30B via Ollama (qwen3-coder:30b)
- MCP servers: none
- Last checked: 2026-10-22 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/local-private-coding/ · JSON: https://getagentloadout.com/data/loadouts/local-private-coding.json

## Tools
- [Ollama](https://ollama.com): Run open models locally. Has one-command launchers for Claude Code and OpenCode. New: Recursive Flint (ollama run flint). Pricing: Local $0/mo (Free to run on your own hardware). Source: https://ollama.com/library/qwen3-coder
- [OpenCode](https://opencode.ai): Open-source coding agent for the terminal and desktop. Bring your own key or run local models; /goal (v2.2.1) keeps a session working until a reviewer confirms the objective is met. Pricing: Open source $0/mo (Pay only for model usage). Source: https://opencode.ai/changelog

## Starter prompt

```
You are running fully offline. Read the repository structure first and summarize it in 10 lines. Then <task>. Make small edits, run the tests after each change, and stop to ask if a change touches more than 3 files.
```

## Config (terminal)

```bash
ollama pull qwen3-coder:30b
# one-command launcher from the Ollama library page:
ollama launch opencode --model qwen3-coder
```

## Setup steps
1. Install Ollama and pull qwen3-coder:30b.
2. Install OpenCode, or use the ollama launch command.
3. Run the starter prompt inside your repo.
4. Keep tasks small; local models do best with tight scopes.
5. New option (Oct 21, 2026): Recursive Flint, a 40B MoE coding model with 2.5B active parameters (Apache 2.0). Try `ollama launch opencode --model flint` and compare it with Qwen3-Coder on your repo.

## Why this works
Nothing is sent to a cloud API, and the 256K context window is large enough for repo-scale work.

## Watch out
Local models are slower and weaker than frontier cloud models on hard tasks. Ollama also lists a cloud variant (480b-cloud); don't use it if privacy is the point.

## Unverified
- Flint's download size and RAM needs weren't on the pages we read, and we haven't tested it yet; Recursive's speed and benchmark figures are its own.

## Related loadouts
- [AI QA agent: plan, write and self-heal end-to-end tests](https://getagentloadout.com/loadouts/qa-test-agents/)
- [Assign GitHub issues to an agent](https://getagentloadout.com/loadouts/issue-to-pr-copilot/)
- [Cheapest paid IDE agent](https://getagentloadout.com/loadouts/budget-ide-agent/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
