Best open-weight models for coding and agents
Downloadable LLM weights for coding and agent work that you can self-host, fine-tune, or call through many API providers.
11 tools ranked · Editorial order · Last updated · How we rank
Some outbound links may be affiliate links: if you buy, we may earn a commission at no extra cost to you. Rankings are independent. Disclosure
How we compared
Methodology & evidence labels →Every pick below is judged on these 5 tasks. Under each verdict you'll see how the tool does on each task, how we know, the source, and the date we checked.
- 1
License
Can you use it commercially, and under what terms?
- 2
Size and hardware
Parameter count and what it takes to run.
- 3
Context window
Maximum input length published by the vendor.
- 4
Published benchmarks
Which public benchmarks the vendor or third parties report.
- 5
Where to get it
Weights on Hugging Face or similar, and hosted APIs.
- #1
The strongest open-weight coding model on published numbers: Moonshot's own table puts K3.1 Pro within a point of Claude Opus 5.5 on Terminal-Bench 4.0. The license only adds terms above $20M of model-as-a-service revenue or 100M monthly users, but at 2.8T parameters self-hosting means an 8-GPU B300-class node, so most teams will use the $2/$10 API.
Best for: Frontier-level coding agents on weights you control
Evidence by task (5/5 sourced)
- License Partly Kimi K3.1 Pro License: MIT-style rights to use, modify, sell and fine-tune. Model-as-a-service businesses with more than $20M revenue over 12 months need a separate agreement with Moonshot, and products with more than 100M monthly users or $20M monthly revenue must show "Kimi K3.1-Pro" in the UI. Internal use is exempt. · From docs · source · checked
- Size and hardware Partly A 2.8T-parameter MoE with 104B active per token (896 experts, 16 selected plus 2 shared), shipped as MXFP4 weights with MXFP8 activations from quantization-aware training. The vLLM baseline recipe is tensor parallel 8 on one B300 node, two GB300 trays or one MI355X node. · From docs · source · checked
- Context window Yes 1,048,576-token context. Takes text and image input (MoonViT-V2 vision encoder). · From docs · source · checked
- Published benchmarks Partly Vendor-reported with the Claude Code harness: Terminal-Bench 4.0 65.7 (Claude Opus 5.5 66.4, GPT-6 Astra 58.2 in the same table), DeepSWE v1.1 75.5, SWE Marathon v1.1 51.7. Not independently reproduced. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face (not gated) with vLLM, SGLang and TokenSpeed recipes. Hosted as kimi-k3.1-pro on the Kimi API and OpenRouter at $2/$10 per 1M input/output tokens. · From docs · source · checked
- #2
Reflection Beam
FreemiumThe most permissive frontier-scale option: Apache 2.0 weights, day-0 vLLM/SGLang support and 40+ hosting partners.
Best for: Shipping a self-hosted or fine-tuned model commercially
Evidence by task (5/5 sourced)
- License Yes Apache 2.0 (from the model card). · From docs · source · checked
- Size and hardware Yes A mixture-of-experts model: 501B total parameters, 23B active. · From docs · source · checked
- Context window Yes A 1M-token context window. · From docs · source · checked
- Published benchmarks Partly The model card reports vendor-run scores on DeepSWE v1.1 and SWE Bench Pro. These are not independently reproduced. · From docs · source · checked
- Where to get it Yes The weights are public on Hugging Face (not gated). · From docs · source · checked
- #3
DeepSeek-V4.1-Flash
FreeMIT weights plus a $0.15/$0.60 per M token API make it the default cheap model to A/B on your coding harness.
Best for: Low-cost coding and agent loops
Evidence by task (5/5 sourced)
- License Yes MIT (from the model card). · From docs · source · checked
- Size and hardware Partly About 763B parameters in total, from the Hugging Face API safetensors count. The active parameter count is not stated in the card section we read. · From docs · source · checked
- Context window Yes The recommended `context_window` is 1M tokens. · From docs · source · checked
- Published benchmarks Partly Vendor-reported: Terminal-Bench 4.0 42.3 and DeepSWE v1.1 77.0. These are not independently reproduced. · From docs · source · checked
- Where to get it Yes The weights are public on Hugging Face (not gated), and there are production serving libraries (deepseek-recipe). · From docs · source · checked
- #4
Step 5 Preview
FreeStrong open agent model with vision and 1M context; read StepFun's license before redistributing fine-tunes.
Best for: Agentic work with image input
Evidence by task (5/5 sourced)
- License Partly The StepFun Model License 1.0, a custom licence that grants royalty-free use and modification. Read it before shipping a product. · From docs · source · checked
- Size and hardware Yes 600B total parameters, 27B active. The card lists vLLM FP8 serving on one B300 node with 4 GPUs. · From docs · source · checked
- Context window Yes Up to 1M tokens of context. · From docs · source · checked
- Published benchmarks Partly The model card shows vendor-run results, including DeepSWE v1.1 with the SWE-agent harness. These are not independently reproduced. · From docs · source · checked
- Where to get it Yes FP8 and BF16 weights on Hugging Face and ModelScope, plus a StepFun API platform. · From docs · source · checked
- #5
Mistral Large 4
FreemiumMistral's ~1T open-weight model, strong on coding and security in its own benchmarks, under a modified MIT license that allows commercial use. Self-hosting needs an 8-GPU node and inference resellers need a separate deal, so the $0.70/$2.10 API is the easy path.
Best for: Coding agents and security work on your own infrastructure or a cheap API
Evidence by task (5/5 sourced)
- License Partly Mistral Ecosystem Open-Weight License, a modified MIT license for commercial and non-commercial use. Running a Model-as-a-Service business needs a separate commercial license from Mistral. · From docs · source · checked
- Size and hardware Partly About 1T total parameters, 49B active per token (52B including embeddings and output layers), with 128 routed experts. The card's vLLM recipe uses tensor parallel size 8, and Hugging Face's Inference Endpoints recipe runs the FP8 weights on 8x H200. An NVFP4 checkpoint for Blackwell GPUs cuts memory. · From docs · source · checked
- Context window Yes 1M-token context window. Takes text and image input, with text output. · From docs · source · checked
- Published benchmarks Partly Vendor-reported: 48% on the Artificial Analysis Coding Agent Index (about tied with GLM-5.3, with 47% fewer tokens per task) and 26 on AA Intelligence Index v5, which Mistral says is the highest among western open-weight models. Hugging Face says it ranked fifth among open-weight models on that index on Oct 29, 2026. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face (not gated) in FP8 and NVFP4, with vLLM, SGLang, transformers and llama.cpp support. It's also on the Mistral API as mistral-large-4 at $0.70 input / $2.10 output per 1M tokens. · From docs · source · checked
- #6
Ripple-65B Preview
FreeThe best open model you can realistically run on one machine: Apache 2.0, 65B dense, and Ricursive's numbers put it level with 500B-class open models on Terminal-Bench 2.1. It's a text-only preview with light post-training and vendor-run benchmarks, so test it on your own harness first.
Best for: Single-box coding agents with a fully permissive license
Evidence by task (5/5 sourced)
- License Yes Apache 2.0 (model card and Hugging Face metadata). · From docs · source · checked
- Size and hardware Yes 65B parameters, dense (about 64.8B by the Hugging Face safetensors count). The card says it fits on an NVIDIA DGX Spark with the NVFP4 checkpoint and reports 250 tok/s on 2x B200 at batch 8 in BF16. · From docs · source · checked
- Context window Yes Up to 1,048,576 tokens of context, per the model card. · From docs · source · checked
- Published benchmarks Partly Vendor-reported: Terminal-Bench 2.1 80.5, SWE-bench Verified 76.5, SWE-bench Pro v1.0 61.42. Its own table shows it behind Muse Spark Open on DeepSWE 1.1 (44.3 vs 60.0) and MCP Atlas (71.67 vs 89.2), and some comparison scores come from Ricursive's in-house eval flow. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face (not gated): BF16 and NVFP4 instruct, a BF16 base model and a DFlash2 draft model. On OpenRouter as ricursiveai/ripple-65b-preview at $0.20/$0.60 per 1M tokens with a 1,048,576-token context. · From docs · source · checked
- #7
Muse Spark Open
FreeMeta's natively multimodal 816B MoE with wide hosted access, held back by a license with limited commercial terms.
Best for: Hosted multimodal agents where the license fits
Evidence by task (4/5 sourced)
- License Partly The Muse Model License. Commercial use is allowed, but you must display "Built with Muse Spark Open", and model-as-a-service providers with more than $20M in revenue need a separate agreement with Meta. · From docs · source · checked
- Size and hardware Yes 816B total parameters, 42B active. · From docs · source · checked
- Context window Yes 1M tokens at inference. Inputs include text, images, video and audio. · From docs · source · checked
- Published benchmarks Unknown We could not read the gated model card benchmark section. · Not verified · checked
- Where to get it Partly Gated on Hugging Face: you must accept the licence before downloading. · From docs · source · checked
- #8
Recursive Flint
FreeThe pick for local coding on a laptop: Apache 2.0, ~2.5B active parameters per token and a ~22.6GB MLX INT4 build. Give it smaller, explicit tasks.
Best for: Offline coding on Apple Silicon or a single workstation
Evidence by task (5/5 sourced)
- License Yes Apache 2.0 (model card and Hugging Face metadata). · From docs · source · checked
- Size and hardware Yes About 39.8B total parameters (Hugging Face safetensors count) with ~2.5B active per token. The full download is about 80GB; Recursive reports 125+ tokens/s on an M4 Pro MacBook Pro with its rec engine. · From docs · source · checked
- Context window Yes The model card documents a 262,144-token context (prompt plus output). Recursive's launch post says up to 512K and recommends staying within 256K. · From docs · source · checked
- Published benchmarks Partly Vendor-reported: 54.9% Terminal-Bench 2.1, 89.7% SWE-bench Pro v2, 74.2% SWE-bench Verified. Not independently reproduced. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face (not gated); works with llama.cpp, Ollama, LM Studio, Unsloth, vLLM and SGLang. · From docs · source · checked
- #9
Ornith-1.5-122B
FreeA mid-size MIT-licensed coding and agent model with strong vendor scores; plan on a quantized build to fit the single-80GB-GPU setup the card describes.
Best for: Self-hosted coding agents on one big GPU
Evidence by task (5/5 sourced)
- License Yes MIT (model card and Hugging Face metadata). · From docs · source · checked
- Size and hardware Partly About 125B parameters in total (Hugging Face safetensors count), MoE. The card says it serves on a single 80GB GPU; full BF16 weights would not fit, so expect to use its FP8, GGUF or MLX builds. · From docs · source · checked
- Context window Yes 262,144 tokens natively; the card describes YaRN scaling to roughly 1M. · From docs · source · checked
- Published benchmarks Partly Vendor-reported 84.5 SWE-bench Verified and 81.2 Terminal-Bench 2.1, with anti-reward-hacking safeguards described. Not independently reproduced. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face, with vLLM and SGLang recipes and an Ollama build. · From docs · source · checked
- #10
Nanbeige4.3-33B
FreeA permissive dense 30B-class model for self-hosted coding agents, with a 512K context. Every benchmark is self-reported, so test it on your own harness.
Best for: Dense-model agent setups and post-training from a Base checkpoint
Evidence by task (5/5 sourced)
- License Yes Apache 2.0 (Hugging Face metadata), plus a Base checkpoint. · From docs · source · checked
- Size and hardware Partly About 33.1B parameters, dense (Hugging Face safetensors count); BF16 is ~66GB and the reference vLLM/SGLang commands use 4-way tensor parallelism. · From docs · source · checked
- Context window Yes Up to 524,288 tokens (512K), per the model card. · From docs · source · checked
- Published benchmarks Partly Self-reported: 80.9 Terminal-Bench 2.1, 65.5 DeepSWE, 60.3 SWE-Bench Pro (Qwen3.8-27B: 61.7), 23.8 Terminal-Bench 4.0. · From docs · source · checked
- Where to get it Yes Public weights on Hugging Face (not gated); Transformers loading needs trust_remote_code. · From docs · source · checked
- #11
Ling-3.1-flash
FreeMIT-licensed and long-context, but its 8x H200 reference setup puts it out of reach for most teams.
Best for: Long-context self-hosting on big GPU clusters
Evidence by task (5/5 sourced)
- License Yes MIT (from the model card). · From docs · source · checked
- Size and hardware Yes 560B total parameters, 25B active per token. · From docs · source · checked
- Context window Yes A 1M-token context window. · From docs · source · checked
- Published benchmarks Partly The Ling-3.1-flash-1019 update (Oct 27, 2026) reports 44 on the Artificial Analysis Intelligence Index v4.3.2 (up from 41), 29 on AA Index v5, AutomationBench-AA up from 62% to 68% and AA-Briefcase up from 1397 to 1524. These are vendor-reported numbers. · From docs · source · checked
- Where to get it Yes Public weights, with an SGLang day-0 Docker image and serving recipes. · From docs · source · checked