The Kulayarāja Tantra (Tibetan phonetically: Kunjed Gyalpo, Tibetan: ཀུན་བྱེད་རྒྱལ་པོའི་རྒྱུད་, Wylie: Kun-byed Rgyal-po'i Rgyud; English translation: "All-Creating King") is a Buddhist Tantra extant in Tibetan which centers upon the direct teachings of the primordial, ultimate Buddha (Adibuddha), Samantabhadra. Samantabhadra is presented or personified in this tantric Buddhist text as bodhi-citta, the Awakened Mind, the "mind of perfect purity". In the Kunjed Gyalpo, Samantabhadra discourses to Vajrasattva who asks questions in clarification. This tantric work is the principal 'mind-series' (Wylie: sems sde) text of the Dzogchen view of the Nyingma school of Tibetan Buddhism. Importantly, the Kunjed Gyalpo is the first text in the Tsamdrak edition of the Nyingma Gyubum.
The full title of the original work in Sanskrit is the Sarvadharma Mahasandhi Bodhichitta Kulayarāja Tantra; in Tibetan (rendered phonetically) it is Chö Tamched Dzogpa Chenpo Changchub Kyi Sem Kunjed Gyalpo.
In the Kulayarāja Tantra, Samantabhadra tells of how he, the 'All-Creating King', is the essence of all things, beings and all Buddhas and that to know him, the Awakened Mind, is to attain the essence of Reality:
"I am the existential ground (gnas chen) of all Buddhas" and "... the root of all things is nothing else but one Self ... I am the place in which all existing things abide."
For a being to recognise their own Bodhicitta or Samantabhadra Buddha (eternally existent) is to be liberated. Because sentient beings and all other phenomena arise because of Bodhicitta or the Mind of Perfect Purity, Samantabhadra refers to them in his teaching as his "children". Samantabhadra Buddha states: