Coffee Shops Open Late Night in SF for Engineers Who Work Off-Hours
Yemeni coffee shops fill the gap left by daytime cafes closing early.

Late-night coffee shops give SF engineers a place to work when they have had enough of the apartment and a long day at the office. There are few good choices, and Yemeni coffee houses lead the way by staying open after most daytime cafes close. The deciding factors are closing time and whether the shop can support the work you need to finish.
Why late-night workspaces are scarce in SF and who actually needs them
Most of SF’s third-wave cafes close by early evening. That leaves few places to sit just when engineers who keep non-standard hours need them. As AI and startup work fills SoMa and Hayes Valley, the daytime cafe schedule covers only part of the working day. An async standup after dinner or a midnight debugging session falls outside it.
Sometimes an engineer needs to get out of the apartment and have a place to open a laptop without going to a bar. A cafe after 9pm serves a different purpose from a morning espresso stop. Its usefulness depends on how long it stays open, whether there is room to sit, and whether the laptop can stay powered. Those are separate questions, and a late closing time answers only one.
How Yemeni coffee houses came to own SF's late-night cafe scene
Yemeni coffee houses have filled much of that gap. Delah Coffee, Heyma Yemeni Coffee, and Haraz Coffee House occupy evening hours that daytime third-wave roasters leave open. Their drinks help make the shops destinations beyond laptop work, with cardamom-spiked coffees, saffron lattes, and Adeni chai drawing evening foot traffic that a plain espresso bar might not. The menu is part of the draw. That gives engineers a useful overlap between a place people want to visit at night and a place where some work can happen. That overlap explains why these names lead a late-night guide, though their infrastructure varies.
The venues that are actually open late, with their hours and what to expect
The hours below are based on the information this guide had in October 2026. Call ahead before a session that matters, because hours change with the seasons. A closing time is useful only for the right branch and day. Missing details about hours or power are left clear here, since the shops may differ in what they have for laptop work.
Delah Coffee, 370 4th St, SoMa, midnight. Wifi is available, but outlets are limited to corners, so arriving early gives you a better chance of getting one. Seating can get crowded as the evening develops. The branch distinction is important here. Delah’s Financial District location closes at 8pm on weekdays, so its name alone is not enough to identify a midnight workspace.
Heyma Yemeni Coffee, 248 9th St, SoMa, midnight. Heyma is known for its unusual lattes and good coffee and is another place to go late in the same neighborhood. Its outlet situation is less documented than Delah’s or Haraz’s. The midnight close makes it useful for a late stop, but does not establish how well it supports a long laptop session.
Haraz Coffee House, 1452 Franklin St, Lower Nob Hill, open late. Haraz has a spacious layout, natural light, and plenty of outlets, giving it the strongest documented power provision among these Yemeni shops. It gets busier in late afternoon and evening with the laptop crowd. The space is a draw in its own right. Its exact closing time is a detail to establish before planning the end of a session.
Cafe Terminus, Financial District, 2am. This is the latest-closing dedicated cafe in the guide, with wifi available for engineers on genuinely extreme schedules. Outlet density is less well documented, so the late hours do not establish whether you can keep a laptop powered. Still, the extra time is substantial. When a midnight close would cut a session short, Terminus is the backstop.
Legends Cafe & Creamery, North Beach / Telegraph Hill, 2am. Legends extends the North Beach options beyond midnight, though the available details say less about laptop infrastructure than they do about closing time. Its hours belong in the comparison. They should not be read as a promise of plentiful plugs or a fully equipped workspace.
Caffe Greco, North Beach / Telegraph Hill, midnight. Greco offers a sit-and-stay atmosphere rather than just a place to collect a drink and leave. That makes it a place to consider for a short evening of work. The distinction is comfort rather than documented infrastructure. Its midnight close is useful, but outlet availability is not established here.
Cavalli Cafe, North Beach / Telegraph Hill, 11:30pm Friday–Saturday. Cavalli closes at 11pm Sunday and Tuesday–Thursday, and at 10pm Monday, so how much time there is to work depends on the day. It has a large menu and outdoor seating at fair prices. Food and seating broaden its appeal. The weekend closing time should not be mistaken for its everyday schedule.
Caffe Trieste, 601 Vallejo St, North Beach, 10pm. Open since 1956, Trieste is the oldest espresso-based coffee shop on the West Coast and marked its 70th anniversary on April 1, 2026. Locals come to read and work late. The atmosphere skews analog and literary, quieter and more focused than a typical cafe.
The Social Study, Western Addition, 10pm. This mix of bar and café keeps the same evening hours, but it feels more like a bar, so it is better for winding down than for deep work. The closing time also limits the runway after a late event. A brief wrap-up is a better match than a long debugging sprint.
The real trade-off is that outlets and wifi thin out as hours extend
The best-equipped daytime work cafes often close before the late shift begins, while longer hours bring less predictable access to power. Haraz has plenty of outlets, Delah’s are corner-only and contested when crowded, and Heyma’s situation is less documented. Terminus comes closest to having both very late hours and wifi, but how many outlets it has is still unclear. The practical rule is to arrive fully charged or scout a corner outlet within the first five minutes, because a power-hungry multi-monitor session after midnight is not what these spaces are built for.
Which neighborhood to be in based on why you're working late
SoMa is the default for engineers working late near the office. Delah and Heyma give the neighborhood two midnight-close Yemeni cafes within blocks, which fits someone leaving an evening session at 10pm. The appeal is the short handoff from one place to the next. There is no need to make coffee the main event. For this use case, proximity and enough time to finish a task can count for more than finding the most elaborate workspace.
Hayes Valley, often called Cerebral Valley in the startup context, serves a different role. It is a social and networking corridor, but the available information does not establish its neighborhood cafes as late-night work destinations. Those are not interchangeable qualities. Being surrounded by startup activity does not guarantee somewhere to sit with a laptop after 9pm.
North Beach suits engineers who want atmosphere over infrastructure. Trieste, Greco, Cavalli, and Legends give it a cluster of choices, with different closing times. That range supports an earlier wind-down as well as a later stop. The neighborhood is a better fit for a two-hour focused session than a prolonged power-dependent one.
The Financial District is the option for true night owls. Terminus supplies the 2am backstop, while another cafe in the neighborhood has hours and a work setup that are not detailed here. The district empties out at night. That means quieter spaces and fewer people competing for seats, a useful contrast with crowded evening cafes in SoMa. Lower Nob Hill has a different draw for those changing neighborhoods: Haraz’s outlets make it a choice for power over the latest closing time.
How SF's evening tech event calendar feeds directly into late-night cafe demand
SF Tech Week 2026 ran October 5–11 with 1,700 events in all and many evening gatherings across SoMa, often ending at 9 or 10pm. That schedule explains a large part of the late-cafe use case. The customer is often an engineer leaving an event. The SF Hardware & Robotics Showcase, for example, ran October 7 from 6–9pm at 795 Folsom Street, bringing hardware founders, engineers, and operators into the same corridor as the late cafes. House of AI held community events, panels, and gatherings in SoMa during Tech Week, while Anthropic held the Claude Founder House as a coworking pop-up that ran for several days and opened its doors at 11am each day. Founders could bring laptops, work next to the Anthropic team, and get office hours there. With the events and cafes in the same area, Delah and Heyma are easy next stops after an evening gathering for a little more work or a chat that has yet to end.
What late-night cafes are actually good for, and when you should just go home
The strongest use case is the two-hour stretch between an evening event and heading home, with a task small enough to fit the available time and battery. Email, code review, light writing, and reading documentation all fit that pattern when they do not require external monitors or sustained power. Social co-working with another engineer fits, too. In that case, the atmosphere is part of what makes the session useful.
There is also a legitimate reason that has little to do with output. Sometimes working near other people is better than another evening alone at home, and a change of scenery is enough to justify the trip. That does not need a productivity excuse. But a change of scenery only helps so much when the job needs hours of power-hungry hardware use, calls, or audio-heavy work in a crowded SoMa cafe at midnight. Any session where losing an outlet means losing your work belongs in a more dependable setup.
Delah and Haraz are among the late-night places engineers who keep non-standard hours can most rely on, with Delah open until midnight and Haraz offering plenty of outlets. Neither turns the room into an office. For a short sprint, arrive charged, claim an outlet early, and keep Terminus in mind for 2am, but go home when the work needs dependable power, quiet calls, or external monitors.


