San Francisco  (AFP)

Tesla and SpaceX tycoon Elon Musk lashed out Monday at a partnership between OpenAI and Apple, saying the threat to data security will make him ban iPhones at his companies.

"Apple has no clue what's actually going on once they hand your data over to OpenAI. They're selling you down the river," Musk said in a post on X, which he also owns.

Musk is building his own rival to OpenAI, xAI, and is suing the company that he helped found in 2015.