According to "Koji-ruien" published by Jingu Shicho (Jingu Administration Office), its origin is Shokujo-sai of the Engishiki (an ancient book for codes and procedures on national rites and prayers).
神宮司庁発行の『古事類苑』歳時部・七夕によると、延喜式の織女祭を起源とする。