The short answer
Vishnu’s serpent is Shesha. He is also called Adishesha, Ananta and Sheshanaga. Many texts show him as the couch on which Vishnu rests in the cosmic ocean.
What Shesha does
Shesha is usually pictured as an enormous serpent coiled in the cosmic ocean, forming a bed for Vishnu. In some Puranic accounts he also supports the earth, either on his hoods or within his coils. He is commonly described as a king of the nagas, the serpent beings of Hindu mythology.
How he is shown
Artists often show Shesha with five, seven or ten hoods. Classical texts frequently describe a thousand heads, so the number varies with the source and the artist. The scene of Vishnu resting on him is called Ananta-shayana or Shesha-shayana.
The names he goes by
Shesha is commonly translated as “remainder” or “that which remains.” Adishesha, meaning the first or original Shesha, is a common alternative form. Ananta means “endless,” and it is the name Shesha shares with Vishnu. Sheshanaga joins his name to naga, the word for serpent beings. The wider story behind the name Ananta, including its temples and festivals, is told in ananta hinduism.
Vasuki is a different serpent
Vasuki is another serpent, distinct from Shesha. In the story of the churning of the ocean, Vasuki is the one wrapped around the mountain as a rope, while Shesha stays beneath Vishnu. The wider group of serpent beings is covered in nagas hindu mythology.
Shesha in the epics
Some traditions link Shesha with figures from the epics. The Bhagavata Purana identifies Balarama, Krishna’s elder brother, with Shesha. Some traditions describe Lakshmana, Rama’s brother in the Ramayana, as a form of Shesha too. Not every tradition accepts these links.
Garuda and the serpents
Garuda, the eagle-like vehicle of Vishnu, is traditionally cast as an enemy of serpents. Stories of that rivalry form part of garuda hindu mythology. They offer a contrast with the picture of Shesha resting calmly beneath Vishnu.