Gas cell, in particular for inclusion in an atomic sensor such as an atomic clock, an atomic magnetometer, or an atomic gyro, being associated on one hand with at least one laser emitting an incoming exterior laser beam striking the cell and, on the other hand, with a photodetector for receiving an exterior laser beam exiting the cell, the laser beam having penetrated the cell, the cell comprising an optical cavity provided with at least one optical window and capable of being filled with a gas, the cell comprising - a sealing basin having ∘ a cavity mouth adapted to allow a passage of gas between the sealing basin and the optical cavity, ∘ a channel mouth designed to allow gas to enter the sealing basin via a gas inflow channel, and ∘ a sealing access, - a multilayer assembly having, on one hand, • a shapeable plate or wafer hollow-shaped such that it has a recess opening into at least one opening, wherein said recess can be filled with a gas, and, on the other hand; • at least one glass plate or wafer hermetically closing said opening of the recess to form the optical cavity provided with at least one optical window, the glass plate or wafer and the hollow-shaped plate or wafer being arranged facing one another and sealed to one another, in particular by anodic bonding, and - a membrane being a part of the glass plate or wafer and hermetically closing the sealing access of the sealing basin, the cell being arranged such that the membrane can hermetically close at least one of the cavity mouth and the channel mouth when said membrane is plastically deformed by heating, in such a way as to hermetically separate the optical cavity from the gas inflow channel. the cell comprising - a sealing basin having ∘ a cavity mouth adapted to allow a passage of gas between the sealing basin and the optical cavity, ∘ a channel mouth designed to allow gas to enter the sealing basin via a gas inflow channel, and ∘ a sealing access, - a multilayer assembly having, on one hand, • a shapeable plate or wafer hollow-shaped such that it has a recess opening into at least one opening, wherein said recess can be filled with a gas, and, on the other hand; • at least one glass plate or wafer hermetically closing said opening of the recess to form the optical cavity provided with at least one optical window, the glass plate or wafer and the hollow-shaped plate or wafer being arranged facing one another and sealed to one another, in particular by anodic bonding, and - a membrane being a part of the glass plate or wafer and hermetically closing the sealing access of the sealing basin, - a sealing basin having ∘ a cavity mouth adapted to allow a passage of gas between the sealing basin and the optical cavity, ∘ a channel mouth designed to allow gas to enter the sealing basin via a gas inflow channel, and ∘ a sealing access, ∘ a cavity mouth adapted to allow a passage of gas between the sealing basin and the optical cavity, ∘ a channel mouth designed to allow gas to enter the sealing basin via a gas inflow channel, and ∘ a sealing access, - a multilayer assembly having, on one hand, • a shapeable plate or wafer hollow-shaped such that it has a recess opening into at least one opening, wherein said recess can be filled with a gas, and, on the other hand; • at least one glass plate or wafer hermetically closing said opening of the recess to form the optical cavity provided with at least one optical window, the glass plate or wafer and the hollow-shaped plate or wafer being arranged facing one another and sealed to one another, in particular by anodic bonding, and • a shapeable plate or wafer hollow-shaped such that it has a recess opening into at least one opening, wherein said recess can be filled with a gas, and, on the other hand; • at least one glass plate or wafer hermetically closing said opening of the recess to form the optical cavity provided with at least one optical window, the glass plate or wafer and the hollow-shaped plate or wafer being arranged facing one another and sealed to one another, in particular by anodic bonding, and - a membrane being a part of the glass plate or wafer and hermetically closing the sealing access of the sealing basin, the cell being arranged such that the membrane can hermetically close at least one of the cavity mouth and the channel mouth when said membrane is plastically deformed by heating, in such a way as to hermetically separate the optical cavity from the gas inflow channel.