The early Buddhist texts describe yogic and meditative practices, some of which the Buddha borrowed from the śramaṇa tradition. The Pali canon contains three passages in which the Buddha describes pressing the tongue against the palate for the purposes of controlling hunger or the mind, depending on the passage. However, there is no mention of the tongue being inserted into the nasopharynx as in true khecarī mudrā. The Buddha used a posture where pressure is put on the perineum with the heel, similar to even modern postures used to stimulate Kundalini. Some of the major suttas that discuss yogic practice include the Satipatthana sutta (Four foundations of mindfulness sutta) and the Anapanasati sutta (Mindfulness of breathing sutta).
Yoga gurus from India later introduced yoga to the West, following the success of Swami Vivekananda in the late 19th and early 20th century with his adaptation of yoga tradition, excluding asanas. Outside India, it has developed into a form of posture-based physical fitness, stress-relief and relaxation technique. Yoga in Indian traditions, however, is more than physical exercise; it has a meditative and spiritual core. One of the six major orthodox schools of Hinduism is also called Yoga, which has its own epistemology and metaphysics, and is closely related to Hindu Samkhya philosophy.
Śaradatilaka of Lakshmanadesikendra, a Shakta Tantra work 11th century CE "Yogic experts state that yoga is the oneness of the individual soul (jiva) with the atman. Others understand it to be the ascertainment of Siva and the soul as non-different. The scholars of the Agamas say that it is a Knowledge which is of the nature of Siva’s Power. Other scholars say it is the knowledge of the primordial soul." (SaTil 25.1–3b)
^ James Mallinson, "Sāktism and Hathayoga," 28 June 2012.