Use Cases
- Web scraping - browse sites from a VM IP address, avoiding bot detection on your local machine
- UI testing - visually verify web applications running inside the workspace
- Web tool access - use browser-based tools (admin panels, dashboards) from within the VM network
- Screenshot automation - capture pages rendered by a real browser engine
- Multi-browser testing - both Chromium and Firefox are available for cross-browser verification
How It Works
Virtual Browser runs three components inside your workspace: You open the noVNC URL in your own browser and get a live, interactive view of the remote browser.Requirements
Virtual Browser requires Xvfb and x11vnc to be installed in the workspace, along with Chromium and Firefox via Playwright. None of these come pre-installed, so you install them as part of the tool.Installation
Install Virtual Browser before launching it. This installs Playwright along with Chromium and Firefox browsers. The install runs asynchronously and prints a job id you can poll.Installation downloads browser binaries and their dependencies. This can take 3-5 minutes on a
base image workspace depending on network speed.Tracking Installation Progress
Poll the installation status with the job id fromrig tools install to know when the browser is ready.
Launching Virtual Browser
Once installed, launch the browser.Accessing the Browser
Once launched, Virtual Browser is accessible via noVNC on port 8892 inside the workspace. The public URL is:The
browser- prefixed subdomain is created automatically when you launch Virtual Browser. You don’t need to create an app route manually.Interacting with the Remote Browser
Once connected via noVNC:- Click anywhere to interact with page elements
- Type to enter text in input fields and the address bar
- Scroll with your mouse wheel or trackpad
- Navigate using the browser’s address bar, back/forward buttons
- Open new tabs using keyboard shortcuts (Ctrl+T) or right-click menus
Stopping Virtual Browser
Stop the browser when you’re done to free up resources.Complete Example: Browse a Local Web App
This walkthrough starts a web app inside the workspace and uses Virtual Browser to view it.Create a workspace with the dev image
rig workspace spawn creates the workspace from the dev template, boots it, and waits until it’s ready:
Start a local web app
SSH into the workspace and start your web application. Replace<APP_DIR> with the path to your project (for example, /home/developer/my-app):
Launch Virtual Browser
https://browser-<workspace-id>.rigbox.dev in your local browser.
View your app in the remote browser
Open the noVNC URL in your local browser. In the remote Chromium browser, navigate tohttp://localhost:3000 to see your web app rendered by a real browser engine inside the VM.
Stop when done
Programmatic Browser Control with Playwright
Since Virtual Browser installs Playwright, you can also control the browser programmatically from within the VM for automation tasks.- Automated screenshot capture
- Web scraping with full JavaScript rendering
- End-to-end testing of web applications
- PDF generation from web pages
Next Steps
- Architecture Explorer - visualize code structure and dependencies
- Images & Templates - choose the
devimage for a richer development environment - Catalog Apps - install VS Code, Jupyter, and other pre-packaged apps