add support for remote agent in different host than extension. add

support for editing css.
This commit is contained in:
Tommy D. Rossi
2025-12-27 18:48:52 +01:00
parent e63dc52c68
commit e4695e231d
15 changed files with 495 additions and 195 deletions
+18
View File
@@ -177,6 +177,24 @@ The irony is that by trying to make browser control "simpler" with dedicated too
+---------------------+
```
## Remote Agents (Devcontainers, VMs, SSH)
Run agents in isolated environments (devcontainers, VMs, SSH) while controlling Chrome on your host.
**On host (where Chrome runs):**
```bash
npx playwriter serve --token <secret>
```
**In container/VM (where agent runs):**
```bash
export PLAYWRITER_URL="ws://host.docker.internal:19988?token=<secret>"
```
Use `host.docker.internal` for devcontainers, or your host's IP for VMs/SSH.
## Security
Playwriter is designed with security in mind, ensuring that only you can control your browser.