The Gopalaswami Temple is dedicated to Krishna as cowherd. It is a cowherd with a stone which was needed to hit the cobra.

The legend tells us that the cobra was taken in the very act of drinking the milk of one of the cows in Puttaparthi and was hit by the stone of the cowherd. The cobra called down a curse upon the village and this temple was built to nullify the effect of the curse.