AI SpaceUpdated 14 min read

The Best Open-Source Coding Models in 2026 (and How They Compare to Claude)

Kimi K3.1 Pro's weights are out and two new low-cost models suit long agent runs. Which open coding model to run in November 2026, and where Claude leads.

By Mahmoud HalatPrincipal AI Solutions Architect, XY Space
On this page
  1. What "open" means in 2026
  2. The open models on AI Space
  3. Which open coding models are new since August?
  4. The August 2026 wave
  5. The specialized open models
  6. How they compare to Claude
  7. Comparison table
  8. How to run them without managing GPUs
  9. Recommendations by use case
  10. Which open coding models can you run in Canada?
  11. FAQ
  12. Sources

The best open-source coding model you can download in November 2026 is Kimi K3.1 Pro, whose weights TechNode reported on 5 November. For cheaper long agent runs, DeepSeek-V4.1-Flash (MIT) and MiniMax M3.1 Flash are the new picks. On AI Space, Kimi K3 and GLM-5.2 stay the flagships. Claude still leads on vague, architecture-heavy work.

*Updated 11 November 2026 with Kimi K3.1 Pro, MiniMax M3.1 Flash and DeepSeek-V4.1-Flash. First published 31 August 2026.*

If you needPickWhy
The strongest model you can self-hostKimi K3.1 ProHighest vendor score on long multi-file tasks among the models here that report it
Long agent runs at low cost, simplest licenceDeepSeek-V4.1-FlashMIT licence, 1M context, 16B active while writing
A small active footprint with image and video inputMiniMax M3.1 Flash23B active, 1M context, attribution required for commercial use
A managed endpoint, no GPUsKimi K3 or GLM-5.2 on AI SpaceBoth served on Cloudflare's Western network
The best cost per finished taskGLM-5.3-FlashMIT, vision, $0.15 in and $0.50 out

What "open" means in 2026

Every model here is open-weight: you can download the trained model and run it on hardware you control. That is narrower than open source in the software sense, since training data and recipes usually stay private and each licence sets its own terms. That is what matters in practice: you are not tied to one vendor's API, the model does not change under you, and where inference runs is your choice rather than the developer's. A model built in China can run in Montreal; provenance and inference location are separate questions.

The open models on AI Space

Three flagships carry most coding work on AI Space: Kimi K3, GLM-5.2 and Kimi K2.7 Code.

Kimi K3

Kimi K3, from Moonshot AI, is the most capable open model on AI Space and its default. It has 2.8 trillion parameters and reads 1M tokens at once, about four times what Kimi K2.7 Code reads. It also reads screenshots and UI mockups natively. Reasoning is always on, and a reasoning_effort setting per request trades speed and cost against depth.

Moonshot has not published SWE-bench or LiveCodeBench scores for K3. On PhD-level science questions it scores 93.5 against Claude Opus 4.8's 93.6, and on very hard expert questions with tools, 56.0 against 57.9.

AI Space serves K3 on Cloudflare's network in the US, UK, Germany, Japan and Australia, not on Moonshot's servers. Related comparisons: Kimi K3 vs Kimi K2.7 Code, Kimi K3 vs GLM-5.2 and Kimi K3 vs Claude Opus 4.8.

GLM-5.2

GLM-5.2, from Z.ai, is a top flagship across mainstream languages, from test writing up to the multi-file refactors where a weaker model returns something that almost works. It reads 1M tokens, fails loudly rather than silently (useful in automated pipelines), and sits at #1 for web and UI generation on DesignArena, the reason to reach for it on front-end work.

Like K3, it runs on Cloudflare's network rather than Z.ai's servers. See GLM-5.2 vs Kimi K2.7 Code and GLM-5.2 vs Claude Sonnet 4.6.

Kimi K2.7 Code

Kimi K2.7 Code, from Moonshot AI, is the faster, cheaper flagship, built for agentic software engineering and steady across long multi-step runs in CI. It gives up a little on the hardest tasks, where GLM-5.2 pulls ahead, in exchange for quicker responses. For high-throughput work across a whole team, that trade is usually worth it.

Which open coding models are new since August?

Three open-weight coding models shipped between September and early November, and two of them are Flash tiers aimed at long, cheap agent runs rather than top scores.

