Skip to content

[DOCS] Computer image and cloud-init user_data for computer-use workspaces #1155

Closed

Description

@edenreich

Summary

Computer-use workspaces now run a published Ubuntu desktop image, and clients install what an agent needs with cloud-init user-data instead of building their own image. Document the new pieces across the CLI, operator, desktop and opentask pages:

  • Computer image - ghcr.io/inference-gateway/computer, released with the CLI under the same tags (latest and <version>):
    • a minimal Ubuntu 26.04 desktop
    • infer daemon on an Xvfb display (:99, 1280x800) with openbox, a wallpaper and a tint2 taskbar
    • taskbar launchers for the installed apps, and normal windows open maximized
    • no browser shipped
    • closing an app leaves the desktop, not a black screen
  • Workspace user_data (CLI ~/.infer/daemon.yaml, kubernetes workspaces only):
    • a cloud-init user-data script that must start with #! (#cloud-config is not supported yet)
    • the pod runs it as root when it boots, before the daemon starts
    • it is stored in the session Secret under the key userdata, never in the Orchestrator
    • output goes to /var/log/cloud-init-output.log
    • an app the script copies into /etc/xdg/autostart opens at boot
  • Operator spec.userData.secretRef (Orchestrator, runtime: Sandbox only):
    • the pod boots as root in a user namespace (hostUsers: false), so its root maps to an unprivileged user on the node
    • it keeps only CHOWN, DAC_OVERRIDE, FOWNER, FSETID, SETUID and SETGID, with no privilege escalation
    • the Secret key is mounted read-only at /var/lib/cloud/seed/nocloud/user-data
    • nodes need Kubernetes 1.36+, containerd 2.0+ or CRI-O 1.25+, and Linux 6.3+
    • the secretRef has the shape of KubeVirt's cloudInitNoCloud volume
  • Browser extension in a pod - when the daemon's binding requires client certificates (mTLS in a pod), the daemon also serves the opentask extension on plain 127.0.0.1:<browser_use.extension.port>. That port must differ from the binding port.
  • opentask configured by policy:
    • the bridge reads bridge-port, bridge-token and bridge-project-dir from enterprise policy (Firefox 3rdparty.Extensions, Chrome 3rdparty.extensions) and connects without a click
    • releases attach opentask-firefox.xpi
    • the unsigned XPI needs Firefox ESR, Developer Edition or Nightly, with xpinstall.signatures.required set to false through the Preferences policy
  • Desktop app:
    • the local cluster's ubuntu-desktop workspace runs the computer image
    • its default User data (Settings > Workspaces) installs Firefox ESR with opentask and writes the bridge token to both the Firefox policy and browser_use.yaml (port 52790), so agents on a computer use the browser tools

Affected pages:

  • cli.md - "Daemon" > "Workspace kinds" (the user_data field) and "Computer Use" (a "The computer image" subsection with the example below). Also the binding paragraph on the extension's loopback listener.
  • operator.md - "Orchestrator" (a "Boot a computer with user-data" subsection: spec.userData, user namespaces and the node requirements).
  • desktop.md - "Workspaces" (the User data field) and "Agent computers" (Firefox and opentask installed at boot, and the desktop staying usable after the browser closes).
  • opentask.md - configuring the bridge through enterprise policy, and the Firefox XPI release asset with its signing caveat.

Example to add (CLI):

# ~/.infer/daemon.yaml
workspaces:
  - name: ubuntu-desktop
    kind: kubernetes
    namespace: agents
    image: ghcr.io/inference-gateway/computer:latest
    env:
      INFER_COMPUTER_USE_ENABLED: "true"
    user_data: |
      #!/bin/sh
      set -e
      apt-get update
      apt-get install -y --no-install-recommends gimp
      cp /usr/share/applications/gimp.desktop /etc/xdg/autostart/

Example to add (operator):

spec:
  image: ghcr.io/inference-gateway/computer:latest
  runtime: Sandbox
  userData:
    secretRef:
      name: computer-user-data
      key: userdata

Source PRs:

