The final resting place - or just a pit stop - for countless late night adventures, Bagdad Cafe serves passable food at all hours!
A few folks have commented about Bagdad (thank you!) - it is not fine dining, nor is it Iraqi cuisine, but it is open 24/7 :)
Across Market St, Cafe Flore has outdoor seating and serves alcohol :)
Address: 2295 Market St, SF, CA
Website: http://www.bagdadcafesf.com/