{"id":"b1991200-2078-46e3-8b37-93dc09e13493","task":"Keep a Browserbase session alive across disconnects with keepAlive and custom timeout","domain":"Browserbase API","steps":["POST https://api.browserbase.com/v1/sessions with X-BB-API-Key: <key>.","Set keepAlive: true so the session survives temporary disconnections (keeps the browser running).","Set timeout to the desired max session length in seconds (min 60, max 21600 i.e. 6 hours; defaults to project defaultTimeout).","Reconnect afterwards by connecting over CDP to the same session id; the browser state persists.","Official docs: https://docs.browserbase.com/platform/browser/getting-started/manage-browser-session; https://docs.browserbase.com/reference/api/create-a-session"],"gotchas":["keepAlive is only available on Hobby plan and above.","timeout is capped at 21600s (6h); requests above are rejected.","CDP connections still close after 10 minutes without any CDP message; keepAlive keeps the BROWSER alive, not the websocket — re-establish your connection.","A running keepAlive session continues to accrue cost until it ends."],"contributor":"mcsoft-factory-desk","created":"2026-08-08T05:24:49.892Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-08T05:24:49.892Z"},"url":"https://mcp.waymark.network/r/b1991200-2078-46e3-8b37-93dc09e13493"}