Skip to content

Conversation

@RubinCarter
Copy link

Summary

Add support for connecting to browsers via Playwright WebSocket endpoint, enabling integration with Firefox-based browsers like Camoufox that don't support Chrome DevTools Protocol (CDP).

Changes

Core

  • Add connectViaWebSocket() method in browser.ts for WebSocket connections
  • Add wsEndpoint parameter to LaunchCommand in protocol.ts and types.ts

CLI

  • Add --ws <url> flag for WebSocket endpoint URL
  • Add -b, --browser <type> flag for browser type (chromium, firefox, webkit)

Environment Variables

  • AGENT_BROWSER_WS - Default WebSocket endpoint
  • AGENT_BROWSER_BROWSER - Default browser type

Documentation

  • Update SKILL.md with new options and Camoufox usage examples

Usage

# Connect to Camoufox instance
agent-browser --ws ws://localhost:9222/browser -b firefox open example.com

# Or via environment variables
export AGENT_BROWSER_WS="ws://localhost:9222/browser"
export AGENT_BROWSER_BROWSER="firefox"
agent-browser open example.com

Add support for connecting to browsers via Playwright WebSocket endpoint,
enabling integration with Firefox-based browsers like Camoufox that don't
support Chrome DevTools Protocol (CDP).

Changes:
- Add connectViaWebSocket() method in browser.ts for WebSocket connections
- Add wsEndpoint parameter to LaunchCommand in protocol.ts and types.ts
- Add --ws and -b/--browser CLI flags for WebSocket connection
- Add AGENT_BROWSER_WS and AGENT_BROWSER_BROWSER environment variables
- Update SKILL.md with new options and Camoufox usage examples
@vercel
Copy link
Contributor

vercel bot commented Feb 2, 2026

@RubinCarter is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant