SAN FRANCISCO (Diya TV) — In a surprising legal development out of Silicon Valley, Xuechen Li, a former engineer at xAI, has been sued by Elon Musk’s AI startup for allegedly stealing and uploading the company’s entire proprietary codebase to OpenAI, just days after accepting a job offer there.

The complaint, filed Thursday in U.S. District Court for the Northern District of California, accuses Li of breaching confidentiality agreements, violating trade secret laws, committing fraud, and breaking California’s computer fraud statute. xAI’s lawyers allege Li exfiltrated highly sensitive data related to Grok, the company’s flagship AI chatbot, and then deleted evidence before departing for OpenAI.

“He accepted an offer at OpenAI and then uploaded our entire codebase!” Musk wrote in a now-viral post on X, confirming the breach.

According to court documents, Li was entrusted with access to Grok’s backend architecture, neural training data, and core infrastructure. Before his departure, Li allegedly downloaded and archived confidential code files, transferred them off-site, and attempted to wipe the trails from company logs.

The lawsuit also notes that Li had recently sold $7 million worth of xAI stock, raising concerns about intent and insider misconduct. Despite being confronted during the offboarding process, xAI claims Li downplayed the breach. A forensic audit reportedly uncovered significant code extraction and deletion activity in the days prior to his resignation.

xAI is now seeking monetary damages, a restraining order, and a full forensic review of Li’s personal devices. It also requests a permanent injunction to bar him from using or disseminating xAI data or continuing work at OpenAI.

The incident has added fuel to the growing rift between Musk and OpenAI, the company he co-founded in 2015 but later publicly distanced himself from. Musk has repeatedly criticized OpenAI’s evolving ties with Microsoft and its shift away from transparency.

While OpenAI has not yet commented, the case has sent shockwaves through the AI industry, which is witnessing a fierce talent war—and an even fiercer race to dominate the future of artificial intelligence.

If the court sides with xAI, this could become a precedent-setting case in how AI intellectual property theft is prosecuted in the United States.