Skip to content

feat: add connect() API for remote CDP instances (#435) - #462

Open
dhruvraajeev wants to merge 1 commit into
CloakHQ:mainfrom
dhruvraajeev:feat/connect-api-435
Open

feat: add connect() API for remote CDP instances (#435)#462
dhruvraajeev wants to merge 1 commit into
CloakHQ:mainfrom
dhruvraajeev:feat/connect-api-435

Conversation

@dhruvraajeev

Copy link
Copy Markdown

Attach to an already-running CloakBrowser instance over CDP (e.g. one started via cloakserve in Docker) while keeping the wrapper conveniences that stock connect_over_cdp() drops: humanize and the no-viewport default.

  • Python: connect() + connect_async() (shared _finalize_connected tail)
  • JS: connect() for Playwright and Puppeteer (http or ws endpoint)
  • .NET: CloakLauncher.ConnectAsync + ConnectOptions
  • Fingerprint/timezone/locale selected via the endpoint URL query string, forwarded verbatim; closing detaches without terminating the remote.
  • Tests (Python real-browser; JS SLOW-gated; .NET wiring) + README/CHANGELOG.

Closes #435

Attach to an already-running CloakBrowser instance over CDP (e.g. one
started via cloakserve in Docker) while keeping the wrapper conveniences
that stock connect_over_cdp() drops: humanize and the no-viewport default.

- Python: connect() + connect_async() (shared _finalize_connected tail)
- JS: connect() for Playwright and Puppeteer (http or ws endpoint)
- .NET: CloakLauncher.ConnectAsync + ConnectOptions
- Fingerprint/timezone/locale selected via the endpoint URL query string,
  forwarded verbatim; closing detaches without terminating the remote.
- Tests (Python real-browser; JS SLOW-gated; .NET wiring) + README/CHANGELOG.

Closes CloakHQ#435

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

Feature Request: Add connect() API with humanize support for remote CDP browser control

1 participant