You have right to 1 night for free in Monte do Gozo shelter if you are a pilgrim. But Santiago de Compostela is such a fascinating town that you should stay there for a few more days. This hostel is very popular among pilgrims. You just pay a donation of 5 euros per night in a dormitory. You can use the washing machine.