{"id":23393,"date":"2026-08-20T06:01:18","date_gmt":"2026-08-20T06:01:18","guid":{"rendered":"https:\/\/scannn.com\/mojo-is-now-open-source\/"},"modified":"2026-08-20T06:01:18","modified_gmt":"2026-08-20T06:01:18","slug":"mojo-is-now-open-source","status":"publish","type":"post","link":"https:\/\/scannn.com\/lv\/mojo-is-now-open-source\/","title":{"rendered":"Mojo is now open source!"},"content":{"rendered":"\n<div data-rt-embed-type=\"true\">\n<p>We are happy to announce that the Mojo language is now fully open source under <a href=\"https:\/\/github.com\/modular\/modular\/blob\/main\/LICENSE\" target=\"_blank\" rel=\"noopener noreferrer\">the Apache 2.0 license (with LLVM exceptions)<\/a>! The source code for the Mojo compiler, tooling, and everything else you need to build the language are now available in <a href=\"https:\/\/github.com\/modular\/modular\" target=\"_blank\" rel=\"noopener noreferrer\">our <\/a><a href=\"https:\/\/github.com\/modular\/modular\" target=\"_blank\" rel=\"noopener noreferrer\"><code>modular<\/code><\/a><a href=\"https:\/\/github.com\/modular\/modular\" target=\"_blank\" rel=\"noopener noreferrer\"> GitHub repository<\/a>.<\/p>\n<p>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 <a href=\"https:\/\/www.modular.com\/blog\/modular-26-5-mojo-1-0-is-here\" target=\"_blank\" rel=\"noopener noreferrer\">Mojo hit 1.0 <\/a>(with source stability), and today we\u2019re excited to open source the entire compiler and toolchain.<\/p>\n<h3>Apache 2: A permissive license<\/h3>\n<p>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.<\/p>\n<p>Our open source approach has been deliberate: we\u2019ve found that small and tight-knit design teams (not committees) are the best for finding the \u201csoul\u201d of a language, but that feedback from a broader community is essential to escape an echo chamber. As such, we first open-sourced the <a href=\"https:\/\/www.modular.com\/blog\/the-next-big-step-in-mojo-open-source\" target=\"_blank\" rel=\"noopener noreferrer\">Mojo standard library<\/a>, then released <a href=\"https:\/\/www.modular.com\/blog\/modular-platform-25-3-450k-lines-of-open-source-code-and-pip-install-modular\" target=\"_blank\" rel=\"noopener noreferrer\">hundreds of thousands of lines of kernel code written in Mojo<\/a>, 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.<\/p>\n<h3>How to get and build the compiler<\/h3>\n<p>All code for the Mojo language is now available at the main <a href=\"https:\/\/github.com\/modular\/modular\" target=\"_blank\" rel=\"noopener noreferrer\"><code>modular<\/code><\/a><a href=\"https:\/\/github.com\/modular\/modular\" target=\"_blank\" rel=\"noopener noreferrer\"> GitHub repository<\/a>. First, clone that repository locally:<\/p>\n<div class=\"w-embed\">\n<div class=\"code-container\">\n<span class=\"label bash\">bash<\/span><\/p>\n<div class=\"language-bash\">\n<pre class=\"shiki material-theme-palenight\" style=\"background-color:#292D3E;color:#babed8\" tabindex=\"0\"><code class=\"no-highlight\"><span class=\"line\"><span style=\"color:#FFCB6B\">git<\/span><span style=\"color:#C3E88D\"> clone<\/span><span style=\"color:#C3E88D\"> https:\/\/github.com\/modular\/modular.git<\/span><\/span>\n<span class=\"line\"\/>\n<span class=\"line\"><span style=\"color:#82AAFF\">cd<\/span><span style=\"color:#C3E88D\"> modular<\/span><\/span><\/code><\/pre>\n<\/div>\n<p><button onclick=\"copyToClipboard(this)\">Copy<\/button>\n<\/div>\n<\/div>\n<p>Then, to build the Mojo compiler from source and run it against a Mojo file you can use a single build command:<\/p>\n<div class=\"w-embed\">\n<div class=\"code-container\">\n<span class=\"label bash\">bash<\/span><\/p>\n<div class=\"language-bash\">\n<pre class=\"shiki material-theme-palenight\" style=\"background-color:#292D3E;color:#babed8\" tabindex=\"0\"><code class=\"no-highlight\"><span class=\"line\"><span style=\"color:#FFCB6B\">.\/bazelw<\/span><span style=\"color:#C3E88D\"> run<\/span><span style=\"color:#C3E88D\"> --config=build-mojo<\/span><span style=\"color:#C3E88D\"> KGEN:mojo<\/span><span style=\"color:#C3E88D\"> --<\/span><span style=\"color:#C3E88D\"> run<\/span><span style=\"color:#C3E88D\"> hello.mojo<\/span><\/span><\/code><\/pre>\n<\/div>\n<p><button onclick=\"copyToClipboard(this)\">Copy<\/button>\n<\/div>\n<\/div>\n<p>At Modular, we use <a href=\"https:\/\/bazel.build\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bazel<\/a> 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 <code>--config=build-mojo<\/code> tells the build system to compile everything from scratch, using the source code on your local system.<\/p>\n<p>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:<\/p>\n<div class=\"w-embed\">\n<div class=\"code-container\">\n<span class=\"label bash\">bash<\/span><\/p>\n<div class=\"language-bash\">\n<pre class=\"shiki material-theme-palenight\" style=\"background-color:#292D3E;color:#babed8\" tabindex=\"0\"><code class=\"no-highlight\"><span class=\"line\"><span style=\"color:#FFCB6B\">.\/bazelw<\/span><span style=\"color:#C3E88D\"> test<\/span><span style=\"color:#C3E88D\"> --config=build-mojo<\/span><span style=\"color:#C3E88D\"> mojo\/stdlib\/test\/...<\/span><\/span><\/code><\/pre>\n<\/div>\n<p><button onclick=\"copyToClipboard(this)\">Copy<\/button>\n<\/div>\n<\/div>\n<p>If you aren\u2019t working on the compiler itself, you can use the flag <code>--config=prebuilt-mojo<\/code> 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.<\/p>\n<h3>Contributions<\/h3>\n<p>The Mojo standard library has been accepting contributions since 2024, and we\u2019re grateful for everyone that has helped advance the language. One learning (particularly in today\u2019s era of AI coding) is that we need to be deliberate about how we handle contributions. As such, we aren\u2019t 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\u2019ll share more details when we can.<\/p>\n<p>To ask any questions about the Mojo compiler source as you read through it, or to share what you\u2019re working on, please join <a href=\"https:\/\/forum.modular.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">our forum<\/a>. Clone the source code and let us know what you\u2019re building with the Mojo language. We\u2019re excited to open Mojo up to the world and see how it grows!<\/p>\n<\/div>\n<p><a href=\"https:\/\/www.modular.com\/blog\/mojo-open-source?utm_source=tldrnewsletter\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce that the Mojo language is now fully open source under the Apache 2.0 license (with LLVM exceptions)! The source code for the Mojo compiler, tooling, and everything else you need to build the language are now available in our modular GitHub repository. The Mojo language is a bold bet: a [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":23394,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[143],"tags":[],"class_list":["post-23393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts\/23393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/comments?post=23393"}],"version-history":[{"count":0,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts\/23393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/media\/23394"}],"wp:attachment":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/media?parent=23393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/categories?post=23393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/tags?post=23393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}