The performance of CuxIn2−xSy quantum dots in energy harvesting devices is controllable by stoichiometry and the formation of distinct defects.