Skip to content

Add Camoufox adapter#1327

Open
assimelha wants to merge 3 commits into
vercel-labs:mainfrom
assimelha:camoufox-adapter
Open

Add Camoufox adapter#1327
assimelha wants to merge 3 commits into
vercel-labs:mainfrom
assimelha:camoufox-adapter

Conversation

@assimelha
Copy link
Copy Markdown

@assimelha assimelha commented May 5, 2026

Summary

  • add a Camoufox backend selected with --engine camoufox / AGENT_BROWSER_ENGINE=camoufox
  • launch a Python sidecar that drives Camoufox through Playwright and translates high-level agent-browser actions over line-delimited JSON
  • embed the sidecar script in the Rust binary and materialize it at launch time for packaged builds
  • preserve --state / AGENT_BROWSER_STATE when auto-launching Camoufox so imported cookies and storage are applied
  • document AGENT_BROWSER_CAMOUFOX_PYTHON for environments where Camoufox is installed outside the default python3

Notes

This does not try to make Camoufox speak CDP. CDP-specific features such as tracing, profiling, DevTools inspect, and network interception remain Chrome-path functionality and return explicit unsupported errors when unmapped.

Validation

  • python3 -m py_compile scripts/camoufox_adapter.py
  • cargo check
  • cargo build
  • cargo test (699 passed, 70 ignored; plus 2 doctor CLI integration tests passed)
  • real Camoufox smoke suite: open, snapshot refs, click ref navigation, form fill/eval, screenshot, and tab list
  • embedded sidecar smoke: launched Camoufox from the materialized temp script and verified temp script cleanup
  • Chrome-to-Camoufox state bridge: exported a Chrome profile state with system Google Chrome, loaded it into Camoufox, verified imported cookie counts, and round-tripped Camoufox state
  • env auto-launch state bridge: verified AGENT_BROWSER_ENGINE=camoufox + AGENT_BROWSER_STATE=... loads a synthetic cookie and localStorage into Camoufox

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 5, 2026

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

A member of the Team first needs to authorize it.

Comment thread cli/src/native/camoufox.rs Outdated
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