The homeless web developer whose job hunt went viral when he handed out resumes along a busy freeway finally has a roof over his head — at least for now.

“It’s absolutely a relief to be able to get some sleep,” David Casarez told The Post on Wednesday morning from his hotel room in Mountain View, California.

After running out of cash while pursuing his dream of starting his own tech company, Casarez said he spent about a year living in his car and then a month on a bench in Rengstorff Park when his van was repossessed.

“Sleeping in the park was very restless because you have to be up every few hours just to ensure your surroundings are safe,” the Texas A&M University graduate said.

On Friday, Casarez woke up from his park bench, put on a collared shirt and tie and handed out his resume on a nearby highway median.

“I thought it was just a normal thing to do,” he said.

A passerby’s photo of him standing on the medium with a sign that read “HOMELESS. HUNGRY 4 SUCCESS. TAKE A RESUME” went viral on Twitter and people started flooding Casarez with job opportunities.

He called the experience “surreal” — and said he’s grateful he can finally breathe a sigh of relief, especially when it comes to his housing situation.

A nonprofit that trains people to be software engineers called the Lambda School is putting Casarez up in a hotel until Friday and gave him a $500 Airbnb certificate.

Casarez said he’s browsing for cheap rooms that run between $40 and $50 a night so he can stay for about 10 days.

“I’m not really picky, I just want a place where I can sit down and be able to respond to opportunities,” he said.

Casarez said he’s gotten hundreds of opportunities so far as people have reached out and offered to pass along his resume to the human resources departments at tech companies, including giants Google, Tesla and Facebook.

Now that he can finally relax a little, Casarez said, he’s combing through all the opportunities and setting up phone interviews. He’s had two already.

“This is a long process that is going to take some time,” he said. “It’s not that simple.”

But he said he’s thankful for the chance to apply and is feeling very “positive about the whole situation.”