Skip to content

Can Stagehand work on a Cloudflare worker + Durable object setup? #564

@Suman085

Description

@Suman085

We're considering using Stagehand in a Cloudflare Worker + Durable Object (DO) setup. The Agent, built with agent-sdk, manages WebSocket connections, session state, and interacts with Browserbase to automate browser sessions.

Questions

  • Is Stagehand compatible with Cloudflare Worker + Durable Object environments?
  • Any best practices or limitations we should consider?

Currently, I am getting this error which I think occurs because of trying to load a native .node module, which is not supported in Cloudflare Workers.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions