Planets in a cosmic sky