Kōkei (also Kogei; 皇慶: 977?–1049), the author of the Enoshima Engi, was an eminent Japanese Buddhist monk.
[citation needed] Kōkei is credited with the building of the Enryuji (円隆寺) Temple in Tango (丹後; ancient name for region to the north of Kyoto on the Sea of Japan) during the period 995–998.
Around 1026, he left Enryakuji and built a thatched hermitage in the Tanba region north of Kyoto at Ikegami (池上).
As the seventh generation disciple in a direct line from Ennin (圓仁), he was a learned monk who played an important role in the rise of the Tendai sect.
The Enoshima Engi, which he completed two years before his death, presented the goddess Benzaiten both as a protector of the state (in keeping with the Sutra of Golden Light) and as a savior of the people, thus expanding her role.