Kimi K3.1 ProMiniMax M3.1 FlashDeepSeek-V4.1-Flash
MakerMoonshot AIMiniMaxDeepSeek
Weights publicEarly November 2026 (reported 5 Nov)23 Oct 2026 (hosted from 19 Oct)10 Sep 2026, updated 17 Oct
Size2.8T total, about 104B activeAbout 428B total, 23B active552B backbone, 8B active reading, 16B writing
How much it reads at once1M tokensUp to 1M tokens1M tokens
LicenceKimi K3.1 Pro License (custom)minimax-communityMIT
Long, multi-file engineering tasks (vendor)75.573.774.2
Multi-step terminal jobs, v4.0 (vendor)65.738.1Not reported on v4.0

All scores are each vendor's own claim, run in each vendor's own setup. The long multi-file test is the same version on all three cards, but a two-point spread in self-reported runs is noise, not a ranking. For reference, GLM-5.3 reports 66.9 on the same test.

Kimi K3.1 Pro

Moonshot's new flagship keeps Kimi K3's 2.8-trillion-parameter scale, activates about 104B parameters per token, and reads 1M tokens at once, per its Hugging Face card. The weights ship quantized (MXFP4 weights, MXFP8 activations, trained for it), with recipes for vLLM and SGLang. Its scores in the table are at maximum reasoning effort; Moonshot also lists two internal Kimi Code suites that nobody outside can rerun. The step up from K3 is covered in Kimi K3.1 Pro vs Kimi K3.

MiniMax M3.1 Flash

MiniMax served M3.1 Flash from 19 October and released the weights on 23 October, per TechNode. It has about 428B parameters with 23B active and takes text, image and video input. It reads up to 1M tokens, though its model card notes that usable context depends on your GPU memory. The card reports 73.7 on long multi-file tasks and 61.2 on building a repository from a written spec.

DeepSeek-V4.1-Flash

DeepSeek launched V4.1-Flash on 10 September and shipped the 1017 update on 17 October, which DeepSeek says finishes tasks faster with shorter outputs. The model card gives an MIT licence, a 1M-token context and a 552B backbone that activates 8B parameters while reading and 16B while writing. It reports 74.2 on long multi-file tasks and 90.6 on Terminal-Bench 2.1, a different test from the 4.0 numbers above. See DeepSeek-V4.1-Flash vs V4-Pro and MiniMax M3.1 Flash vs DeepSeek-V4.1-Flash.

The August 2026 wave

Four models landed in three weeks in August, and they moved the open frontier enough to change the recommendations at the end of this post.

MetricGLM-5.3GLM-5.3-FlashDeepSeek-V4-ProQwen3.8-Max
Released2026-08-142026-08-262026-04-262026-08-03
Parameters753B (MoE)320B (MoE)1.6T (MoE)2.4T (MoE)
Active params—18B49B95B
Context window1M tokens1M tokens1M tokens1M tokens
Native visionNoYesNoYes
LicenseOpen weights (GLM-5.3 licence)Open weights (MIT)Open weights (MIT)Not published (API-only at launch)
Input $/1M$1.40$0.15$0.44$2
Output $/1M$4.40$0.50$0.87$6

Sources: GLM-5.3 model card (Hugging Face), MarkTechPost: GLM-5.3-Flash release, DeepSeek V4 Pro API pricing, MarkTechPost: Alibaba releases Qwen3.8-Max

GLM-5.3

Z.ai's flagship, released 14 August, is GLM-5.2's 753B base with better post-training: 54.7 to 62.5 on HLE with tools at the same price. It reports Terminal-Bench 2.1 at 88.2, DeepSWE v1.1 at 66.9, and a GDPval-AA v2 rating of 1769. See GLM-5.3 vs GLM-5.2 and Grok 4.6 vs GLM-5.3.

One caveat for self-hosters: GLM-5.3 was announced as open-weights with the checkpoint to follow after safety evaluation, so confirm you can download the version you intend to run.

GLM-5.3-Flash

Released twelve days later and, for most teams, the more interesting of the two. 320B with 18B active, MIT weights, a 1M context, and natively multimodal, the cheaper model in the family is the one that reads screenshots. At $0.15 and $0.50 it is roughly nine times cheaper than GLM-5.3 while landing within four points on the coding benchmarks, and it edges GLM-5.3 on AutomationBench. See GLM-5.3-Flash vs GLM-5.3.

