He was born at Kurayashiki (Warehouse-residence) of Takamatsu clan's located in Osaka Nakanoshima (Osaka Prefecture) (present Kita-ku Ward, Osaka City) as a son of Yasunori KOZUKI, became a priest at Horaku-ji Temple in Settsu Province (Higashi-Sumiyoshi-ku Ward, Osaka City) at his age of 13 in accordance with his father's will and studied Esoteric Buddhism and Sanskrit under the guidance of Sadanori SHINOBITSUNA, the chief priest of the temple.
大阪中之島(大阪府)（現、大阪市北区(大阪市)）の高松藩蔵屋敷で上月安範の子として生まれ、父の遺言により13歳の時に摂津国の法楽寺（大阪市東住吉区）で出家、同寺の住職・忍網貞紀に密教と梵語（サンスクリット）を学ぶ。