All posts
AI Agents
Modal Team
20 min read

Best Serverless Platforms for Hosting Browser Agent Backends in 2026

Browser-based AI agents are reshaping how businesses automate web interactions, from data extraction and form filling to complex multi-step workflows that span dozens of sites. These agents need more than raw compute, but their infrastructure requirements depend on the architecture: teams may use managed browser sessions or run their own browser software, isolate untrusted code when agents generate executable programs, and provision GPUs when hosting their own model inference. At production scale, sandbox concurrency, efficient CPU and memory allocation, and consistent startup performance under load become central infrastructure considerations. This guide examines seven serverless platforms serving different browser agent backend needs in 2026, starting with Modal, a scalable, high-performance sandbox platform for executing AI-generated code at production scale. Modal brings together secure Sandboxes, inference infrastructure, and autoscaling in one system.

Key Takeaways

  • Production-scale concurrency supports parallel browser agents: Modal has demonstrated creating 1M+ Sandboxes in under a minute, exceeding 10,000 creations per second, and running more than one million concurrently in a platform-scale test. Modal also reports regularly supporting tens of thousands of concurrent customer Sandboxes and having launched nearly three billion Sandboxes in total.
  • CPU and memory bursting reduces cost and overprovisioning: Browser agents often wait for model responses between bursts of browser activity or code execution. Modal Sandboxes automatically burst CPU and memory above requested resources when needed, allowing teams to size requests for typical usage rather than peak usage. Modal's active-resourcing model bills CPU and memory per second at the greater of the requested and actual amounts, improving utilization and reducing unused provisioned capacity.
  • Consistent sub-second Sandbox starts improve feedback loops: Modal is engineered for sub-second Sandbox starts that remain consistent at high concurrency. Its optimized filesystem helps containers come online quickly, including with large, arbitrary custom images, without letting image size slow the startup path.
  • Secure isolation protects untrusted execution: Modal Sandboxes support VM and gVisor runtimes. VM Sandboxes support full Docker functionality, giving browser agents isolated environments for running generated code, browser software, and development tools.
  • Unified AI infrastructure supports CPU and GPU workloads: Modal combines Sandboxes, dedicated inference capabilities, training and fine-tuning, and batch processing. Its on-demand GPU options, including H100, H200, B200, and B300, are available when browser agents need to host models or run GPU-dependent tasks.

1. Modal

Modal is a scalable, high-performance sandbox platform for executing AI-generated code at production scale. For browser agent backends, it combines high-concurrency isolated execution, automatic CPU and memory bursting, and consistently fast startup with programmable infrastructure for CPU and GPU workloads. Teams can build their own browser automation and inference stacks on Modal, as illustrated by its Chromium computer-use example.

Core Capabilities

  • Secure sandboxes at massive scale: Modal has demonstrated creating 1M+ Sandboxes in under a minute and running more than one million concurrently in a platform test. Its custom-built scheduler supports high creation throughput, and Modal regularly runs tens of thousands of customer Sandboxes concurrently. The platform has launched nearly three billion Sandboxes in total.
  • Automatic CPU and memory bursting: Active-resource Sandbox billing is based on the greater of requested and actual CPU and memory consumption per second. Teams can request resources aligned with typical usage and automatically burst during execution peaks, reducing overprovisioning costs and helping reduce the risk of out-of-memory failures.
  • Consistent sub-second Sandbox starts: Modal's optimized Sandbox infrastructure is engineered for fast starts at high concurrency, including with large custom images. An optimized filesystem helps bring containers online quickly and supports shorter agent feedback loops without requiring teams to standardize on small, predefined images.
  • VM and gVisor isolation: Modal provides both Sandbox runtimes for isolated execution. Its VM runtime supports full Docker and Linux development environments, while gVisor Sandboxes support isolated code and GPU-accelerated workloads.
  • On-demand GPU execution: Modal's inference and training products complement GPU-enabled Sandboxes. Teams can use 11 GPU options, including T4, L4, A10, L40S, A100 variants, RTX PRO 6000, H100, H200, B200, and B300, without advance reservations.
  • Programmable environments and SDKs: Modal provides code-first SDKs in Python, TypeScript, and Go. Sandbox images and environments can be configured for task-specific browser dependencies, and Sandboxes can execute programs written in any language.
  • Networking and observability: Sandbox Connect Tokens support authenticated HTTP and WebSocket access, and tunnels expose applications running within Sandboxes. Modal also provides execution logs, infrastructure metrics, and Sandbox lifecycle visibility.

