The Homeless Advocacy Project provides legal assistance for people who are experiencing homelessness in SF. You can learn a lot about the services they offer on the SF Homeless Resource Wiki.
Contact
1360 Mission St., 2nd Fl. (Btwn. 9th & 10th), 94103
415-575-3130