Best Open-Weight AI Models for Coding in 2026
The open-weight coding model market exploded in August 2026: DeepSeek V4 Pro went official, Zhipu shipped GLM-5.3 and its Flash sibling, Alibaba released the Qwen3.8 open family, and Tencent open-sourced Hy4 preview — all within four weeks. This page ranks the best open-weight AI models for coding in 2026 by the evidence that actually exists: published coding benchmarks, context windows, per-token cost, deployment practicality, and license terms. It is designed to be updated as new weights and benchmarks land — the best answer here changes monthly.
Ranking snapshot — August 30, 2026
1. DeepSeek V4 Pro (top published coding performance, MIT) · 2. GLM-5.3-Flash (best capability-per-dollar, MIT) · 3. Tencent Hy4 preview (most capable spec, thinnest evidence, Apache-2.0) · 4. Qwen3.8-Flash-Next (most efficient to serve; trails GLM on shared coding suites) · 5. Qwen3.8-2.4T-A95B (max-scale open option). All benchmarks vendor-reported unless noted.
How We Rank
- Coding evidence: published coding benchmarks (Terminal-Bench, DeepSWE, NL2Repo, vendor Code Benches) weigh most — but only vendor-reported data exists, so we weight whether a vendor published numbers at all
- Context window: 1M-class windows matter for whole-repo work; native (not extended) specs score higher
- Cost: API list prices and self-hosting footprint (active parameters, FP8 size)
- Deployment: official engine support (SGLang, vLLM), quantization tooling, finetuning paths
- License: MIT and Apache-2.0 both qualify as open-weight; MIT is the more permissive of the two. Qwen3.8-Flash-Next's card lists the Qwen Community License v1.0, so check per-model terms.
The Ranking at a Glance
| # | Model | Params (total/active) | Context | Published coding evidence | License | Best for |
|---|---|---|---|---|---|---|
| 1 | DeepSeek V4 Pro | 1.6T / — | 1M | TB2.1 87.9 · DeepSWE 62.7 | MIT | Top open coding performance, self-host |
| 2 | GLM-5.3-Flash | 320B / 18B | 1M (128K out) | TB2.1 84.3 · DeepSWE 63.4 · NL2Repo 56.3 | MIT | Capability per dollar, API + self-host |
| 3 | Hy4 preview | 770B / 49B | 1M+ | Blind expert eval 2.99/4 (no numeric scores) | Apache-2.0 | Most capable-spec Apache-2.0 model |
| 4 | Qwen3.8-Flash-Next | 125B / 6B | 262K → 1M | DeepSWE 58.7 · SWE-bench Pro 62.5 · LiveCodeBench v6 91.9 | Qwen Community v1.0 (card) | Cheapest self-host footprint |
| 5 | Qwen3.8-2.4T-A95B | 2.4T / 95B | — | Not detailed in repo | Apache-2.0 | Max-scale open experimentation |
#1DeepSeek V4 Pro — Best Published Coding Performance
DeepSeek's official release (August 13, 2026, V4-Pro-0813) is the only open model this month with frontier-adjacent published numbers across the hardest suites: Terminal-Bench 2.1 87.9, DeepSWE v1.1 62.7, CyberGym 83.3 — per DeepSeek's published evaluations (vendor-reported; GPT-5.6 Sol still leads some suites per the same table). It pairs a 1M-token context with MIT weights and official SGLang/vLLM deployment. The catch is pricing: the August 16 schedule raised output to $3.96/M peak / $1.98/M off-peak (from $0.87), so it is no longer the value pick it was. Full DeepSeek V4 Pro review →
Best for: teams that want the best-documented open coding performance and can self-host or shift to off-peak API hours.
#2GLM-5.3-Flash — Best Capability-Per-Dollar
Zhipu's Flash-tier release (August 26) delivers near-flagship agentic coding at a tenth of flagship pricing: Terminal-Bench 2.1 84.3, DeepSWE 63.4, NL2Repo-Bench 56.3 (vendor-reported), a native 1M context, MIT weights (~328GB FP8), and API pricing of $0.15/$0.50 per million tokens — $0.075/$0.25 during the launch discount until September 9. It leads Zhipu's own tool-use leaderboards (Toolathlon-Verified 78.4) and runs on four official engines (SGLang, vLLM, TokenSpeed, KTransformers). Full GLM-5.3-Flash review → · Pricing analysis →
Best for: developers who want published coding numbers, a real 1M context, and the cheapest capable API — or MIT weights to self-host.
#3Tencent Hy4 Preview — Most Capable Spec, Thinnest Evidence
Tencent's first open flagship (August 28) is the scale play: 770B total / 49B active, 1M+ context, Apache-2.0 weights released at launch with official vLLM/SGLang images. Its evidence is a blind expert evaluation — 163 experts scored it 2.99/4 vs GLM-5.3's 2.92 on engineering tasks (vendor-run) — with no public numeric benchmark tables. Tencent's own repo flags an over-reasoning tendency. If you want the most capable-spec permissively-licensed model you can download today, this is it; if you want benchmark tables, they haven't been published. Full Hy4 preview review → · Hy4 vs GLM-5.3 →
Best for: self-hosting teams prioritizing scale and permissive licensing over published benchmark evidence.
#4Qwen3.8-Flash-Next — Most Efficient to Serve
Alibaba's Qwen4 experimental release (August 26) runs just ~6B active parameters with a 262K native context (extendable to 1M) and public weights (Qwen Community License v1.0 per the model card) — the cheapest open model of the group to serve, with a training-cost claim of ~1/9 of Qwen3.7-Plus that appears in third-party coverage of the release. Its official card publishes coding scores (DeepSWE 1.1 58.7, SWE-bench Pro 62.5, LiveCodeBench v6 91.9) that trail GLM-5.3-Flash on the suites both report (DeepSWE 63.4, NL2Repo 56.3 — vendor-reported), and the 51B N-gram embedding layer plus vision components inflate real memory. The hosted sibling Qwen3.8-Flash API is the production delivery form. Full Qwen3.8-Flash-Next review →
Best for: GPU-constrained self-hosters and researchers who value efficiency over published coding evidence.
#5Qwen3.8-2.4T-A95B — Max-Scale Open Option
Alibaba's open Qwen3.8 family (August 12) brought a Qwen-Max-class model to open release for the first time: Qwen3.8-2.4T-A95B (2.4T total / 95B active, Apache-2.0) plus Qwen3.8-27B (August 14). The repo defers detailed results to the model cards and serving examples use 262K contexts. At 2.4T parameters it is a serious infrastructure commitment — the choice for teams that specifically want maximum open scale. (Covered in our Qwen3.8 series review.)
Best for: labs and enterprises with multi-node GPU fleets exploring max-scale open models.
Also Tracking
- GLM-5.3 — the flagship (744B-class, per media) with the year's biggest published long-horizon coding jumps (TB3.0 4.6 → 28.3), but weights not yet confirmed released at the time of this audit (Z.ai's ~2-week timeline from the Aug 14 launch); it re-enters this ranking the day they drop. Review →
- Qwen3.8-27B — the small dense entry in the open family (Apache-2.0); promising for edge deployments once benchmarks publish
- Kimi K3 — posts strong DeepSWE numbers (67.5) on Zhipu's published table, but its open-weight status was not verified at capture time, so it is not ranked here
- GLM-5.2 — previous generation, MIT, still a solid budget self-host choice
Decision Guide
- Top published coding performance → DeepSeek V4 Pro (or closed frontier: GPT-5.6 vs Claude)
- Best value API with benchmarks → GLM-5.3-Flash, especially before September 9
- Apache-2.0 scale today → Hy4 preview
- Tiny serving footprint → Qwen3.8-Flash-Next (test your tasks first — its card trails GLM on shared coding suites)
- IDE/agent tooling, not raw models → see Best AI Coding Assistant 2026 (Claude Code, Cursor, Copilot, Windsurf) — this page covers models, that one covers tools
- Harness/runtime for open models → DeepSeek Harness review
How This Page Updates
This is a living ranking. It changes when: (1) GLM-5.3 weights release, (2) Hy4 publishes numeric benchmarks, (3) Qwen publishes coding scores for Flash-Next, (4) any leader changes pricing, or (5) independent verification (e.g., Artificial Analysis-style testing) lands for this cohort. We will revise the ranking — not just append news — on each of those events.
Final Verdict
In August 2026, open-weight coding finally became a real alternative to closed models: DeepSeek V4 Pro holds the best published numbers, GLM-5.3-Flash holds the best price-performance, Hy4 preview holds the best spec, and Qwen3.8-Flash-Next holds the best efficiency — with MIT, Apache-2.0, and Qwen Community licenses across the board. The rational pick is workload-dependent, and every benchmark is still vendor-reported, so the strongest move is the cheapest one: benchmark GLM-5.3-Flash and Hy4 preview on your own tasks now, while the free windows and discounts last, and let real evidence — not vendor tables — pick your winner.
Related: GLM-5.3-Flash vs Qwen3.8-Flash-Next · Hy4 vs GLM-5.3 · Best Long-Context Models 2026 · Best AI Coding Assistant 2026
FAQ
What is the best open-weight model for coding in 2026?
By published evidence (August 30, 2026): DeepSeek V4 Pro for top scores (TB2.1 87.9, vendor-reported); GLM-5.3-Flash for price-performance (TB2.1 84.3 at $0.15/$0.50).
Which open-weight model is best for self-hosting?
Qwen3.8-Flash-Next for footprint (~6B active); DeepSeek V4 Pro for documented performance; GLM-5.3-Flash for capability + MIT. Measure VRAM before choosing.
Is GLM-5.3 open weight?
Not yet (as of August 30, 2026) — weights pending safety hardening. GLM-5.3-Flash is open under MIT today.
What is the cheapest open-weight coding API?
GLM-5.3-Flash ($0.075/$0.25 during launch discount; $0.15/$0.50 list). Qwen3.8-Flash (≈$0.11/$0.38) is cheaper at list.
Which open-weight model has the best license?
MIT (DeepSeek V4 Pro, GLM-5.3-Flash) is the most permissive; Apache-2.0 (Hy4 preview; Qwen3.8-27B and 2.4T-A95B per the repo) adds an explicit patent grant and attribution requirements; Qwen3.8-Flash-Next's card lists the Qwen Community License v1.0 — verify per model.
Sources (accessed August 30, 2026): vendor official documentation and announcements — DeepSeek V4 Pro (DeepSeek published evaluations), Zhipu GLM-5.3-Flash (docs.bigmodel.cn, ModelScope), Tencent Hy4 preview (official newsroom, GitHub repo), Alibaba Qwen3.8 (model card, QwenLM/Qwen3.8 repo). All benchmarks vendor-reported and reproduced as published; ToolStep claims no laboratory test results. See our editorial policy.