Run Coding Agents on Local AI — Zero Cloud, Full Control

A developer has created a guide for running coding agents like Codex CLI, Claude Code, and Cursor entirely on local hardware using Ollama, eliminating the need to send proprietary code to third-party servers. The setup, tested on an Apple M4 Pro with 48GB unified memory, recommends the qwen3-coder:30b model, which uses a Mixture-of-Experts architecture with only 3.3B active parameters per token and a 256K context window. While frontier models still outperform local models on complex reasoning, the developer found that a well-chosen local model handles 80% of daily coding tasks—including autocomplete, refactors, and test generation—without data leaving the network.