The core Torah obligation is anchored in the pasuk "Zachor et yom haShabbat lekadsho" (Shemot 20:8), paired with "Shamor" in Devarim 5:12-15 and the account of God's own sanctification of the seventh day in Bereishit 2:1-3 and the mikra kodesh language of Vayikra 23:1-3; the Gemara in Pesachim 106a reads "lekadsho" as "zochrehu al hayayin," deriving from the repeated word in the pasuk that remembrance is required both by night and by day, and this is codified as a Torah-level positive commandment by Rambam (Mishneh Torah, Sabbath 29:1-18), Sefer HaMitzvot, Positive Commandments 155, and Sefer HaChinukh 31:1-2.
That women are equally bound, despite kiddush being a time-bound positive mitzvah from which women are normally exempt, is derived in Berakhot 20b from the hekesh of "zachor" to "shamor" — since women are included in the prohibition against melacha (shamor), they are included in the remembrance (zachor) as well — and this is codified in Shulchan Arukh, Orach Chayim 271:2 and Tur, Orach Chayim 271.
A major layer of the practice is explicitly rabbinic: Pesachim 117b records that the Sages (Anshei Knesset HaGedolah) formulated the specific brachah text in past tense ("asher kidshanu... vetzivanu") and required mention of yetziat Mitzrayim within Shabbat kiddush, a wording Peninei Halakhah, Shabbat 6:2 frames as the Sages' effort to give everyone a precise, perfect formula for fulfilling the Torah-level remembrance, instituting recitation over a cup of wine before the meal for dignity and pleasure.
Whether the requirement to recite kiddush specifically over a cup of wine is itself Torah law or a rabbinic institution is a real machlokes among the Rishonim and later authorities. Tosafot on Pesachim 106a holds that kiddush over wine is only an asmachta and mi'drabbanan, while Torah-level kiddush is fulfilled through the Shabbat prayer (as reflected in the mention of yetziat Mitzrayim difficulty raised by Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 271:6); HaKtav VeHaKabbalah, Shemot 20:8 and the Ramban likewise trace the drashah "zochrehu al hayayin" to Chazal rather than to the plain meaning of "lekadsho." Shulchan Arukh HaRav, Orach Chayim 271:1-2 records the view that only entrance-kiddush is Torah law while havdalah is entirely mi'divrei sofrim, and Shulchan Arukh HaRav, Orach Chayim 289:2-3 states outright that day-kiddush (kiddusha rabba) was instituted by the Sages and is marked as rabbinic by omitting the full kiddush brachah, retaining only borei pri hagafen. Ketzos HaShulchan 78 frames the dispute as whether the Torah obligation is fulfilled primarily in prayer with wine added by the Sages, or primarily over wine with prayer added by the Sages, concluding in either case that an obligation exists; Sefer HaChinukh 430:10 similarly treats most surrounding brachot as rabbinic apart from one biblical exception. Teshuvot haRashba IV:295 and Sefer HaTashbetz IV:3:32 both affirm that kiddush al hakos is Torah-level, with Anshei Knesset HaGedolah only supplying the wording and structure.
Several later works return to this same machlokes and its practical stakes: Nishmat Shabbat vol 1:246 holds that reciting the Shabbat-sanctity verses such as Vayechulu or Veshamru itself discharges the Torah obligation, while Nishmat Shabbat vol 2:62 surveys the Rishonim's dispute and concludes that normative halacha treats kiddush and kiddush bimkom seudah as rabbinic; Nishmat Shabbat vol 2:54 adds that several authorities hold one who has already mentioned Shabbat's sanctity in prayer has fulfilled the Torah obligation, making kiddush over the cup rabbinic, though the Shulchan Arukh HaRav holds a rabbinic obligation need not carry the same conditions. Maamar Mordechai Hilchot Shabbat 16:1 and Maamar Mordechai Hilchot Shabbat 16:134 record a formula intended to discharge both the Torah-level mitzvah to sanctify Shabbat in words and the rabbinic mitzvah to make kiddush over wine, reflecting the same dual structure. Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 125:1 separately notes that some mekubalim treat the parallel mitzvah of "venikdashti" as Torah-level, though the accepted position among the Rishonim treats it as rabbinic with only an asmachta from the pasuk.
Beyond the brachah text itself, Chazal shaped the practice of kiddush: Pesachim 106b permits reciting kiddush over bread rather than wine when preferred, Pesachim 102a discusses interrupting a meal already underway when Shabbat arrives, and Bava Batra 97b establishes that the wine used must be respectable and not foul or uncovered. These rabbinic details are organized in Shulchan Arukh, Orach Chayim 271:1, Tur, Orach Chayim 271, Abudarham, Shabbat Prayers, Kiddush 3, and Mishnah Berurah 271:1-2, and the structure of the daytime kiddush meal is set out in Shulchan Arukh, Orach Chayim 289:1-2. The Gemara's broader framework of rabbinic enactments tying wine to festive joy, as in Pesachim 109a regarding simcha on Yom Tov and Pesachim 109b regarding the four cups, situates kiddush's wine requirement within a wider rabbinic pattern of sanctifying occasions through a cup.
Whether kiddush on Yom Tov carries the same Torah-level standing as Shabbat kiddush is itself unsettled: Nitei Gavriel, Yom Tov vol 2, perek 29 presents the obligation as generally modeled on Shabbat kiddush while noting that authorities dispute whether it is biblical or rabbinic, and Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 472:58 rules that the majority view treats Yom Tov kiddush as Torah law, affecting the order of brachot when Yom Tov falls on Friday night.
Har Tzvi (Har Tzvi OC 91) rules that kiddush recited before nightfall must be repeated once night falls, because the earlier brachah could not discharge a Torah obligation that had not yet taken effect, while noting the Magen Avraham's position that one can fulfill the obligation during tosefet Shabbat even according to the view that such addition is only rabbinic.
Mishneh Halachos 6:58 takes up whether kiddush recited in prayer and at home carries Torah-level weight, arguing that kiddush at home in the place of the meal may itself have biblical standing, and concludes that someone who ordinarily recites his own kiddush may nonetheless fulfill his obligation by hearing it from another without requiring annulment of a vow.
Shevet HaLevi 6:61 debates whether Yom Tov kiddush is Torah-level or rabbinic, weighing sources that derive the obligation separately for each festival against the view that Yom Tov's being termed "Shabbat" extends Shabbat's own kiddush obligation to it, and concludes that the question remains unresolved because the major authorities are divided.