Onmyoji (pronounced as on-myo-ji or on-yo-ji, meaning oracle) was the name of a government post in the Onmyoryo (Bureau of Divination) of the Nakatsukasasho (Central Affairs Ministry) under the Ritsuryo legal system of ancient Japan.
陰陽師（おんみょうじ、おんようじ）とは、古代日本の律令制下に於いて中務省の陰陽寮に属した官職の1つである。