OpenAI filed a countersuit against Apple on Friday, accusing the company of “unlawful, tortious, and unfair business practices” in an escalating dispute over trade secrets tied to their competing efforts to develop AI-enabled devices.

The case began in July, when Apple sued OpenAI and two former Apple employees who joined OpenAI, alleging they stole the iPhone maker’s trade secrets to develop an AI device. OpenAI disputed the allegations. Months later, it filed a court document accusing one of its former employees of taking device-related trade secrets to Apple.

OpenAI’s countersuit, filed in Northern California federal court, alleges Apple encourages employees to store work files on personal iCloud and iMessage accounts, making it difficult to distinguish work material from personal information. It says employees leaving for a competitor are told to exit the same day, preventing “the departing employee from working with Apple to separate out Apple confidential information and messages from personal information.”

The complaint says the policy creates “trapdoors” that enable Apple “to accuse former employees of trade secret theft.”

An Apple spokesperson rejected OpenAI’s claims. “This case is about OpenAI employees deliberately stealing, accessing, and using Apple’s secret and confidential information regarding our unreleased technologies, processes, and products — not about inadvertent retention of Apple information,” the spokesperson said.

“OpenAI’s counterclaims are a transparent attempt to distract from the substance of Apple’s lawsuit, in which OpenAI has already been ordered to stop using Apple’s confidential information,” the spokesperson added.

Apple says it trains employees to keep work and personal files separate through a work-specific iCloud account. It also says it does not pursue claims against former employees who accidentally retain files on personal iCloud accounts.

Apple has previously said it found no evidence supporting OpenAI’s trade-secret theft allegations. It says it has strict policies to prevent new employees from using confidential information from former workplaces and would work with OpenAI to address any of OpenAI’s information found on Apple’s systems. OpenAI declined to comment beyond the contents of Friday’s lawsuit.

The complaint also alleges Apple filed its lawsuit because it is struggling to compete, saying the company “has struggled to incorporate innovative AI capabilities into its previously popular products.” It accuses Apple of pressuring vendors not to work with OpenAI.

OpenAI said it is developing new AI-enabled personal electronic devices that could challenge Apple in a market the complaint describes as Apple’s own turf. OpenAI announced a project last year with Apple’s former design chief to build devices intended to bring smartphone users into the age of AI.

Apple has been working to catch up with technology rivals in AI, beginning with a major revamp of Siri. Amazon, Meta, Google and numerous start-ups have also sought a place in the AI gadget race.

Both companies have requested a jury trial. The dispute is part of the broader competition among technology companies to develop personal devices for the AI era.