Skip to content

Add a standalone Cloudflare trial for Ozwell Computer with X11 Chrome - #29

Open
horner wants to merge 1 commit into
mainfrom
docs/28-ozwell-cloudflare-trial
Open

horner wants to merge 1 commit into
mainfrom
docs/28-ozwell-cloudflare-trial

Conversation

@horner

@horner horner commented Nov 30, 2026

Copy link
Copy Markdown
Member

Closes #28.

What this adds

A developer can launch a single Ozwell Computer on Cloudflare, use its XFCE desktop in a browser, and give an MCP client access to the same Chrome window. The standalone example uses Wrangler directly and can be copied out of this repository. Step-by-step trial guide

  • The amd64 image extends Ozwell Computer v2026.11.4 with Google Chrome Stable. It starts Xvfb, a D-Bus session, XFCE, Chrome, and Ozwell as the desktop user. Chrome keeps its browser sandbox enabled.
  • A Worker checks the desktop token before starting the computer. Browser viewers sign in with a cookie, while API and MCP clients send a Bearer token. A named Durable Object routes requests and WebSocket upgrades to the same container on port 8080.
  • The trial uses a standard-3 instance and a ten-minute inactivity timeout. Each cold start loads the base image. Browser profile edits and interactively installed applications last for the running session.
  • The guide covers prerequisites, token creation, local preview, deployment, window and screenshot checks, instance inspection, and cleanup.

Verification

  • Built the Linux amd64 image and ran it with Wrangler 4.169.1 locally on Apple Silicon.
  • Signed in through the viewer, navigated the remote Chrome window to Example Domain, and read the matching X11 title through the API.
  • Retrieved a 1280 × 800 PNG through the screenshot API and received a PNG from the MCP screenshot tool.
  • Passed a Wrangler deployment dry run, shell and JavaScript syntax checks, and a check of the guide’s local links.

Remaining live check

A deployment to a paid Cloudflare account is still unverified. Steps 3–5 cover uploading the image, opening the workers.dev viewer, confirming that the agent sees the same window, and deleting the trial.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Live Cloudflare deployment needs human verification of sandboxed Chrome startup, authenticated viewer/WebSocket/API/MCP continuity, and ten-minute idle shutdown, which local Wrangler checks and a deployment dry run cannot establish.

No open issues 🎉

What changed in this PR

Adds a standalone, copyable Ozwell Computer trial that uses Wrangler directly to run an XFCE desktop and visible Chrome window on Cloudflare, with browser, API, and MCP access to the same session.

Changes:

  • Adds token-protected Worker routing to one named Durable Object and container.
  • Builds a desktop image with Chrome’s sandbox enabled and starts the X11 desktop services.
  • Documents setup, verification, the ten-minute inactivity timeout, temporary session state, and cleanup.

The guide records successful local checks; deployment to a paid Cloudflare account remains unverified.

File Description
test Cloudflare.md Step-by-step trial, verification, lifecycle, and cleanup guide.
examples/​ozwell-cloudflare/​wrangler.jsonc Configures the Worker, container image, Durable Object, and required secret.
examples/​ozwell-cloudflare/​worker.js Handles authentication, container readiness, inactivity timeout, and request forwarding.
examples/​ozwell-cloudflare/​Dockerfile Extends Ozwell with Chrome and the X11 desktop runtime.
examples/​ozwell-cloudflare/​desktop.sh Starts XFCE, Chrome, and Ozwell as the desktop user.
examples/​ozwell-cloudflare/​.gitignore Excludes local secrets and Wrangler state from Git.
examples/​ozwell-cloudflare/​.dockerignore Restricts the build context to the Dockerfile and startup script.

Review effort: Balanced

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.

Provide a standalone Cloudflare trial for Ozwell Computer with X11 Chrome

2 participants