It was 2018, and Elon Musk was having a very busy year.
His electric car company, Tesla, was struggling with manufacturing problems. He had a plan to take it private, but he kept angering regulators. SpaceX, his rocket company, was just starting to show momentum. And OpenAI, the nonprofit artificial intelligence lab he was supposed to be involved in, wasn’t getting much of his attention.
“I did not even have the time to attend board meetings,” Mr. Musk said on Wednesday, the second day of his testimony in a trial that pits him against OpenAI, two of its co-founders and the company’s giant partner, Microsoft.
That year, the seeds of today’s court fight were sown. Executives at OpenAI, which was founded as a nonprofit, were considering attaching a for-profit company to its structure. Mr. Musk did not have a problem with that, he said, but he wanted to make sure the nonprofit was still in charge. Now he regrets that he did not play a more active role before he left the lab in early 2018 and that he gave it money to get off the ground in the first place.
“I was a fool who provided them free funding to create a start-up,” Mr. Musk said in response to a question from his lawyer, Steven Molo. “I gave them $38 million of essentially free funding to create what would become an $800 billion company.”
In what is expected to be a monthlong trial in federal court in Oakland, Calif., Mr. Musk is arguing that OpenAI breached its founding contract when it took on Microsoft as an investor and started creating commercial products. He is asking for $150 billion in damages and for OpenAI to unwind the for-profit company it created last year.
Today, OpenAI is one of the tech industry’s most influential companies. Mr. Musk, of course, emerged from that rough year to become the wealthiest man in the world. But the relationships he had at the time with Sam Altman, OpenAI’s chief executive, and Greg Brockman, the company’s president, have long since been severed.
The hard feelings between the tech tycoons have been difficult to miss in the trial. Mr. Musk and Mr. Altman have known each other for years and hobnobbed in the same elite Silicon Valley circles. But mutual admiration — which led to their creation of OpenAI in 2015 — has soured to unapologetic animosity.
As Mr. Altman and Mr. Brockman watched from the courtroom gallery, just behind their lawyers, Mr. Musk, the first witness in the trial, continually described his former co-founders as a deceitful pair who duped him and steered OpenAI away from its altruistic roots.
Mr. Musk described how OpenAI evolved after he left the lab in early 2018, though he continued to donate money to the lab and received updates on its progress. About a year later, Microsoft invested $1 billion in OpenAI — a hint that it was starting to take its commercial potential seriously.
Mr. Musk said he was aware of Mr. Altman’s efforts to create a for-profit company and to raise money from Microsoft. But the company had put a cap on the profits that would flow to investors, so, he said, he did not think it was a big problem.
OpenAI and Microsoft also had a plan to dissolve their partnership if OpenAI created artificial general intelligence, essentially a machine that can do anything the human brain can. That provided additional reassurance, Mr. Musk added.
But he said he became very concerned when Microsoft said in early 2023 that it had invested $10 billion in OpenAI. That was after the release of ChatGPT, which quickly became an industry sensation. Mr. Musk said he had sent Mr. Altman a text message asking, “What the hell is going on?” and calling the investment a “bait and switch.”
“They had essentially turned the nonprofit into a company with a $20 billion valuation,” he said.
Microsoft “is not going to put $10 billion into something unless they think they are going to get a very big return,” he added. “There is no other way they are going to think about it.” Mr. Altman and OpenAI offered him equity in the company after Microsoft’s investment, Mr. Musk said. But he did not take it.
“Frankly, it felt like a bribe,” Mr. Musk said.
But William Savitt, OpenAI’s lead counsel, implied that Mr. Musk’s testimony contradicted what he had said in depositions before the trial. Did he donate $38 million to OpenAI — as he said in his testimony — or $100 million? In a deposition, he said it was $100 million.
Their exchange grew combative. “Your questions are not simple,” Mr. Musk said. “They are designed to trick me, essentially.” In another retort, he said: “The classic answer to a yes-or-no question is not so simple. For example, if you ask the question, ‘Will you stop beating your wife?’”
Judge Yvonne Gonzales Rogers, who is presiding over the trial, cut him off. “No, we’re not going to go there,” she said.
Mr. Savitt also has a complicated relationship with Mr. Musk. He once represented Mr. Musk and Tesla in a securities fraud lawsuit over the carmaker’s acquisition of the solar company SolarCity. Then he switched sides and represented Twitter against Mr. Musk, after the billionaire tried to back out of his 2022 acquisition offer for the social media company.
After Mr. Musk completed his purchase of Twitter, now X, the company sued Mr. Savitt’s law firm, Wachtell, Lipton, Rosen & Katz, claiming that the firm’s earnings of $90 million for its representation of Twitter under previous management was “unjust enrichment.” The social media company dismissed its lawsuit last year.
Mr. Savitt returned to a number of emails Mr. Musk had discussed in his earlier testimony, and showed how they could be interpreted very differently. One email, Mr. Savitt said, demonstrated that as OpenAI explored a shift to a for-profit model in late 2017, Mr. Musk wanted a large stake in the organization and full control. That included the ability to choose a majority of the board members.
Mr. Savitt displayed other old emails in which Mr. Musk promised the other OpenAI founders that he would create a for-profit company with him in control.
As his testimony stretched into the afternoon, Mr. Musk became visibly frustrated with Mr. Savitt, calling his questions “definitionally complex.”
Mr. Musk also lashed out at Mr. Altman. Mr. Savitt displayed a 2018 email in which Shivon Zilis — a longtime employee of Mr. Musk’s, the mother of four of his children and a former OpenAI board member — asked Mr. Musk if she should stay close to OpenAI to keep feeding him information on the company.
Mr. Musk responded that Mr. Altman “did not keep the board informed, which was why he was fired from the company.” OpenAI’s board briefly forced out Mr. Altman in late 2023, but Ms. Zilis was not on the board at the time. He returned after five days of negotiations.
Mr. Musk now has his own A.I. company, xAI, which has become part of SpaceX. Mr. Savitt implied that Mr. Musk’s suit was just an attempt to delay OpenAI’s progress as his engineers improved xAI’s chatbot, Grok. He asked Mr. Musk if he agreed that Grok “lags much farther behind” ChatGPT.
“Not anymore,” Mr. Musk said.
(The New York Times has sued OpenAI and Microsoft, claiming copyright infringement of news content related to A.I. systems. The two companies have denied the suit’s claims.)
The trial and Mr. Musk’s testimony are expected to continue on Thursday.
Ryan Mac contributed reporting from Los Angeles.

