Easy solution with no drawbacks: don't move to San Francisco.
I've lived here for a while, and I wouldn't move here to do a startup today. Whatever marginal advantage there may have been to founding something here (and it was always small) has been more than consumed by the ridiculous costs. There's not even a recruiting advantage to locating here -- unemployment amongst software engineers in the SF bay area is like -150%. Every experienced engineer gets recruited on a daily basis, by startup companies that are basically indistinguishable. Startups here are increasingly hiring remote just to make it work (which seems like the worst of all worlds, really.)
Unless you're doing something where your customer base is in San Francisco (i.e. writing something for startups...or maybe tourism), you should definitely be somewhere else. Go where your customers are.