Nice To E-Meet You!



    What marketing services do you need for your project?

    Best Open-Weight AI Models For Coding In 2027

    Last updated: December 2, 2026

    The best open-weight AI models for coding right now are Moonshot AI’s Kimi K3.1 Pro, Amazon Ergo and DeepSeek V4.1 Flash. Kimi K3.1 Pro posts the highest agentic coding scores of any open model, Ergo is the strongest US-built option and the fastest on managed hardware, and DeepSeek V4.1 Flash gives the most capability per dollar under an MIT license.

    Below are the ten open models worth testing for code generation, repository work and coding agents, with the licenses and hardware each one needs. All benchmark figures come from vendor model cards or launch reports, so treat them as a starting point and test on your own codebase.

    Open-Weight Coding Models At A Glance

    Model Developer Size (total / active) License Best For
    Kimi K3.1 Pro Moonshot AI (China) 2.8T / 104B Custom Kimi license Highest open agentic coding scores
    Amazon Ergo Amazon (US) 1.1T / 55B Amazon Ergo Open-Weights License US-built agentic coding, fast on Bedrock
    DeepSeek V4.1 Flash DeepSeek (China) 552B / 8B to 16B MIT Best value, freest license
    GLM-5.3 Z.ai (China) Large MoE Custom, near-permissive Terminal and agent tasks
    Qwen3.8 Alibaba (China) 27B to 2.4T Apache 2.0 (27B) Range of sizes, multilingual code
    Inkling 2 Small Thinking Machines Lab (US) Small MoE Open weights Strongest small US model
    Mistral Large 4 Mistral AI (France) 1.05T / 52B Mistral license European data residency
    MiniMax M3 MiniMax (China) 428B / 23B Custom, notify for commercial use Agent workloads at moderate cost
    Muse Spark Open Meta (US) 816B / 42B Muse Model License Multimodal input, US origin
    gpt-oss-120b OpenAI (US) 117B / 5.1B Apache 2.0 One-GPU deployment, very fast hosts

    Best Open-Weight Coding Model Options In 2027

    1. Kimi K3.1 Pro: Top Open Scores on DeepSWE and Terminal-Bench 4.0

    Moonshot AI’s Kimi K3.1 Pro is the largest open checkpoint available, at 2.8 trillion total parameters with 104 billion active per token and a context window of just over one million tokens. In Amazon’s own launch comparison it scored 77.9 on DeepSWE and 63.3 on Terminal-Bench 4.0, ahead of every other open model in that table, including Ergo.

    The trade-off is size and license. The weights went up on Hugging Face in November 2026 under a custom Kimi license that adds conditions for large service operators, and self-hosting a 2.8T model is a multi-node job. Most teams will reach it through a hosted API.

    Best for: teams that want the strongest open model available and can either pay for hosted inference or run multi-node clusters. Watch for: per-token output prices around $10 per million on major hosts, which add up quickly on agents that write long diffs, and a license that needs a read-through if you plan to resell access.

    2. Amazon Ergo: 1.1T Parameters, 55B Active, Built for Coding Agents

    Amazon released Ergo on December 1, 2026. It is a mixture-of-experts model with 1.1 trillion parameters, 55 billion active per token, a one-million-token context and 128,000 tokens of output. Amazon reports 74.2 on DeepSWE and 31.5 on FrontierSWE v2, the best FrontierSWE score among open models in its table.

    Ergo stands out on speed and price: more than 400 output tokens per second on Bedrock at $1 per million input tokens and $3 per million output tokens, with a 2,200 tokens per second Turbo mode in preview. It is text only and always reasons, so pair it with a test-and-retry agent loop. See our full Ergo explainer for setup details.

    Best for: AWS customers and anyone who needs a US-built model with a clear commercial license. Watch for: the always-on reasoning, which means you must set generous output limits (at least 8,192 tokens), and the lack of image input in version 1.0. Amazon also notes that first-attempt accuracy trails the strongest closed models, so budget for retries.

    3. DeepSeek V4.1 Flash: MIT License, Low Active Compute, Strong DeepSWE

    DeepSeek’s October 2026 update to V4.1 Flash uses a 552B backbone that activates about 8 billion parameters during prefill and 16 billion during decoding. Third-party coding rankings put it at 77.0 on DeepSWE and 42.3 on Terminal-Bench 4.0, and hosted pricing sits around $0.30 per million input tokens.

    Its MIT license is the least restrictive of any frontier-class open model, with no revenue thresholds, which makes it the default pick for companies that want to fine-tune and resell without legal review.

    Best for: cost-sensitive agents, high-volume batch jobs and companies that want the simplest possible license. Watch for: the fact that its scores come from third-party rankings rather than a side-by-side vendor table, and that some customers restrict Chinese-origin models even when the weights run on your own servers.

    4. GLM-5.3: Agentic Coding Model With a Near-Permissive License

    Z.ai released GLM-5.3 and the smaller GLM-5.3-Flash in August 2026. Z.ai calls it its most capable open model for coding, and on Amazon’s comparison it scored 69.5 on DeepSWE and 30.2 on FrontierSWE v2, close to Ergo on the harder FrontierSWE test.

    The license only adds a clause for service operators above $10 billion in revenue, so it is effectively open for almost everyone. GLM-5.3-Flash is the version to test on a multi-GPU server.

    Best for: agentic coding where you want near-Ergo quality with almost no license friction, and for teams that like having a smaller Flash model from the same family for cheaper tasks. Watch for: thinner Western documentation and fewer managed hosts than DeepSeek or Qwen.

    5. Qwen3.8: Sizes From 27B Dense to 2.4T, Apache 2.0 at the Small End

    Alibaba’s Qwen3.8 family, released in August 2026, spans a 27B dense model, the Flash-Next line and a 2.4 trillion parameter flagship with 95 billion active. The 27B model is Apache 2.0 and fits a single high-memory GPU, which makes it one of the most practical local coding models.

    The larger Qwen models carry a revenue-share requirement for providers above $50 million a year, so check the license before you host the flagship as a service.

    Best for: teams that want one model family that scales from a laptop-friendly 27B to a frontier flagship, and for multilingual codebases with comments and docs in several languages. Watch for: the different license terms between the small and large models, which are easy to mix up in procurement.

    6. Inkling 2 Small: Highest-Scoring US Open Model on the AA Index

    Thinking Machines Lab shipped its first open-weight model, Inkling, under Apache 2.0 in July 2026. Inkling 2 Small has since become the highest-scoring US open-weight model on the Artificial Analysis Intelligence Index, and Amazon’s table lists it at 67.3 on DeepSWE.

    It trails on terminal-heavy work (12.9 on Terminal-Bench 4.0), so it suits code generation and review more than long autonomous shell sessions.

    Best for: code review, generation and reasoning tasks on modest hardware, especially where a US vendor is required. Watch for: weaker long terminal sessions, so pair it with a stronger model for autonomous agents.

    7. Mistral Large 4: The Leading European Open Model for Code

    Mistral Large 4 is roughly a 1.05 trillion parameter MoE with about 52 billion active, and its weights were scheduled for release at the end of October 2026. It is the highest-scoring European open model on the Artificial Analysis index.

    Its coding scores sit below the Chinese and US leaders (59.1 on DeepSWE in Amazon’s table), but EU-based teams that need a European vendor and data residency often start here.

    Best for: European companies with data residency rules and teams already using Mistral’s hosted API. Watch for: a gap of roughly 15 points to the leaders on DeepSWE, which shows up on complex multi-file changes.

    8. MiniMax M3: Mid-Size MoE Tuned for Agent Workloads

    MiniMax M3 activates about 23 billion of its roughly 428 billion parameters, which keeps serving costs down while staying competitive on agent tasks. Independent reviewers group it with Nemotron 3 Ultra as a credible agent model that fewer teams have deployed so far.

    Commercial use is allowed after you notify MiniMax, which is a small extra step compared with MIT or Apache models.

    Best for: agent workloads where cost per call matters more than top accuracy. Watch for: the commercial notification step and limited independent coding benchmarks so far.

    9. Muse Spark Open: Meta’s 816B Open Model With Multimodal Input

    Meta returned to large open releases with Muse Spark Open on October 15, 2026: 816 billion parameters, 42 billion active, a one-million-token context, and text, image, video and audio input. That multimodal input is something Ergo and most coding-focused rivals lack.

    For pure agentic coding it trails, at 56.6 on DeepSWE and 5.1 on Terminal-Bench 4.0 in Amazon’s comparison, so treat it as a generalist that can also read screenshots and UI mockups.

    Best for: teams that want one US-built open model for text, screenshots, UI mockups and audio, such as design-to-code prototypes. Watch for: the 700 GB plus memory needed to self-host it and its weak Terminal-Bench result.

    10. gpt-oss-120b: Apache 2.0, One 80GB GPU, Over 1,700 Tokens per Second on Cerebras

    OpenAI’s gpt-oss-120b dates from August 2025, but it remains the easiest capable model to deploy. It has 117 billion parameters with 5.1 billion active, fits a single 80GB GPU, and is supported by nearly every inference host. Artificial Analysis has measured it at over 1,700 output tokens per second on Cerebras.

    It is well behind 2026 models on hard coding benchmarks, so use it for fast completions, tool calls and internal assistants rather than long autonomous tasks.

    Best for: quick completions, internal chat assistants and tool-calling services that need to be fast and cheap. Watch for: its age; for hard repository work, it is clearly behind every 2026 model above it.

    How To Choose An Open-Weight Coding Model

    Will you self-host or call an API?

    Models above roughly 500 billion parameters need multi-GPU nodes. Ergo’s smallest checkpoint is 626 GB, and Kimi K3.1 Pro is larger still. If you do not run GPU clusters, compare hosted prices instead, or look at our list of open models that run on one GPU.

    What does the license allow?

    MIT and Apache 2.0 models carry no revenue limits. Ergo, Kimi, Qwen’s large models, MiniMax and Muse all add conditions, mostly aimed at companies that resell the model as a hosted service. Our license comparison covers each one.

    Which benchmark matches your work?

    DeepSWE and FrontierSWE measure repository-level bug fixing. Terminal-Bench measures long shell sessions. A model that leads one can trail on the other, as Ergo does against Kimi on Terminal-Bench.

    Does origin matter for your buyers?

    Some regulated and public-sector buyers ask for US or European models. Ergo, Inkling, Muse Spark Open and gpt-oss are US-built; Mistral is European.

    Open-Weight Coding Benchmarks Compared

    Amazon published the most complete side-by-side table of open coding models at the Ergo launch. These are vendor-run numbers, so treat small gaps as noise and large gaps as signal.

    Model DeepSWE FrontierSWE v2 Terminal-Bench 4.0
    Kimi K3.1 Pro 77.9 29.3 63.3
    Amazon Ergo 74.2 31.5 46.2
    GLM-5.3 69.5 30.2 36.9
    Inkling 2 Small 67.3 Not reported 12.9
    Mistral Large 4 59.1 Not reported Not reported
    Muse Spark Open 56.6 Not reported 5.1

    DeepSWE tests whether a model can fix real issues in real repositories. FrontierSWE v2 uses harder, longer tasks, which is why every score there is low. Terminal-Bench measures how well a model works through a shell over many steps. If your agents mostly edit code and run tests, weight DeepSWE and FrontierSWE. If they spend long sessions in terminals, provisioning environments and debugging builds, weight Terminal-Bench.

    For context, the same table lists Claude Opus 5.5 at 71.3 on DeepSWE and 62.3 on FrontierSWE v2, and GPT-6 Astra at 71.2 and 65.5. Open models now match or beat the closed leaders on routine repository fixes, but still trail by a wide margin on the hardest tasks. Our open vs closed comparison goes deeper on that split.

    What It Costs To Run These Models

    Hosted prices vary by provider and change often, but the spread is wide enough to shape your choice. DeepSeek V4.1 Flash sits around $0.30 per million input tokens and $1.20 per million output tokens. Amazon Ergo is $1 and $3 on Bedrock, with cached input at $0.03 per million tokens. Kimi K3.1 Pro lists around $2 and $10 on major hosts.

    Coding agents are output heavy and reread the same files many times, so two numbers matter most: the output price and whether cached input is discounted. A team running 500 million output tokens a month would pay roughly $600 on DeepSeek V4.1 Flash, $1,500 on Ergo and $5,000 on Kimi K3.1 Pro at these list prices, before input costs.

    Self-hosting changes the math. Once you own or rent the GPUs, the marginal token is almost free, but the fixed cost of a multi-GPU node is high. Our LLM hosting cost guide and Ergo Bedrock vs self-hosting breakdown show where the break-even point usually falls.

    How We Evaluated

    We compared each model’s published model card, license text and vendor benchmark tables, and cross-checked scores against independent leaderboards from Artificial Analysis and llm-stats.com where available. Rankings weight agentic coding results most heavily, followed by license freedom, deployment cost and speed. Read more about our research and ranking process.

    Frequently Asked Questions

    What is the best open-weight model for coding in 2027?

    Kimi K3.1 Pro has the highest open-model scores on DeepSWE and Terminal-Bench 4.0. Amazon Ergo is the strongest US-built option and DeepSeek V4.1 Flash offers the best value under an MIT license.

    Is Amazon Ergo better than Kimi K3.1 Pro?

    Not on most coding benchmarks. Kimi leads on DeepSWE (77.9 vs 74.2) and Terminal-Bench 4.0 (63.3 vs 46.2), while Ergo leads on FrontierSWE v2 (31.5 vs 29.3) and is faster and cheaper on output through Bedrock.

    Can I run an open coding model on one GPU?

    Yes, but not the largest ones. gpt-oss-120b fits one 80GB GPU, and Qwen3.8-27B and Gemma 4 run on a single high-memory card. Trillion-parameter models such as Ergo need a multi-GPU node.

    Are open-weight models free for commercial use?

    Most allow commercial use, but terms differ. DeepSeek is MIT and gpt-oss is Apache 2.0 with no limits, while Ergo, Kimi and Qwen’s largest models add conditions for companies that sell hosted access above set revenue levels.

    Conclusion

    For the strongest open coding results, start with Kimi K3.1 Pro. If you need a US-built model with fast, cheap managed hosting, test Amazon Ergo on Bedrock. If license freedom and cost matter most, DeepSeek V4.1 Flash is the safest default. Run each candidate against a sample of your own tickets before you commit, because benchmark leads of a few points rarely survive contact with a real codebase.

      Once a week you will get the latest articles delivered right to your inbox