A new electrolyzer for artificial photosynthesis automatically adapts to varying conditions eliminating the need for external energy storage.