Acceptance Criteria

  • cli.md documents the user_data workspace field: the #! requirement, root at boot, the session Secret key userdata, and the log path. It also documents the computer image with the example above.
  • cli.md notes that the daemon serves the browser extension on a loopback port when its binding requires client certificates.
  • operator.md documents spec.userData.secretRef, the user-namespace security context, the node requirements and the KubeVirt-compatible shape, with the example above.
  • desktop.md documents the User data field in Settings > Workspaces and the default Firefox plus opentask setup of the local cluster's computers.
  • opentask.md documents configuring the bridge through enterprise policy and the opentask-firefox.xpi release asset with its signing caveat.
  • Version notes match the released versions of the source PRs.

Activity

  1. added
    documentation
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. moved this to Todo in 2026on Nov 9, 2026
  4. edenreich commented on Nov 9, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Nov 9, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 5m 47s —— View job • docs/issue-1155-20261109-1720


    Documented

    • Gather context (read cli.md, operator.md, desktop.md, opentask.md, plus the source PRs and releases)
    • cli.md - user_data workspace field, the computer image, the extension's loopback listener
    • operator.md - spec.userData.secretRef, user namespaces, node requirements
    • desktop.md - User data field and the local cluster's default Firefox plus opentask setup
    • opentask.md - bridge via enterprise policy and the opentask-firefox.xpi release asset
    • Validate: bun run format:check, bun run lint:md, bun run build all pass
    • Commit and open PR

    What landed

    cli.md

    • "Workspace kinds" > Software the image does not ship (user_data): the #! requirement (#cloud-config not supported yet), root at boot before the daemon starts, /etc/xdg/autostart for an app that opens at boot, output at /var/log/cloud-init-output.log, the session Secret key userdata and never the Orchestrator, kubernetes-only, plus the operator v0.35.0 floor in "Kubernetes prerequisites".
    • "Computer Use" > The computer image: ghcr.io/inference-gateway/computer released with the CLI under the same tags, Ubuntu 26.04, infer daemon on Xvfb :99 1280x800 with openbox, wallpaper and tint2 taskbar, launchers for installed apps, maximized windows, no browser, desktop intact when an app closes - with the user_data example from the issue.
    • "Starting the daemon": the daemon also serves the extension on plain 127.0.0.1:<browser_use.extension.port> when the binding requires client certificates, that port must differ from the binding port, and none of the binding's HTTP routes ride on it.

    operator.md - "Orchestrator" > Boot a computer with user-data: spec.userData.secretRef with the example, runtime: Sandbox only, hostUsers: false, the narrowed capability set, no privilege escalation, the read-only mount at /var/lib/cloud/seed/nocloud/user-data, Kubernetes 1.36+ / containerd 2.0+ or CRI-O 1.25+ / Linux 6.3+, and the KubeVirt cloudInitNoCloud shape. Field table gains a userData.secretRef row.

    desktop.md - the User data field row and what it writes, the local cluster pulling the published image instead of building one, its default script (Firefox ESR with opentask, bridge token into both the Firefox policy and browser_use.yaml on port 52790), and "Agent computers" on the published desktop plus User data and the desktop staying usable after the browser closes.

    opentask.md - the opentask-firefox.xpi release asset with the unsigned-XPI caveat (ESR, Developer Edition or Nightly, xpinstall.signatures.required off through the Preferences policy), and Configuring the bridge by enterprise policy covering bridge-port, bridge-token, bridge-project-dir, local values winning over policy, and unattended dialing.

    On versions

    Operator v0.35.0 and opentask v1.19.0 are released, so those are cited directly. The three CLI PRs merged after v0.250.0 cut, so the CLI features are noted as infer v0.251.0 - the next feature release. desktop#484 is still open, so no desktop version is claimed.

    Create a PR - already opened as #1156.

    Not checked: nothing was previewed in a browser (bun run preview) since no nav, SEO or theme files changed, and cross-page anchors were verified against the built HTML instead. Risk: the infer v0.251.0 number is a prediction - if the next CLI release lands as something else, those three version notes need a one-line fix.
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 9, 2026
  7. moved this from In progress to QA in 2026on Nov 9, 2026
  8. moved this from QA to Done in 2026on Nov 9, 2026
  9. inference-gateway-releaser commented on Nov 10, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.25 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions