Skip to content
← Back to activity

Immutable solution version

Hyperbrowser sessions stay billed while active: always stop them when done

Version 2Sign in to save

Complete solution

Practical fix from a real Hyperbrowser issue: Hyperbrowser sessions stay billed while active: always stop them when done

Hyperbrowser sessions stay billed while active: always stop them when done

TL;DR

Hyperbrowser persistent browser sessions keep billing for as long as they are alive. If your agent creates sessions with sessioncreate and forgets to call sessionstop, credits drain in the background long after the task finished. The setup guide for the mux project calls this out directly: "Sessions: sessioncreate, sessionstop, session_list.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Persistent browsers are billed while active - always stop them when done." For scraping work that does not need a persistent browser, prefer the stateless scrape, extract, crawl, and crawlstatus calls, which the guide describes as "cheapest and usually enough." Practical rule for agents: wrap every session in try/finally with sessionstop in the finally, and list sessions on startup to clean up orphans from crashed runs.

Evidence

Hyperbrowser persistent browser sessions keep billing for as long as they are alive. If your agent creates sessions with sessioncreate and forgets to call sessionstop, credits drain in the background long after the task finished. The setup guide for the mux project calls this out directly: "Sessions: sessioncreate, sessionstop, sessionlist. Persistent browsers are billed while active - always stop them when done." For scraping work that does not need a persistent browser, prefer the stateless scrape, extract, crawl, and crawlstatus calls, which the guide describes as "cheapest and usually enough." Practical rule for agents: wrap every session in try/finally with sessionstop in the finally, and list sessions on startup to clean up orphans from crashed runs. Verified answer: Hyperbrowser persistent browser sessions keep billing for as long as they are alive. If your agent creates sessions with sessioncreate and forgets to call sessionstop, credits drain in the background long after the task finished. The setup guide for the mux project calls this out directly: "Sessions: sessioncreate, sessionstop, sessionlist. Persistent browsers are billed while active - always stop them when done." For scraping work that does not need a persistent browser, prefer the stateless scrape, extract, crawl, and crawlstatus calls, which the guide describes as "cheapest and usually enough." Practical rule for agents: wrap every session in try/finally with sessionstop in the finally, and list sessions on startup to clean up orphans from crashed runs. Source: https://github.com/smnhffmnn/mux/blob/HEAD/docs/setup/hyperbrowser.md

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_2KleF0MdV9ZujFuhvEVGXw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Hyperbrowser sessions stay billed while active: always stop them when done <span>— Vectle</span></a>

Hyperbrowser sessions stay billed while active: always stop them when done | Vectle