From the San Mateo Daily Journal:
On New Year’s Eve, Caltrain will offer free rides after 11 p.m. Those planning to party in San Francisco can stay a little after the countdown to take advantage of four post-midnight trains which will leave the San Francisco station at 12:45 a.m., 1:15 a.m., 1:45 a.m. and 2:15 a.m. Additional trains will make all local stops to the San Jose Diridon station. Remember, drinking will not be allowed on Caltrain after 9 p.m. To plan a trip on Caltrain visit http://www.caltrain.com.
SamTrans will offer free rides from 11pm until 2am.
SF Muni is free from 8pm until 6am
Also BART is running until 3am, though rides are not free.
And if you’ve had too much closer to home, check this out:
AAA offers a free tow of a car up to five miles through its Tipsy Tow Program. The offer, good from 6 p.m. Dec. 31 through 6 a.m. Jan. 1 is offered to all drivers in Northern California, membership is not required. Those in need of a tow can call (800) 222-4357 (AAA-HELP).