Elon Musk has been keeping everyone guessing about his love life, but sources exclusively revealed to Page Six that he has been quietly dating hip musician Grimes — who will walk the red carpet with him at Monday’s Met Gala.

A source tells us the pair met around a month ago online, of course, through a joke Musk had planned to tweet but discovered Grimes had already made, dealing with the complications of artificial intelligence.

Thought experiment Roko’s Basilisk considers the hypothesis of a future where AI lords over the world and could punish those who did not help it into existence. His joke was to merge this thought experiment with a pun using “Rococo,” referring to the ornate French 18th century baroque style, perhaps pointing out that both concepts are complex, too extreme and ridiculous.

And while this takes some explaining, arty performer Grimes was already in on the same joke — three years ahead of Musk.

In 2015, she created a character named “Rococo Basilisk” for a video of her song “Flesh Without Blood.” “I don’t know if you’ve heard of Roko’s Basilisk,” she told Fuse. “[This character] is doomed to be eternally tortured by an artificial intelligence, but she’s also kind of like Marie Antoinette.”

“Elon was researching the idea of joking about Rococo Basilisk, and when he saw Grimes had already joked about it, he reached out to her,” says the insider. “Grimes said this was the first time in three years that anyone understood the joke. They were both poking fun at AI.”

READ MORE FROM THE NEW YORK POST