coding

Best local LLMs for coding

Local coding model picks for repository work, debugging, agents and private software engineering with LM Studio or a local runtime.

Quick answer

For coding, prioritize coding score, reasoning score and runtime fit. A slightly smaller model that stays responsive is usually better than a larger model that starves memory.

Recommended starting points

#1

Kimi K2 Instruct (1T MoE)

1T (32B active, 384 experts) · 1024GB RAM · Q4_K_M · 600GB

Moonshot AI trillion-parameter MoE flagship. 32B active params per token with 384 experts. Matches or beats GPT-4 Turbo on MMLU, GSM8K, HumanEval. Agentic & tool-use specialist. Server-grade only. Modified MIT.

chatcodereasoningqualitygeneral
#2

MiniMax M3 (428B/23B active)

428B (23B active) · 2048GB RAM · BF16 / custom runtime · 1700GB

MiniMax native multimodal MoE with 1M context and MiniMax Sparse Attention. Around 428B parameters with 23B active. Built for long-context coding, cowork and agentic workflows, with local deployment via SGLang, vLLM or Transformers. Server-grade only.

chatcodereasoningagenticlong-contextmultimodal
#3

Kimi K2.7 Code (1T MoE)

1T (32B active) · 1024GB RAM · BF16 / compressed-tensors · 595GB

Moonshot AI coding-focused agentic Kimi built on K2.6. 1T MoE with 32B active parameters, 256K context, MoonViT vision encoder and stronger long-horizon coding while reducing thinking-token usage by roughly 30% vs K2.6. Modified MIT. Server-grade only.

codereasoningagenticmultimodalquality
#4

Qwen 3.5 MoE (397B/17B active)

397B (17B active) · 256GB RAM · Q4_K_M · 200GB

Flagship open-source Qwen 3.5. Only 17B active params despite 397B total — world-class quality at MoE efficiency. Matches GPT-4o on major benchmarks. Requires multi-GPU or server-grade hardware. Apache 2.0.

chatcodereasoningquality
#5

Kimi K2 Thinking (1T MoE)

1T (32B active, 384 experts) · 1024GB RAM · Q4_K_M · 600GB

Moonshot AI K2 with extended reasoning mode. Chain-of-thought traces before final answer. Top-5 on GPQA, AIME, SWE-bench. Requires datacenter-grade hardware or distributed inference. Modified MIT.

reasoningcodequality
#6

DeepSeek V4 Pro (1.6T MoE)

1.6T (49B active) · 1024GB RAM · FP4/FP8 · 850GB

DeepSeek frontier MoE with 1M-token context, hybrid compressed attention and top-tier coding/reasoning. MIT licensed. Datacenter-grade only.

chatcodereasoningqualityagenticlong-context
#7

GLM-5.1

754B MoE · 640GB RAM · Q4_K_M · 430GB

Z.ai next-generation flagship for agentic engineering. Stronger coding, long-horizon tool use, SWE-Bench Pro, Terminal-Bench and repo generation. MIT licensed.

chatcodereasoningqualityagenticgeneral
#8

GLM-5.2 (744B MoE)

744B (40B active) · 256GB RAM · UD-IQ2_M · 239GB

Z.ai flagship open model for long-horizon coding, reasoning and agentic work. 744B total, 40B active, 1M-token context, MIT license. Unsloth Dynamic GGUF makes it technically local, but it needs workstation/server-class memory: ~245GB total memory for 2-bit and 372GB+ for 4-bit.

chatcodereasoningqualityagenticlong-context
#9

DeepSeek V3.2 Exp (671B MoE)

671B (37B active) · 512GB RAM · Q4_K_M · 380GB

Experimental V3.2 with DeepSeek Sparse Attention (DSA) — halves inference cost vs V3.1 on long context while keeping quality. 128K context, improved coding & tool-use. MIT licensed. Server-grade.

chatcodereasoningquality

Keep exploring

Source checks

These guides use LocalClaw's internal model database for scoring, then avoid hard claims beyond public hardware and model availability signals checked before publishing.