DeepSeek-V4-Pro

1.6 trillion parameters with 49B active, MIT, 1M context, text-only, at $0.44 and $0.87. Its card reports LiveCodeBench 93.5, SWE-bench Multilingual 76.2, GPQA Diamond 90.1 and MMLU-Pro 87.5, under a Pro-Max instruct configuration, so read them as the family ceiling. Note also that DeepSeek moved to peak and off-peak pricing in August, so budget against your traffic pattern rather than the headline rate.

Qwen3.8-Max

Alibaba's 2.4-trillion-parameter model (95B active) reads text, images and video, at $2.00 and $6.00. It is strong on agentic and visual work and less dominant on core coding. It is capable rather than open: no licence was published at launch and it was served through QwenCloud only. See DeepSeek-V4-Pro vs Qwen3.8-Max.

Other models worth knowing

Mistral and Meta's Llama-series models have broad community tooling, which matters more than benchmark position when the constraint is what runs on hardware you already have. Rankings date within months. What lasts is the checklist: context, tool use, latency, licence, where inference runs, and reading benchmark version numbers, since Terminal-Bench shipped 2.1, 3.0 and 4.0 inside a year.

The specialized open models

Below the flagships, one more open model on AI Space covers the part of the cost-capability curve the big models leave open: cheap, high-volume work.

GLM-4.7 Flash

GLM-4.7 Flash is Z.ai's small model, about 30B parameters with only a few billion active per token. It is the cheapest and fastest model on AI Space and reads 200K tokens at once.

GLM-4.7 Flash fixed 59.2% of real open-source bugs in its vendor's SWE-bench Verified run. That covers everyday functions, tests and structured output, at a price low enough for autocomplete. On the hardest tasks a flagship pulls ahead. See GLM-4.7 Flash vs GLM-5.2 for the within-family trade-off.

How they compare to Claude

Claude still leads on vague requirements and architecture-heavy changes; open models match it on most well-scoped work. Sonnet 4.6 and Opus 4.8 pull ahead when a multi-file refactor needs precise instruction-following throughout, and inside Claude Code, whose tooling and prompts are tuned around them.

Open models are the better buy for tests, documentation and migration scripts. They also win where inference location matters or you want to fine-tune or swap the model yourself. For most everyday tasks, GLM-5.2 or Kimi K2.7 Code returns output usable without edits.

Comparison table

The AI Space lineup, side by side with the proprietary reference points:

MetricKimi K3GLM-5.2Kimi K2.7 CodeGLM-4.7 FlashClaude Sonnet 4.6Claude Opus 4.8
Parameters2.8T (MoE)753B (MoE)1T (MoE)30B-A3B (MoE)Not disclosedNot disclosed
Context window1M tokens1M tokens256K tokens200K tokens1M tokens1M tokens
Native visionYesNoYesNoYesYes
LicenseModified MIT (weights pending)Open weights (MIT)Modified MIT (open weights)Open weights (MIT)ProprietaryProprietary
Input $/1M$3$1.40$0.95Free$3$5
Output $/1M$15$4.40$4Free$15$25
GPQA Diamond93.5%†91.2%†—75.2%†89.9%†93.6%†
HLE (with tools)56%†54.7%†—14.4%†‡49%†57.9%†
SWE-bench Pro—62.1%†———69.2%†
SWE-bench Verified———59.2%†79.6%†88.6%†
Terminal-Bench88.3%†‡81%†‡——59.1%†‡74.6%†‡
LiveCodeBench———64%†‡——

