Twitter/X's ChatGPT rival Grok is now open source. Here's how to get it.

Elon Musk announced the AI chatbot would become open source last week.
 By 
Amanda Yeo
 on 
xAI Grok logo is seen on a smartphone screen.
Credit: Pavlo Gonchar / SOPA Images / LightRocket via Getty Images

Twitter/X's AI chatbot Grok is now open source. In a better timeline, I wouldn't have to know any of those words.

Last Monday, Twitter/X owner and xAI founder Elon Musk announced that Grok would soon go open source, making its source code freely available for anyone to access and modify. Now the company has acted on that plan, releasing Grok-1's base model weights and network architecture on GitHub.

"░W░E░I░G░H░T░S░I░N░B░I░O░," the official Grok Twitter/X account posted, mimicking a format frequently used by spam bots claiming to share pornographic images on the platform.


You May Also Like

In a brief blog post announcing the release, Musk's artificial intelligence company xAI stated that the model being released is from when Grok-1 was in its "pre-training phrase" in Oct. 2023. So while this base model has been trained on "a large amount of text data," it hasn't been fine-tuned to any specific task. This means you're probably better off continuing to use Grok on Twitter/X if you just want to play with a Musk-approved chatbot (and are prepared to shell out your hard-earned cash to become an X Premium+ subscriber).

For those more interested in toying with code, Grok's weights and architecture have been released under an Apache 2.0 licence, meaning anyone is free to modify and redistribute them. In an apparent reference to 1989 sci-fi comedy Bill & Ted's Excellent Adventure, the code of conduct accompanying Grok's release reads only: "Be excellent to each other." 

"Grok is a 314-billion parameter Mixture-of-Experts model trained from scratch by xAI," wrote xAI. 

Grok was uploaded to GitHub by an account apparently belonging to AI researcher and xAI employee Igor Babuschkin. All you need to do is head over to the website, hit the green " Code" button, and select the format you want it in.

Musk has been pushing OpenAI to go open source

This move comes just weeks after Musk sued Grok competitor OpenAI for not being open source. Musk previously sat on the ChatGPT creator's board of directors, as well as invested several million dollars into the AI research company. Now the billionaire has accused OpenAI of breach of contract, contending that there was a "Founding Agreement" that its artificial general intelligence would be open source, and that the organisation would be run as a non-profit "for the benefit of humanity." 

OpenAI has since refuted Musk's claim, stating that no such agreement existed. It further published emails demonstrating that Musk knew of and agreed with OpenAI's plans to become proprietary rather than open source, as well as its intention to become a for-profit organisation.

"As we discussed a for-profit structure in order to further the mission, Elon wanted us to merge with Tesla or he wanted full control," wrote OpenAI, noting that Musk stated OpenAI had zero chance of success without raising several billion dollars per year.

"Elon left OpenAI, saying there needed to be a relevant competitor to Google/DeepMind and that he was going to do it himself… When he left in late February 2018, he told our team he was supportive of us finding our own path to raising billions of dollars."

Apparently Musk isn't quite as supportive as OpenAI expected, if his lawsuit is anything to go by.

Topics X/Twitter OpenAI

Amanda Yeo
Amanda Yeo
Assistant Editor

Amanda Yeo is an Assistant Editor at Mashable, covering entertainment, culture, tech, science, and social good. Based in Australia, she writes about everything from video games and K-pop to movies and gadgets.

Mashable Potato

Recommended For You
Google launches Gemma 4, a new open-source model: How to try it
Google Gemma

Grok blocks X users from creating images of real people in ‘revealing clothing’
Grok, xAI's chatbot.

Grok is producing millions of sexualized images of adults and children
A sign next to bus stop in London reads "Who the hell would want to use social media with a built-in child abuse tool?" and a photo of Elon Musk.


Elon Musk's Grok faces another EU investigation over nonconsensual AI images
Elon Musk's tweet and Grok logo

Trending on Mashable
NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 3, 2026
Wordle game on a smartphone


You can track Artemis II in real time as Orion flies to the moon
Victor Glover and Reid Wiseman piloting the Orion spacecraft

NYT Strands hints, answers for April 3, 2026
A game being played on a smartphone.
The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!