A U.S. federal judge in San Francisco has dismissed a lawsuit filed by Elon Musk’s artificial intelligence company, xAI, which accused rival OpenAI of stealing trade secrets linked to its chatbot development, including the Grok system.

The ruling, delivered on Monday by U.S. District Judge Rita Lin, marks a significant legal setback for Musk’s AI venture and comes just weeks after another courtroom loss involving OpenAI.

Judge Lin said xAI failed to provide sufficient evidence that OpenAI encouraged or induced a former xAI engineer, Xuechen Li, to disclose confidential information.

Specifically, she noted that there was no indication OpenAI engineers were aware that Li might have shared proprietary material.

The judge dismissed the case with prejudice, meaning xAI cannot refile the same claims, and described further proceedings as “futile,” having already thrown out an earlier version of the complaint in February.

Claims over chatbot development rejected

The lawsuit, originally filed in September, alleged that OpenAI improperly gained access to sensitive xAI materials, including source code and internal technical information, after former employees transitioned between the two companies.

However, the amended complaint focused heavily on a presentation given by Li while he was being recruited by OpenAI. xAI argued that the interaction amounted to an attempt to extract confidential insights, particularly relating to the development of its Grok chatbot and upcoming upgrades.

xAI also claimed OpenAI was attempting to close a competitive gap in areas such as reinforcement learning and post-training techniques ahead of updates to ChatGPT.

But Judge Lin rejected the argument, stating that discussions about previous work experience are standard in hiring processes and cannot, on their own, be interpreted as an attempt to obtain trade secrets.

“To hold otherwise would potentially expose employers to liability any time they inquire about a candidate’s past work,” she wrote, underscoring the routine nature of technical interviews in the industry.

OpenAI denies wrongdoing, calls case baseless

OpenAI has consistently denied the allegations, stating that Li never worked for the company and that no confidential xAI material was ever acquired.

In court filings seeking dismissal, OpenAI’s lawyers dismissed the case outright, saying: “OpenAI does not need or want anyone’s trade secrets, especially not from xAI, which is failing in the marketplace and hemorrhaging talent.”

After the ruling, OpenAI reiterated its position, describing the lawsuit as “yet another front in Mr. Musk’s ongoing campaign of harassment.”

Part of a broader legal battle

The dismissal adds to a growing list of legal defeats for Musk in disputes involving OpenAI. Earlier in May, a federal jury rejected a separate $150 billion lawsuit in which Musk accused OpenAI and its CEO Sam Altman of abandoning the company’s nonprofit mission to enrich private interests.

The latest case also comes amid heightened competition between Musk’s AI company xAI and OpenAI in the rapidly evolving generative AI space, where both firms are racing to improve chatbot reasoning, training methods, and market adoption.

Engineer at the center of dispute

At the heart of the dismissed case was Xuechen Li, a former xAI senior engineer who is separately facing litigation from Musk’s company. Li has denied any wrongdoing and was not found by the court to have engaged in improper disclosure in the OpenAI case.

With the ruling, the court effectively closed another chapter in the escalating rivalry between two of the most closely watched players in artificial intelligence development.