Best place to stay in SF/Bay Area for cycling?

I’m going to be in San Francisco for a few days later this year on an extended layover before heading onto Ohio and Canada, I’ll probably be in SF from August 20th-24th, and looking to do some road riding but not too sure which area would be best to stay - any advice? Probably not going to be renting a car, so looking for a good area that won’t involve travelling to far to get a few good rides in.

Its been a few years since I was last there, and the only ride I managed was across the Golden Gate Bridge and around downtown on a cheap rental from Fishermans Wharf. Looking to do a lot more riding while I’m there this year.

Also, does anyone know of any good rental places that also do group or guided rides?