Flight
It's best to fly into Oakland (if you can) to avoid the Bay Bridge toll!
Flight
If you fly into SFO, you can stay in San Francisco if you would like BUT keep in mind that there's a bridge toll of $8 dollars(electronic, no cash) to drive back from Oakland.