† vendor-reported (self-reported by the model's vendor, not an independent harness). ‡ vendor labels 'HLE'; tools qualifier not stated. ‡ Moonshot KimiCode harness, max reasoning. ‡ Terminus-2 harness. ‡ Terminal-Bench 2.0. ‡ LiveCodeBench v6.

Sources: Moonshot Kimi K3 launch blog, Zhipu GLM-5.2 launch blog (Hugging Face), Kimi K2.7 Code model card (Hugging Face), GLM-4.7 Flash model card (Hugging Face), Anthropic pricing docs, Claude Sonnet 4.6 System Card, Anthropic Claude Opus 4.8 announcement

Vendors report different coding tests, and Moonshot publishes neither SWE-bench variant for Kimi K3 or K2.7 Code, so a blank cell means "not published", not zero. Terminal-Bench figures span three versions, and every score is vendor-reported.

The two benchmarks most models report on the same footing are GPQA Diamond and HLE-with-tools:

Reasoning benchmarks (vendor-reported)
Reasoning benchmarks (vendor-reported)
ModelGPQA DiamondHLE (with tools)
Kimi K393.5%56%
GLM-5.291.2%54.7%
GLM-4.7 Flash75.2%14.4%
Claude Sonnet 4.689.9%49%
Claude Opus 4.893.6%57.9%

Sources: Moonshot Kimi K3 launch blog, Zhipu GLM-5.2 launch blog (Hugging Face), GLM-4.7 Flash model card (Hugging Face), Claude Sonnet 4.6 System Card, Anthropic Claude Opus 4.8 announcement

Where the open models separate from the proprietary frontier is price:

API price — USD per 1M tokens
API price — USD per 1M tokens
ModelInput $/1MOutput $/1M
Kimi K3$3$15
GLM-5.2$1.4$4.4
Kimi K2.7 Code$0.95$4
GLM-4.7 FlashFreeFree
Claude Sonnet 4.6$3$15
Claude Opus 4.8$5$25

Sources: Moonshot Kimi K3 launch blog, Zhipu GLM-5.2 launch blog (Hugging Face), Kimi K2.7 Code model card (Hugging Face), GLM-4.7 Flash model card (Hugging Face), Anthropic pricing docs

Provenance reflects where the model was developed; inference location for AI Space-served models is Cloudflare's Western network, not the developer's home servers.

How to run them without managing GPUs

Running open-weight models yourself means provisioning GPUs, operating the serving stack and handling updates. Unless you have a hard requirement such as in-country inference, that cost rarely pays for itself.

The practical alternative is a managed inference API that serves open models on Western infrastructure. AI Space does this: Kimi K3, GLM-5.2, Kimi K2.7 Code, and GLM-4.7 Flash are all available through one OpenAI-compatible endpoint backed by Cloudflare's global network. You pay one monthly plan with a weekly cap instead of an open-ended token bill.

Claude Code with a custom base URL, LangChain, LiteLLM and anything that speaks the OpenAI chat format work against it unchanged, so switching is a configuration change. For more on the infrastructure angle, see our posts on Claude Code alternatives using open models and running open models on Western infrastructure.

Recommendations by use case

The strongest model you can self-host: Kimi K3.1 Pro, on your own GPUs. Check the licence's revenue thresholds first if you resell access.

Long agent runs on your own GPUs at the lowest licence risk: DeepSeek-V4.1-Flash. MIT terms and only 16B active parameters while writing.

Maximum capability on hard tasks (complex refactors, dense logic, long context, vision): Kimi K3 via AI Space. It's the most capable open model on the platform, and the weekly cap means the strongest model cannot run up an open-ended bill.

Front-end and UI generation, plus proven agentic coding: GLM-5.2 via AI Space. #1 for web and UI on DesignArena.

Fast, high-throughput automation (CI agents, batch generation, migration scripts): Kimi K2.7 Code via AI Space. Faster and cheaper, for work where throughput beats the last increment of capability.

Cheapest high-volume work (completions, inline suggestions, simple agent steps): GLM-4.7 Flash via AI Space. Fast enough for every keystroke; escalate to a flagship when its answer falls short.

Complex architectural work, deep reasoning, Claude Code integration: Claude Sonnet 4.6 or Opus 4.8. Where Claude has the edge, use it.

The best cost-to-capability ratio in the wider open field right now: GLM-5.3-Flash. MIT weights, native vision, a 1M context, and $0.15 in and $0.50 out. That works out at roughly six cents per finished Terminal-Bench 2.1 task against about $4.73 for a frontier proprietary model at the same success rate. The arithmetic behind that, and where it breaks, is in cost per solved task.

Teams with data residency requirements: Any of the open models via AI Space. The native APIs from Moonshot and Z.ai run inference in China. AI Space runs it on Cloudflare's network in the US, UK, Germany, Japan and Australia. For inference in Canada, see the Canada section below.

Teams starting from scratch: Start with Kimi K3, AI Space's default, on the Standard plan ($35 a month). One plan is shared by the whole team, with a spending limit per person. Move to Pro ($90) or Max ($175) as usage grows; every model is on every plan.

Get started with AI Space to access Kimi K3, GLM-5.2, Kimi K2.7 Code, and GLM-4.7 Flash on Cloudflare's global network on plans from $15 a month, with no GPU management.

Which open coding models can you run in Canada?

Every open-weight model in this post can run with inference inside Canada. You download the weights and serve them on dedicated GPUs in a Canadian cloud region or on hardware you own. Qwen3.8-Max is the exception, since no weights were published at launch, and GLM-5.3 needs its checkpoint confirmed first.

On AWS that means ca-central-1 (Montreal) or ca-west-1 (Calgary), the two regions Bedrock's own Canada profile stays within, per our Canadian residency guide. None of the three new model cards gives a GPU count, so the size of the deployment is set by your workload and context length. The licences differ:

ModelLicence terms that matter for a Canadian deployment
Kimi K3.1 ProCommercial use allowed. A model-as-a-service business above $20M revenue in 12 months needs a separate agreement; products above 100M monthly users or $20M monthly revenue must display the model name. Internal use is exempt from both.
MiniMax M3.1 FlashCommercial use requires displaying "Built with MiniMax M3.1-Flash", a one-time notice to MiniMax under $20M yearly revenue, and written authorization above it.
DeepSeek-V4.1-FlashMIT.

The trade-offs come from the residency guide. Large GPU instances are scarcer in Canadian regions than in US ones, you pay for GPUs while they sit idle, and you own the serving, patching and safety filtering.

XY Space deploys open-weight models on dedicated GPUs in the client's own Canadian cloud account, or on-premises, so prompts and outputs stay in the country, then builds the workflow on top. More on how we deploy.

If you need this model's capability with inference kept in Canada, bring one job to a free 30-minute call.

FAQ

What is the best open-source coding model in November 2026?

Kimi K3.1 Pro, if you can host a 2.8-trillion-parameter model. Its weights went public in early November, and its card reports 75.5 on long multi-file engineering tasks, the highest among the models here that publish that test. DeepSeek-V4.1-Flash scores 74.2 on the same test with far fewer active parameters and an MIT licence. For most self-hosted agent work, it is the better pick. All of these numbers are vendor-reported.

Is Kimi K3.1 Pro free for commercial use?

For most teams, yes. The Kimi K3.1 Pro License allows commercial use free of charge. A business selling the model as a service needs a separate agreement with Moonshot once its revenue passes $20M in any 12 months. Very large products must show the model name in their interface. Internal use that does not expose the model or its outputs to third parties is exempt from both conditions.

Can I use MiniMax M3.1 Flash in a commercial product?

Yes, with conditions. The minimax-community licence requires you to display "Built with MiniMax M3.1-Flash" on a website, interface, about page or documentation. Under $20M in yearly revenue you send MiniMax a one-time notice; above it you need written authorization first. The licence also bans military use and several categories of harmful content. Non-commercial use only requires keeping the copyright notice.

Are open coding models as good as Claude?

For most well-scoped work, yes: tests, migrations, documentation and routine refactors come back usable from Kimi K3, GLM-5.2 or the new Flash models. Claude Sonnet and Opus still lead on ambiguous requirements and architecture-heavy changes, and Claude Code is tuned around its own models. The practical split is open models for volume and Claude for the hardest problems.

Sources

Written by

Mahmoud Halat

Principal AI Solutions Architect, XY Space

Principal AI Solutions Architect at XY Space. A decade of regulated health tech: product lead for software in more than 100 healthcare deployments, and a named inventor on a 2025 patent.

More from Mahmoud Halat

Share this article

Work with us

We build the systems these posts describe, and we'll tell you in the first call whether yours is worth building.

Start a project
Work with us

Book a first call.Bring one job your team repeats.

Thirty minutes. We'll tell you whether to start with a scan or with one job. Everything we build stays yours.

You'll talk to

  • MahmoudAI Solutions Architect
  • ChoAI Solutions Engineer

Rather email? info@xyspace.dev

New messageToXY Space

We reply within one working day.