Security and Compliance

Modal is SOC 2 Type II audited, and Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA. Its documented security controls include TLS 1.3 for public APIs and encryption in transit and at rest. Modal offers both VM and gVisor Sandboxes for isolation. Modal supports region-pinning. Together, these controls support production agent systems that handle sensitive workflows and execute AI-generated code.

Production-Proven Results

Modal powers production workloads for notable AI companies:

Why Teams Choose Modal for Browser Agent Backends

  • Production-scale concurrency: Modal's custom scheduler supports large fleets of parallel agents, backed by a platform-scale demonstration of 1M+ Sandbox creations in under a minute and over one million concurrent Sandboxes.
  • Cost-efficient active resourcing: Agents can spend long stretches waiting for model responses before bursts of browser or code activity. Modal's automatic CPU and memory bursting lets teams provision for typical usage and expand to peak demand while billing the greater of requested and actual resources per second.
  • Consistent startup performance: Modal is engineered for sub-second Sandbox starts that stay consistent under heavy concurrent load, including with large custom images, supporting fast agent feedback loops.
  • Flexible isolated environments: VM Sandboxes support full Docker, while gVisor Sandboxes provide another isolated runtime for agent-generated code and GPU-dependent execution.
  • Unified AI infrastructure: Modal brings inference, training and fine-tuning, and batch processing together with Sandboxes for end-to-end agent workloads.
  • Code-first development: Modal provides code-first SDKs in Python, TypeScript, and Go. Sandboxes can run programs in any language and use task-specific images, files, and dependencies.

2. Cloudflare Browser Run

Cloudflare Browser Run provides managed headless Chrome execution on Cloudflare infrastructure. Browser sessions run in environments separate from the application invoking them.

Capabilities

  • Managed browser sessions: Browser Run provides headless Chrome sessions that applications can control through Puppeteer, Playwright, or the Chrome DevTools Protocol (CDP).
  • Quick Actions REST API: Quick Actions provide screenshots, PDF generation, page extraction, and scraping. A separate REST-only crawl endpoint handles multi-page crawling.
  • CDP and MCP integrations: External applications can connect to browser sessions through CDP, while MCP adapters present browser-control tools to compatible agent clients. MCP defines the tool interface, not the browser execution or isolation environment.
  • WebMCP support: Browser Run supports experimental WebMCP functionality for websites exposing structured agent actions through Chrome beta lab sessions.
  • Cloudflare ecosystem integration: Browser bindings connect sessions to Workers, and applications can coordinate tasks with Durable Objects and Queues.

Considerations

  • Browser-focused scope: Browser Run supplies managed browser execution, while agent application compute and model inference can be configured through other services.
  • Session management: Browser sessions operate with account-level concurrency, launch-rate, and inactivity settings.

Why Teams Choose Cloudflare Browser Run

Cloudflare Browser Run is a managed browser service within the Cloudflare ecosystem. Teams choose it when they want browser sessions connected to Cloudflare Workers or controlled from applications using CDP.

3. Browserbase Functions

Browserbase Functions is a TypeScript serverless runtime for browser automation. Each invocation executes browser-control code in an isolated environment associated with a managed browser session.

Capabilities

  • TypeScript Functions runtime: Browserbase Functions executes TypeScript browser-control code in isolated environments associated with managed browser sessions.
  • Agent identity and browser access: Browserbase offers a Web Bot Auth-based agent identity program for supported browser sessions, alongside separately configurable browser access features.
  • Stagehand SDK: Stagehand is an open-source framework for agent-driven browser automation that can operate with Browserbase sessions.
  • Model Gateway: Model Gateway routes supported Stagehand model requests to upstream inference providers through Browserbase credentials.
  • Search and Fetch APIs: Browserbase offers Search and Fetch endpoints for source discovery and page-content retrieval alongside interactive sessions.

