Elon Musk’s xAI has filed a federal lawsuit against a former engineer, alleging he stole proprietary technology worth potentially billions of dollars before joining rival OpenAI.
The lawsuit, filed Thursday in US District Court for the Northern District of California, accuses Xuechen Li of copying confidential information about xAI’s Grok chatbot to personal devices just days before resigning to accept a position at OpenAI.
Court documents show Li, a Chinese national and Stanford University computer science PhD, was among xAI’s first 20 employees and had broad access to the company’s most sensitive technological assets. The lawsuit alleges Li transferred confidential data on July 25, 2025, coinciding with his receipt of $2.2 million from the stock transaction, and submitted his resignation three days afterward.
He accepted an offer at OpenAI and then uploaded our entire codebase!
— Elon Musk (@elonmusk) August 30, 2025
The 29-page complaint alleges Li attempted to hide his actions through multiple steps, including clearing browser history, changing file names, and compressing data before moving it to personal storage systems. The lawsuit alleges the stolen materials contain proprietary artificial intelligence technology that xAI characterizes as more advanced than rival systems, including those powering ChatGPT.
Li had previously sold $4.7 million worth of xAI shares in June 2025, bringing his total stock liquidation to approximately $7 million before leaving the company. Court filings indicate he had already accepted OpenAI’s job offer with an August 19 start date when the alleged theft occurred.
The company detected the alleged breach on August 11 through its standard security monitoring procedures and promptly contacted Li demanding return of the information. During subsequent meetings with attorneys present, Li allegedly admitted in writing to taking company files and attempting to cover his tracks.
xAI, founded by Musk in 2023 as a rival to OpenAI, is seeking monetary damages and emergency injunctive relief. The company wants a court order preventing Li from working at OpenAI or any competitor until all trade secrets are recovered. It also requests forensic examination of Li’s personal devices and access to his cloud storage accounts.
The lawsuit is also the latest escalation in the ongoing rivalry between Musk and OpenAI, the company he co-founded in 2015 but later left. Musk has previously sued OpenAI, alleging the company illegally shifted from its original non-profit mission to a for-profit structure aligned with Microsoft.
Read: Altman Rejects Musk’s $97B OpenAI Acquisition Bid: “We’ll Buy Twitter For $9.74B”
Neither Li nor OpenAI immediately responded to requests for comment. Li has retained criminal defense attorneys, according to court filings.
If successful, xAI’s lawsuit could prevent what it describes as potentially “billions in R&D dollars and years of engineering effort” from benefiting a competitor. The company argues that allowing Li to proceed with his OpenAI employment would give the rival firm an unfair competitive advantage in the race to develop advanced AI systems.
The federal court has scheduled a hearing for Tuesday, September 2, to consider xAI’s requests for emergency relief, including a temporary restraining order.
Information for this story was found via Bloomberg Law, and the sources and companies mentioned. The author has no securities or affiliations related to the organizations discussed. Not a recommendation to buy or sell. Always do additional research and consult a professional before purchasing a security. The author holds no licenses.