Mojo is now open source

Lobsters Hottest Tools

Summary

Mojo, a programming language designed for AI accelerators and GPUs, is now fully open source under the Apache 2.0 license, with its compiler and toolchain available on GitHub for development and contribution.

<p><a href="https://lobste.rs/s/01lxuf/mojo_is_now_open_source">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 08/18/26, 06:21 PM

# Mojo🔥 is now open source! Source: [https://www.modular.com/blog/mojo-open-source](https://www.modular.com/blog/mojo-open-source) We are happy to announce that the Mojo🔥 language is now fully open source under[the Apache 2\.0 license \(with LLVM exceptions\)](https://github.com/modular/modular/blob/main/LICENSE)\! The source code for the Mojo compiler, tooling, and everything else you need to build the language are now available in[our](https://github.com/modular/modular)[`modular`](https://github.com/modular/modular)[GitHub repository](https://github.com/modular/modular)\. The Mojo language is a bold bet: a novel general purpose programming language that goes further than older ones\. Mojo integrates the latest in compiler and programming language research to unlock GPUs, AI accelerators, and other advanced compute\. For the last four years, Mojo has been developed with an open community, but a closed compiler\. Last week[Mojo hit 1\.0](https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here)\(with source stability\), and today we’re excited to open source the entire compiler and toolchain\. ### Apache 2: A permissive license The Apache 2\.0 license is the gold standard for programming languages and compilers, because it provides great flexibility to be used in all sorts of applications\. The LLVM extensions to the license further expand those freedoms for building and distributing binaries compiled from Mojo\. We want you to be able to adopt and use Mojo in as many applications as you can imagine\. Our open source approach has been deliberate: we’ve found that small and tight\-knit design teams \(not committees\) are the best for finding the “soul” of a language, but that feedback from a broader community is essential to escape an echo chamber\. As such, we first open\-sourced the[Mojo standard library](https://www.modular.com/blog/the-next-big-step-in-mojo-open-source), then released[hundreds of thousands of lines of kernel code written in Mojo](https://www.modular.com/blog/modular-platform-25-3-450k-lines-of-open-source-code-and-pip-install-modular), tools, and support\. We built together with community feedback and public design proposals, and are now open sourcing the compiler\. We will continue to open our processes further as Mojo keeps maturing\. ### How to get and build the compiler All code for the Mojo language is now available at the main[`modular`](https://github.com/modular/modular)[GitHub repository](https://github.com/modular/modular)\. First, clone that repository locally: bash ``` git clone https://github.com/modular/modular.git cd modular ``` Then, to build the Mojo compiler from source and run it against a Mojo file you can use a single build command: bash ``` ./bazelw run --config=build-mojo KGEN:mojo -- run hello.mojo ``` At Modular, we use[Bazel](https://bazel.build/)to manage the complex build processes and caching for Mojo and MAX\. This one command will download or build everything needed to build the Mojo compiler and the Mojo standard library\. The flag`\-\-config=build\-mojo`tells the build system to compile everything from scratch, using the source code on your local system\. This extends to working with the Mojo standard library, where you can modify the compiler or library code and run the full suite of tests via: bash ``` ./bazelw test --config=build-mojo mojo/stdlib/test/... ``` If you aren’t working on the compiler itself, you can use the flag`\-\-config=prebuilt\-mojo`and the build system will download the latest nightly binary distribution of the compiler, saving you some compilation time\. Note that a prebuilt Mojo compiler is still necessary today if you are customizing MAX kernels or models\. ### Contributions The Mojo standard library has been accepting contributions since 2024, and we’re grateful for everyone that has helped advance the language\. One learning \(particularly in today’s era of AI coding\) is that we need to be deliberate about how we handle contributions\. As such, we aren’t ready to take contributions to the compiler and tooling\. We aim to accept contributions to the compiler and tooling by the end of this year, and we’ll share more details when we can\. To ask any questions about the Mojo compiler source as you read through it, or to share what you’re working on, please join[our forum](https://forum.modular.com/)\. Clone the source code and let us know what you’re building with the Mojo language\. We’re excited to open Mojo up to the world and see how it grows\!

Similar Articles

Mojo🔥 is now open source

Simon Willison's Blog

Mojo programming language has been open-sourced under an Apache 2 license, fulfilling a long-standing promise with the release of its compiler and toolchain.

The Mojo language (by Modular, now Qualcomm) is now open-source

Hacker News Top

Mojo 1.0 has been fully open-sourced under an Apache 2.0 license, making the AI programming language accessible to developers worldwide. The announcement also includes the launch of Modular Cloud and expanded support for various hardware accelerators.

Mojo 1.0 Beta

Hacker News Top

Modular announces the Mojo 1.0 Beta, a high-performance programming language that combines Python's ease of use with the speed of compiled languages for AI and systems programming.

Mojo 1.0

Hacker News Top

Modular announces the 1.0 release of the Mojo programming language, offering a stable foundation for developers building libraries, tools, and applications with enhanced features like Python-style lambdas, improved LSP, and memory safety diagnostics.