Outer Co(II) ions in Co-ZIF-67 reversibly adsorb oxygen from both gas phase and liquid water.