Considerations

  • Invocation lifecycle: Functions are stateless between invocations, and each invocation is time-bounded; application workflows handle state that needs to persist.
  • Service focus: Functions executes browser-control workloads, while Model Gateway accesses hosted model inference through external model providers.

Why Teams Choose Browserbase Functions

Browserbase Functions is a browser automation execution service with TypeScript Functions and managed sessions. Teams choose it when their backend centers on Browserbase browser sessions and Stagehand or Playwright workflows.

4. Browser Use

Browser Use combines an open-source Python browser-agent framework with a hosted Agents API. Its hosted offering uses isolated cloud browser sessions, while self-managed framework deployments use isolation configured in the deployment environment.

Capabilities

  • Dual deployment model: Teams can run the open-source Python framework in their own environment or submit agent tasks through the hosted Agents API.
  • Hosted agents: The hosted API executes browser tasks in managed sessions and returns task results to the calling application.
  • Open-source framework: The Browser Use Python project is MIT licensed and supports browser-agent logic maintained by application developers.
  • Framework integrations: The framework works with multiple model providers and can participate in agent workflows that use browser automation.
  • Structured task results: The hosted Agents API supports schema-shaped output for browser tasks.

Considerations

  • Deployment models: The open-source framework, hosted agents, and managed browser services have distinct deployment and session-management arrangements.
  • Compute scope: The hosted Agents API supplies agent execution rather than customer-provisioned GPU servers for training or custom model hosting.

Why Teams Choose Browser Use

Browser Use is a browser-agent framework with an optional hosted agent service. Teams choose it when they want to develop agent logic in Python or submit browser tasks through a managed API.

5. Hyperbrowser AI Agents

Hyperbrowser AI provides managed browser sessions for HyperAgent and other computer-use agent frameworks. Its separate Sandbox product provides isolated virtual machines for code and command execution.

Capabilities

  • Multi-framework support: Hyperbrowser supports HyperAgent, Browser Use, and supported computer-use models within its managed browser service.
  • Live View with user control: Live View allows an operator to observe browser sessions and take control during a workflow.
  • Session persistence: Browser profiles and session reuse preserve cookies and selected browser state across related tasks.
  • Model access options: Supported agent workflows can use customer-supplied model credentials or platform-managed model execution.
  • Structured outputs: Browser Use agent integration supports schema-based task results and validation.
  • Isolated code execution: Hyperbrowser Sandboxes run commands, files, and services in isolated VMs, with snapshots and persistent volumes.

Considerations

  • Product separation: Managed browsers and isolated VM Sandboxes are distinct services with separate execution lifecycles.
  • Agent options: Hyperbrowser supports its own HyperAgent implementation alongside supported external agent frameworks and models.

Why Teams Choose Hyperbrowser AI Agents

Hyperbrowser AI is a managed browser and agent execution service with a separate VM Sandbox product. Teams choose it when they want to run supported computer-use models with managed browser sessions and optional isolated command execution.

6. Amazon Bedrock AgentCore

Amazon Bedrock AgentCore provides managed agent runtime and tool infrastructure within AWS. Its serverless Runtime runs agent code in isolated microVMs, while its Browser tool provides separate managed browser sessions.

Capabilities

  • Framework-agnostic deployment: AgentCore Runtime runs agents built with supported frameworks, agent SDKs, and custom implementations.
  • Managed agent compute: AgentCore Runtime provides serverless microVM execution with session isolation and scaling, alongside a separate managed Instances option.
  • Built-in Browser tool: AgentCore Browser provides isolated browser sessions, Live View, and CloudTrail integration. Session recording is available for custom browsers configured with S3 storage and appropriate permissions.
  • Code Interpreter: The managed Code Interpreter tool executes programmatic computations separately from browser interactions.
  • Policy enforcement: AgentCore Policy applies Cedar-based rules to supported tool calls routed through AgentCore Gateway.
  • AWS service integration: AgentCore Gateway connects agent tools to AWS services and other endpoints, while agents can use supported model providers.

Considerations

  • AWS-native deployment: AgentCore's managed runtime and tool services operate within AWS infrastructure and identity systems.
  • Separate execution lifecycles: Runtime sessions and Browser sessions are configured and managed as separate agent components.

Why Teams Choose Amazon Bedrock AgentCore

Amazon Bedrock AgentCore is an AWS-native agent runtime with managed browser and code-execution tools. Teams choose it when their agent applications use AWS identity, policy, and service integration.

7. Google Cloud Run

Google Cloud Run provides serverless container execution for browser agent backends built within Google Cloud. Its general-purpose containers follow the Cloud Run runtime contract, while Cloud Run Sandboxes provide a separate isolated execution environment for untrusted code and headless browsers.

Capabilities

  • OCI container deployment: Cloud Run runs compatible OCI container images for application code and browser automation libraries.
  • GPU acceleration: Cloud Run services support configurable NVIDIA GPU-backed instances for inference and other accelerated tasks.
  • Cloud Run instances: Cloud Run instances, in preview, provide an individually addressable execution model for long-lived application processes.
  • Sandboxed execution: Cloud Run Sandboxes, in public preview, provide isolated environments within Cloud Run services for executing untrusted code and browser workloads.
  • Google Cloud integration: Cloud Run applications can work with Google Cloud services such as Vertex AI, Cloud Storage, and BigQuery.

Considerations

  • Container-first model: Application teams provide browser dependencies, browser lifecycle configuration, and automation logic within their container deployments.
  • Scaling options: Cloud Run services, jobs, and individually addressable instances use different execution and scaling models.
  • GPU configuration: GPU-enabled services operate with region-specific availability and service-level resource settings.

Why Teams Choose Google Cloud Run

Cloud Run is a general-purpose serverless container service with GPU and sandbox capabilities. Teams choose it when they run their own browser software in containers and integrate agent workloads with Google Cloud services.

Why Modal Stands Out for Browser Agent Backends

Production-Scale Sandbox Concurrency

Large browser agent fleets can require many independent browser sessions for navigation and form completion, alongside isolated environments for executing agent-generated programs. Modal's custom-built scheduler has demonstrated creating more than one million Sandboxes in under a minute, at over 10,000 creations per second, and running over a million concurrently. Modal reports regularly supporting tens of thousands of concurrent customer Sandboxes, with nearly three billion launched overall. Its infrastructure is designed for consistent execution as large numbers of agents operate in parallel.

CPU and Memory Bursting for Better Resource Utilization

Browser agent workloads are unpredictable and bursty. Agents may spend long stretches waiting on a model response, then briefly consume more CPU and memory while loading pages, processing results, or executing code. Reserving resources for every possible peak can leave significant capacity unused during typical operation. Modal's active-resourcing model lets teams request a baseline sized for typical usage and automatically burst CPU and memory as work requires. Usage is billed per second at the greater of requested or actual CPU and memory resources, which can reduce overprovisioning costs while also reducing the risk of out-of-memory failures.

Consistent Sub-Second Sandbox Starts Under Load

Agent responsiveness depends in part on how quickly execution environments become available. Modal reports sub-second Sandbox starts that remain consistent under high concurrent load. Its scheduler and container runtime are optimized to maintain high creation throughput, supporting faster feedback loops when applications launch many browser tasks at once.

Fast Starts With Custom Container Images

Browser agents often require Chromium, automation libraries, system tools, and project-specific dependencies in the same environment. Modal's optimized filesystem and Sandbox runtime help containers come online quickly even with large, arbitrary custom images. Developers can define these environments through Modal Images and use them in parallel tasks without giving up custom dependencies.

GPU Compute for Model-Driven Agents

Modal's dedicated inference and training products support vision models, LLMs, fine-tuning, and evaluation alongside browser automation. When agents need their own accelerated execution, Modal offers 11 on-demand GPU options, including H100, H200, B200, and B300. GPU-enabled gVisor Sandboxes and separate inference Functions let teams combine browser interaction, model reasoning, and GPU-dependent code execution within one platform.

Unified AI Infrastructure

Browser agents rarely operate in isolation. Depending on their design, they call LLMs for decision-making, use vision models to understand page content, execute generated code in isolated environments, and persist application data across tasks. Modal provides the relevant compute capabilities on one platform: Sandboxes for isolated code and browser execution, inference infrastructure for model serving, training capabilities for fine-tuning, and batch processing for large-scale operations. This allows teams to build browser automation and model execution around shared infrastructure primitives.

Code-First Developer Experience

Modal provides code-first SDKs in Python, TypeScript, and Go. Sandboxes support programs written in any language, and programmable images, Functions, and runtime configuration make it possible to define browser-agent infrastructure alongside application code.

Secure Sandboxed Execution

Some browser agents generate and execute code autonomously, making isolation critical when those programs are untrusted. Modal's VM and gVisor runtimes provide isolated execution environments for agent-generated programs, browser processes, and task-specific tools. VM Sandboxes support full Docker, and Modal provides Sandbox networking, authenticated access, and execution observability to support operational control.

Enterprise Security and Compliance

Modal's SOC 2 Type II audit, Enterprise security controls, and support for HIPAA-compliant workloads on Enterprise plans via a BAA provide a foundation for production agent systems. Public APIs use TLS 1.3, and user data is encrypted in transit and at rest. Modal offers VM and gVisor isolation for Sandboxes. Modal supports region-pinning.

For teams building browser agents that combine isolated code execution, high concurrency, bursty CPU and memory workloads, and optional GPU inference, Modal is the leading choice in this list. Its custom-built scheduling infrastructure, active-resource billing, and consistently fast startup support production-scale browser automation alongside model inference and training.

Explore the Modal documentation to get started.

Frequently Asked Questions

What is a serverless platform for browser agent backends?

A serverless browser-agent backend is the execution and orchestration layer for agents that automate web interactions. Depending on the provider, it may supply managed browsers, general-purpose containers, isolated code sandboxes, inference compute, or a combination of these capabilities; it does not always include browser management. Modal supplies scalable Sandboxes for custom browser and code execution, with high concurrency, automatic CPU and memory bursting, and consistently fast startup under load.

Why do browser agents need secure isolation?

Some agents execute code generated from model outputs, while others use bounded browser-control tools without running arbitrary generated programs. All systems interacting with untrusted web content need suitable process and browser isolation, and agent-generated executable code warrants hardened sandbox boundaries. Modal offers gVisor and VM Sandboxes to isolate these workloads, with full Docker support in VM Sandboxes and secure connectivity options for agent workflows.

How do serverless GPUs benefit browser agent development?

Modal's dedicated inference and training products let teams serve or adapt vision models, LLMs, and other models alongside browser automation. Serverless GPUs enable this accelerated compute without requiring teams to operate their own GPU clusters. Modal offers 11 GPU options, including H100, H200, B200, and B300, for model-driven workloads that benefit from GPUs.

What should I look for in a browser agent backend platform?

Key considerations include whether the team needs a managed browser service or a developer-managed browser, isolation for untrusted code, optional GPU inference, startup and end-to-end latency, concurrency and launch-rate limits, session persistence, and compliance requirements. Modal combines high-concurrency Sandboxes, automatic CPU and memory bursting, consistent cold starts, on-demand GPUs, and SOC 2 Type II security controls in one programmable platform.

How does cold start performance affect browser agents?

Cold-start overhead determines how quickly new execution environments can begin preparing for work. Container startup, browser initialization, model loading, and first useful response are distinct timing measurements. Modal's Sandbox runtime is engineered for sub-second starts that remain consistent at high concurrency, with an optimized filesystem that supports large custom images and faster agent feedback loops.

How does Modal Sandbox pricing work for browser agent backends?

Modal uses an active-resourcing billing model for Sandbox CPU and memory. Each resource is metered per second at the greater of the amount requested and the amount actually used. A fixed resource request sized for every potential peak can leave CPU and memory provisioned but unused during an agent's long waits for model responses. On Modal, agents can request resources sized for typical usage and automatically burst CPU and memory during peak workloads. This reduces unused provisioned capacity and can lower total execution costs for bursty browser agent workloads. Automatic bursting can also reduce the risk of out-of-memory failures during unpredictable tasks.