Allie X released her extended play
Super Sunset in 2018.
Cape God was originally intended as a sister record to the EP, though Allie X later decided to split the project into a separate album. She contrasted her approach to writing
Cape God with what she had taken for her previous releases. While she stated that her previous releases involved experimentation with "alter egos",
Cape God was "a pretty personal, pretty intimate body of work". In an ask-me-anything session on
Reddit, Allie X noted that "it was easier [for her] to make this record than any other" and that "[the process] happened very seamlessly." Allie X drew inspiration for the album from the characters within
Heroin: Cape Cod, USA, a 2015 documentary about the
opioid epidemic in
Massachusetts. She wrote songs from the point of view of one of the documentary's characters, and developed a fictionalized
Cape Cod in her mind as a way to reflect on her personal experiences. She met producer
Oscar Görres and songwriter James Alan Ghaleb in Stockholm, shortly after writing the opening line for the album's first track "Fresh Laundry". She described her songwriting process as "seamless, therapeutic, and very enjoyable," though she also credited Görres's production for being able to complement her "layered kind of complex lyrics".
Cape God was Allie X's first album to feature vocal
duets. She began work with feature artists
Troye Sivan and
Mitski in 2018. The standard edition album cover photograph was shot in a cave in
upstate New York by Brendon Burton, using natural light and a smoke bomb. ==Songs==