"Altered Carbon" by Richard K. Morgan: primarily takes place in a futuristic Bay Area, including San Francisco. explores a world of technology, body swapping, and cyber intrigues.<p>"The Diamond Age" by Neal Stephenson: a setting in a future San Francisco, handle topic nanotechnology<p>"Counting Heads" by David Marusek: futuristic vision of San Francisco, focus on technology and AI.<p>"Autonomous" by Annalee Newitz: not exclusively in San Francisco, handles AI, piracy, and corporate control.<p>Why explicit San Francisco? :)
Taking the possibilities into account, there's might be no San Francisco anymore in some near distant future. Watch San Andreas for that. We'll need Dwayne Johnson in the future, as he's experienced being that one role player. Hahahaha
Earth Abides by George R. Stewart is a more gentle post-apocalyptic story, but very beautiful. Not really much in the way of hackers. I like how it chronicles a procession of animal population boom and bust cycles that would naturally happen in the wake of humans disappearing.
Phillip K Dick has many short stories that take place in SF. The Minority Report collection is a good read. The titular story is not in SF, but several others are.
"The Man In the High Castle" by Phillip K. Dick takes place in an alternate reality San Francisco where the Japanese and Germans won World War II. The main character is a Jew hiding from extermination who runs a shop selling Pre-World War II American memorabilia. There are a few sci-fi things like global rocket travel in there, and definitely plenty of dystopia.
I particularly enjoyed "The Great Bay" by Dale Pendell. It's a collection of short stories that are linked through the next 16,000 years of Californian history after a 2021 global pandemic and subsequent environmental catastrophe.
The Fact of The Moon Is Stranger Than Most Dreams by Jacob Daniel Palmer is shockingly good. Honestly, the best thing I’ve read in years. “ In a near future, slowly collapsing America, three bumbling stoner artists fall into a universe of murder and high strangeness.<p>Abram, a frustrated artist, and his girlfriend Edie, a successful artist and successful stoner, live in a nearly abandoned San Francisco along with Abram's best friend Kenner, a transient, philosophy-spouting psychonaut. Days run together in this post-work, climate-ravaged metropolis, until a stranger slips Abram a memory card loaded with cryptic government documents, flinging the trio into a bizarre world of hired assassins, aliens, bio-terrorists, and virtual reality deities. On the run, pursued by an evil they can't imagine, are they actually in danger, or are they unwitting pawns in a plot to put the dying Earth out of its misery? A psychedelic road story, it’s an intoxicating, absurd, conspiracy-laden ride into a not so distant future.”