The CW is diving into the Carrie Bradshaw business.

The network has scooped up “The Carrie Diaries” project — an origins story for the central “Sex and the City” character based on the book series by Candace Bushnell — from Josh Schwartz and Stephanie Savage’s Fake Empire banner and Warner Bros. TV. Former “Sex and the City” scribe Amy B. Harris is onboard to adapt the books and exec produce with Schwartz, Savage and Fake Empire’s Len Goldstein.

The “Carrie Diaries” team had a pitch meeting with CW execs on Friday that by all accounts went down as easy as a cranberry Cosmo. “They bought it in the room,” said a source.

Bushnell is likely to have an exec producer credit, though final details are still being hammered out.

The “Carrie Diaries” book series details Bradshaw’s high school years and how she first makes her way to Gotham to become a writer.

HBO is understood to have been supportive of CW’s pursuit of the project, which will make the process smoother for all involved given the pay cabler’s control of the “Sex and the City” TV and film franchises.

Reps for CW and Warner Bros. TV declined to comment.

Fake Empire is repped by WME. Harris is repped by CAA.