When Konoefu (the Headquarters of the Inner Palace Guards) was established in 765, Naikyuryo handling horse boxes in the Imperial Court was departed simultaneously, and government officials of Konoefu basically took this position concurrently.
765年の近衛府設置と同時に宮中の厩を扱う内厩寮（ないきゅうりょう）が分離されて基本的に近衛府の官人がこれを兼ねた。