Model notes
MAI Code 2 Flash
Microsoft's new coding model is cheap, fast, and not open source. What it actually is, what it costs, where you can run it, and the open source agents that give you the same workflow with code you can keep.
Licenses and pricing structure last checked: 20 November 2026
What MAI Code 2 Flash is
MAI Code 2 and MAI Code 2 Flash are Microsoft's own coding models, announced on 17 November 2026 and live in GitHub Copilot the same day. Code 2 is the larger model; Flash is the lightweight one, built for high-volume everyday work: code explanations, small edits, test generation, the tasks you run dozens of times a day and do not need a frontier model for.
The claim worth noting is the price positioning. Microsoft says Flash performs comparably to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost of those two models, and that in its own evaluation it found more issues than Luna while using one AIC against Luna's 3.52. Those are vendor numbers, not independent measurements.
Is MAI Code 2 Flash open source?
No. Microsoft has not published the weights, and there is no repository to clone. This is the question most people arriving here actually have, so it is worth being precise about the alternative Microsoft does offer.
On the same day, Microsoft announced MAI Licensed Weights: a way for organisations to deploy and customise MAI models inside their own Azure environment. Licensed is the operative word. That is a commercial arrangement for a model you host yourself, not an open source license, and it does not make the weights downloadable for public use.
So the practical answer: if “open source” is a hard requirement for your legal team, your procurement process, or your air-gapped deployment, MAI Code 2 Flash does not meet it. Self-hosting the API does not change that.
Where you can actually run it
- GitHub Copilot — both models; Flash is on every plan including Free and Student, and you may need to enable it in the model picker.
- Microsoft Foundry — Code 2 Flash in limited-access preview.
- Announced, not shipped yet — OpenRouter, Vercel, Hermes, OpenCode and Kilo.
That last line matters more than it looks. OpenCode is an open source agent, so when the model lands there you will be able to keep an open source client and swap in Microsoft's cheap model. You still will not own the weights.
The open source side of the same workflow
If what you want is the workflow — an agent that reads your repository, edits files and runs your tests — and you need code you can run yourself, these are the credible options. Every license below was checked against the repository on 20 November 2026.
OpenHands
MIT. A full agent platform rather than an editor plugin: runs locally or in your own cloud, connects whichever model you point it at, and automates the repetitive parts of the software lifecycle — triaging issues, reviewing pull requests, fixing failed CI runs. The catch: more infrastructure than an extension, and a wide surface to configure.
OpenCode
MIT, and by far the largest community in this category: 228K GitHub stars, 1,000+ contributors, roughly 22 million developers a month. Desktop, terminal, mobile and an SDK, with 200+ model providers through Models.dev, local models included. The catch: it moves fast, and a fast-moving agent means reading changelogs.
Cline
Apache-2.0. The editor-side option: an extension that plans before it acts, runs shell commands, and uses whatever provider you configure — your keys, your infrastructure. The catch: it is a VS Code-shaped tool, so terminal and CI workflows live elsewhere.
Aider
Apache-2.0, 44K stars, 6.8 million installs. The terminal pair-programmer: it maps your repository, edits across files and commits each change to git with a sensible message. Works with cloud and local models. The catch: no GUI, and git discipline is assumed rather than taught.
Two projects that changed hands
These appear in almost every list of open source coding agents, so worth correcting:
- Continue was acquired by Cursor. Its site now says so; the open source codebase remains available, but the company that drove it is no longer independent.
- Roo Code's domain now redirects to Roomote, the cloud agent from the same team.
Neither is dead. Neither is the obvious pick it was a year ago, and a directory that still lists them without a note is out of date.
Comparison
| Option | License | Self-host | Any model | Best for |
|---|---|---|---|---|
| MAI Code 2 Flash | Proprietary | No | No | Cheap completions inside Copilot |
| OpenHands | MIT | Yes | Yes | Agent that automates issue and PR work |
| OpenCode | MIT | Yes | Yes | One client across desktop, terminal, phone |
| Cline | Apache-2.0 | Yes | Yes | Plan-then-act inside VS Code |
| Aider | Apache-2.0 | Yes | Yes | Terminal work with git commits |
How to decide
- You want cheap completions and you already pay for Copilot: turn Flash on and stop reading. It is the cheapest way to get Microsoft's coding model.
- “Open source” is a requirement, not a preference: Flash fails it. Pick from the four above.
- Code cannot leave your machines: self-host OpenHands, or point OpenCode or Aider at a local model.
- You live in the terminal: Aider for git-native edits, OpenCode for a full agent.
- You live in the editor: Cline.
Questions
Is MAI Code 2 Flash open source?
No. The weights are not published and there is no public repository. Microsoft offers MAI Licensed Weights for organisations that want to deploy MAI models in their own Azure environment, but that is a commercial license, not an open source one.
Can I download the weights and run it locally?
Not today. There is no public download. The licensed-weights route is arranged with Microsoft for Azure-hosted deployment, so it does not give you a file you can run on your own hardware.
How much does MAI Code 2 Flash cost?
Microsoft positions it at 65% and 20% of the cost of GPT-6 Luna and Claude Haiku 5.5 for comparable performance. Inside Copilot, Flash is available on the Free plan as well as paid ones, so the practical cost for most developers is zero to try. Per-token pricing for Foundry and the announced providers should be read from Microsoft or the provider directly, because it changes.
Is it better than GPT-6 Luna or Claude Haiku 5.5?
The only comparative numbers available are Microsoft's own. They report comparable performance at a fraction of the cost. If your decision depends on a specific workload, run your own evaluation — the cost difference is large enough that a tie on quality is already a win for Flash.
What is the closest open source equivalent?
There is no open source copy of MAI Code 2 Flash, because the model itself is closed. The equivalent is a different arrangement: an open source agent (OpenCode, Cline, Aider, OpenHands) driving a model you choose, including a local one. That gives you the workflow without the API dependency.
Why does this page exist on a directory of open source alternatives?
Because the useful question is not “is this model good” but “can I keep it”. Model launches in this category now arrive weekly, most are closed, and each one sends people looking for the open version of the same workflow. This page records the closed side and points at the open one — see our Cursor alternatives for the same treatment applied to editors, and the full directory for everything else.