James Corden says he hopes to revive a sitcom he agreed to write for HBO before he began hosting his US talk show.
The British funnyman said he rejected two offers to present The Late, Late Show before he took on the role in 2015 because he planned to work with the cable television network, which makes hit dramas Game Of Thrones and True Detective.
James, 38, said he met with Les Moonves, chief executive of US television network CBS, after they offered him the chance to write a sitcom following his successful run in Broadway play One Man, Two Guvnors.
Appearing at Entertainment Weekly's PopFest in Los Angeles, James said: "I had an idea for a show, which I'd still very much like to write actually, and as it started to form in my head, it felt like it wasn't a network show to me.
"I called them and I said 'I'm going to write this show for HBO, I've done this deal with HBO' and for a lot less money than they were offering and I think Les just wanted to know why.
"I just said to him: 'This show I'm going to write is not going to be on your network. You're going to pay over the odds for it. Then you're going to want to change it. I'm going to hate you changing it. You're going to hate me. I'm going to hate you. And this will never work.'"
James said he spoke to Les during their meeting about the appointment of Stephen Colbert as David Letterman's replacement as the host of The Late Show and the pair began discussing ideas for The Late, Late Show.
He added: "At that point I was never talking about it like I was going to do this. I was going to do (Broadway play) A Funny Thing Happened On The Way To The Forum, I'm writing this show for HBO, so I felt like my next two years were set really.
"About three hours later I was offered (The Late, Late Show) and I said no. They offered it me again and I said no. It just went on and on."
James said he eventually decided to accept the job of hosting The Late, Late Show while filming in a prison in Johannesburg, South Africa, for the BBC.
He said: "I was really missing my family and my son and I thought what am I doing? Here's someone offering me a job and an opportunity which creatively could be beyond anything I've ever known.
"From a family point of view, I'll get to be around my family. This is only going to get harder.
"My wife was pregnant, my son was three. I'm Skyping them on my birthday. I thought we can be together in one place. What's this all for if it's not that.
"I thought, this is utterly terrifying but that's the reason to do it."
During his appearance at EW's PopFest, James invited audience members on stage to recreate his Carpool Karaoke appearance featuring Adele.