System for gas treatment of cellular implants. The system enhances theviability and function of cellular implants, particularly those with highcellulardensity, for use in human or veterinary medicine. The system utilizes aminiaturized electrochemical gas generator subsystem that continuouslysuppliesoxygen and/or hydrogen to cells within an implantable and immunoisolated cellcontainment subsystem to facilitate cell viability and function at highcellulardensity while minimizing overall implant size. The cell containment subsystemisequipped with features to allow gas delivery through porous tubing or gas-onlypermeable internal gas compartments within the implantable cell containmentsubsystem. Furthermore, the gas generator subsystem includes components thatallow access to water for electrolysis while implanted, thereby promoting long-term implantability of the gas generator subsystem. An application of thesystemis a pancreatic islet (or pancreatic islet analogue) implant for treatment ofType 1diabetes (TID) that would be considered a bio-artificial pancreas.