You will be redirected back to your article in seconds

HBO has ordered half-hour pilot “Crashing,” starring comedian Pete Holmes with Judd Apatow attached to direct, Variety has confirmed.

The project, which is loosely based on Holmes’ personal life, follows a sweet, wholesome comedian who is forced to stay on the couches of New York’s finest comics after his wife leaves him. Holmes and Apatow are exec producing, as is their manager, Dave Rath.

Apatow, who has a relationship with HBO as an exec producer of the Lena Dunham comedy “Girls,” is not adverse to exploring his standup heritage. His 2009 film “Funny People,” which starred his former roommate Adam Sandler, explored the dark side of success on the comedy circuit. He is repped by UTA, Mosaic and Ziffren Brittenham.

Holmes’ credits include his late-night TBS series “The Pete Holmes Show,” on which Apatow had appeared. He is repped by WME and Generate.

Deadline first broke the news of the pilot order.