A managed cloud browser provider runs the browser process and exposes a session endpoint or browser API. Your worker sends commands and handles the result. A VPS provider runs the underlying infrastructure and gives you a virtual machine. Your team chooses the operating system, browser, dependencies, and restart policy. With an infrastructure service such as Amazon EC2, the customer is responsible for patching the guest OS and configuring its firewall. AWS shared responsibility guidance
| Decision | Managed cloud browser | Browser on a VPS |
|---|---|---|
| Runtime ownership | Provider runs the browser fleet. You manage workflow logic and authorized access. | You own guest updates, browser images, process isolation, and alerts. |
| Peak capacity | Verify limits for active sessions, launches per second, and run length. | Set capacity using measured memory, CPU, and job duration. Own the queue and worker recovery. |
| Network access | Verify supported regions, egress addresses, and paths to approved private apps. | Choose VM placement and configure your own private routing and approved egress. |
| Browser state | Verify what remains available after disconnect and after session termination. | Choose where profile data sits and test whether it survives container or host replacement. |
| Cost drivers | Plan minimum, billable session time, retries, storage, and transfer. | VM time, volumes and backups, transfer, patching, and incident response. |
Browser location and worker location can be separate. A CI job may run its orchestration in your network and connect to a managed Chromium session elsewhere. Check which component resolves each hostname, sends the request, and writes the artifact. A private DNS name that resolves for your CI runner can still be unreachable from the browser.
Disconnecting from a running browser and restoring data into a replacement browser are different operations. In a managed service, establish who closes the session, when its idle clock starts, and which state can survive a completed run. If the workflow depends on an authenticated test session, confirm cookie and storage handling in a new run. A session identifier alone does not establish that an expired session can be restored.
On a VPS, place approved browser data on storage whose lifetime matches the workflow. Docker documents that volumes can outlive their containers. Verify where the volume resides and what happens if the host is replaced. If the team needs recovery across hosts, verify the backup and restore path with a disposable profile. Keep generated reports and screenshots in a separate output location with access controls and a retention policy. Docker volume lifecycle
Concurrency counts sessions in progress. The launch rate controls how quickly a queue can start them. A provider may impose both, as Cloudflare documents for Browser Run. For example, if 24 jobs arrive together and the service admits two starts per second, admitting all 24 jobs takes roughly 12 seconds at that pace. Browser startup, execution, and any wait for an available slot add time. Cloudflare Browser Run limits
On a VPS, run the same approved workload with one worker, then increase parallelism in small steps. Record queue delay, browser startup time, job duration, and memory use during the busiest page. Choose a practical worker count that leaves headroom for spikes and patching. Closing a tab and releasing a browser process can have different effects on available capacity. Verify the behavior in the runtime you actually select.
Give both options the same target, schedule, and definition of a usable result. If a job produces an inventory report, count a report only when the expected data reaches storage and passes validation. Keep failed attempts in the cost numerator.
Consider 1,200 accepted jobs per month. For this illustration, the managed option uses 45 seconds of billable browser time per job on average, including cleanup and any failed-attempt time allocated per accepted job. At a hypothetical 0.80 per browser-hour, that is 15 hours or 12. Adding 6 in storage and transfer brings the total to 18, or $0.015 per accepted job.
For the comparable VPS, assume 30 for the VM, 6 for storage and transfer, and one hour of host maintenance at 60. That is 96, or $0.08 per accepted job, if one VM meets the same deadline and completion target. Both examples exclude workflow engineering that would be the same on either route. These assumptions are illustrative and do not represent a vendor quote or measured benchmark.
At the same rates, the modeled costs meet at 112.5 billable browser hours per month. Recalculate if the VPS needs a second host, the managed plan has a minimum, or either route has a different retry rate. Ask whether setup, idle time, recordings, and transfer are included before treating a browser-hour figure as the full rate.
A release pipeline may trigger a batch of independent checks and then sit idle. A managed browser is a candidate when it can start the batch on time, reach staging through an approved route, and close sessions promptly. Start with one test, then run one representative burst. Keep the selector logic and pass conditions identical across deployments.
Confirm framework support on your exact connection path. Playwright documents that connectOverCDP() supports Chromium-based browsers and has lower protocol fidelity than its native Playwright connection. If the workflow needs tracing, downloads, browser contexts, or other advanced behavior, test the required feature explicitly. Playwright connection documentation
A VPS is a candidate when the browser must run near a private service, use particular fonts or enterprise certificates, or follow your organization's browser image and update schedule. Test one worker through an image update and a host replacement. Confirm that isolated test accounts still work, storage is recoverable, and reports are written to the intended destination.
A hybrid arrangement can also fit. Keep the scheduler, durable state, and output processing in your environment, then use approved remote sessions for independent checks where the network and data requirements permit them.
Nstbrowser documents API v2 for its Client and Docker and a Playwright integration for those deployments. Evaluate the Docker route on infrastructure your team already manages if a repeatable browser environment is part of your workload. The Docker configuration reference documents its browser-data directory setting. Keep the required data on a volume that matches your recovery and retention policy.
Nstbrowser's cloud browser migration notice describes plans to move its original hosted Browserless service to Scrapeless. Confirm the current hosted product, account access, connection method, and commercial terms before building around an older Browserless example. For the Client or Docker route, begin with a disposable test profile and a read-only task on a site you own or are authorized to test.
Compare the same workflow under normal load and its busiest expected batch. Record these outcomes under the same job IDs:
Choose the option that meets your peak deadline, state requirements, and network constraints at an operating cost your team can sustain.
Q: Is a cloud browser always cheaper than a VPS?
The answer depends on billable browser time, minimum charges, host upkeep, and whether one VPS can handle the workload. Compare the same month of accepted results and include failed attempts in both cost models.
Q: Can a cloud browser use the same login in a later job?
That depends on the provider's supported profile or state-storage features. Check whether the workflow resumes a still-running session or starts a fresh browser with restored state, then verify the behavior with an authorized test account.
Q: How many headless browsers can run on one VPS?
Measure your actual browser image and page workload. Add workers gradually while tracking memory, CPU, queue time, and completed jobs. The number of cores alone is insufficient to size the fleet.
Q: Can the same Playwright script run on both?
Often the page logic can be reused. Check the framework connection protocol, browser version, file handling, and required context features. Keep session creation and cleanup separate from the page-level logic so the connection can be swapped and tested.