Self-regulating electrolytic gas generator and implant system including the same. In one embodiment, the electrolytic gas generator is a water electrolyzer and includes a polymer electrolyte membrane with an anode on one side and a cathode on the other side. Anode and cathode seals surround the peripheries of the anode and cathode and include inlets for water and outlets for oxygen and hydrogen, respectively. A cathode current collector is placed in contact with the cathode, and an anode current collector, which may be an elastic, electrically-conductive diaphragm, is positioned proximate to the anode. The anode current collector is reversibly deformable between a first state in which it is in direct physical and electrical contact with the anode and a second state in which it distends, due to gas pressure generated at the anode, so that it is not in physical or electrical contact with the anode, causing electrolysis to cease.