The US has agreed to help India with its nuclear energy and space technology in return for India's promise to use the assistance for peaceful purposes and to help block the spread of dangerous weapons.