Quicksand CUA Sandbox
An overlay image package for quicksand that adds browser automation via Playwright and Chromium with a VNC-accessible virtual display. Built on top of quicksand-agent.
Installation
quicksand install quicksand-cua
Usage
Simple (recommended)
import asyncio
from quicksand_cua import CuaSandbox
async def main():
async with CuaSandbox() as sb:
# Xvfb, x11vnc, and Chromium start automatically via systemd
result = await sb.execute("python3 -c 'from playwright.sync_api import sync_playwright; print(\"OK\")'")
print(result.stdout)
asyncio.run(main())
With custom config
from quicksand_core import Sandbox
async with Sandbox(image="quicksand-cua", memory="4G", cpus=4) as sb:
result = await sb.execute("chromium --version")
What's Included
Everything from quicksand-agent (Python 3.12, uv, requests, pyyaml, ddgs, markitdown), plus:
- Xvfb virtual framebuffer (display
:0, 1280x1024x24) - x11vnc VNC server on port 5901
- Playwright browser automation library
- Chromium browser (installed via Playwright)
- noVNC web client on port 6080
- Fonts (Liberation, Noto Color Emoji)
- flake8 Python linter (
7.1.1) - findutils (
find,xargs,locate) - file (
filecommand for content-type detection)
All services (Xvfb, x11vnc, Chromium, noVNC) are enabled as systemd units and start automatically on boot.
License
MIT
Metadata
Release files for quicksand-cua 0.3.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quicksand_cua-0.3.12-py3-none-any.whl | Python 3 | none | any | Details |
Release files / quicksand_cua-0.3.12-py3-none-any.whl
| Download URL | quicksand_cua-0.3.12-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3da64c9d8e570d8d10f037fbb066b4b2eb28904c9f34f9bad883d944de21e78c
|
|
BLAKE2b-256 checksum How to use checksums |
657b5b13b9eba5527d06126d6299fa9f03057418c7bcfbe0ddba8d8466ac3659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|