So I read this story 3-4 years ago, and I remember it being average novel length, but I cannot find it. All I remember is that the main character is best friends with the guy that invented the first virtual reality game. He is dragged into it by his friend and play on his friend's team. Then there are government spies for some reason (I don't remember why) and the main character ends up falling in love with one of his team mates who turns out to be an AI.
I'm pretty sure this is all set in the US and at least one of the spies is from the Australian government and the main character is a struggling freelance writer. I remember theThe main character's mom being really important tois on life support and he's the story but I don't remember whyonly one paying for it. And one of the people on the team had a pet salamander thing in the game.