Allen is to shoot his untitled project this summer. The cast will also include Bobby Cannavale, Michael Emerson, Sally Hawkins, Peter Sarsgaard, Max Casella and Alden Ehrenreich, Allen announced Monday.
The Gravier Productions film is being produced by Allen's long-time producers Letty Aronson and Stephen Tenenbaum.
This marks Allen's second time directing in San Francisco; his directorial debut, 1969's "Take the Money and Run," was also set there.
Allen recently won an Academy Award for Best Original Screenplay for "Midnight in Paris." His upcoming film, "To Rome with Love," will be released June 22 by Sony Pictures Classics.