Run a local browser study
Run isolated Firecracker browser participants on Linux x64 or an Apple Silicon Mac, from the installed CLI or TUI.
Linux x64 and supported Apple Silicon Mac users can run isolated Firecracker browser participants from the installed CLI or TUI. Docker manages their containers and private state volumes; the normal study runner supplies scheduling, recordings, Observer and findings. No separate host service is installed.
Start a study
Both platforms need a signed-in, supported Codex CLI. Linux needs a local,
rootful Docker Engine, KVM (/dev/kvm) and TUN (/dev/net/tun). Macs need an
M3-or-newer chip, native ARM64 Node, Lima 2.2+ (brew install lima) and a macOS
version supporting nested virtualization; see Mac setup.
Docker Desktop is unnecessary. See
Codex account setup for the qualified version
and account restrictions. Docker access is an administrative capability.
humanish does not install Docker on Linux or change host permissions. On Mac,
setup installs Docker only inside the dedicated Lima host.
Configure the starter while initializing the project, then start your app on the same loopback URL:
npx humanish init --yes \
--local-browser http://127.0.0.1:3000 \
--local-mission "Create a note and explain anything confusing about saving it"
npx humanish doctor --study local-browser
npx humanish run local-browser
npx humanish verifyverify checks the saved run bundle, and its share-safety line says whether the evidence can be
shared as-is. init also adds humanish:* scripts to package.json; humanish:run among them
is humanish run --dry-run, a contract-proof dry run rather than this live study. init also
writes humanish/studies/local-browser.yaml with safe defaults when the two options are omitted.
The options provide the normal setup path for the app URL and mission on first setup. If the
file already exists, init preserves it and warns that these options were skipped; edit the
existing study file to change its URL or mission. The commands above write this study (its
description is omitted here):
schema: humanish.study.v3
id: local-browser
title: Local browser · your app · Codex account
route: computer-use
mode: live
subject:
source: app-url
appUrl: "http://127.0.0.1:3000"
actor:
type: local-agent
localAgent: codex
persona: synthetic-new-user
mission: "Create a note and explain anything confusing about saving it"
execution:
target: local
concurrency: 1
timeoutMs: 120000
defaults:
open: truenpx humanish runtime status --json
npx humanish doctor --study local-browser --json
npx humanish run local-browser
npx humanish verifyThe first live run downloads the pinned runtime archive (about 569 MiB on x64 or
556 MiB on ARM64), verifies its exact size and SHA-256, and loads it into Docker.
Later runs reuse the image.
humanish runtime setup prepares it in advance. Status, doctor and dry-run never
download an image or launch a participant. Preparation does not consume the
participant's task-time budget. The TUI lists the same study and runtime readiness;
starting it uses the same preparation and execution path.
This configuration needs neither an E2B key nor an OpenAI API key. Participants
and the separate post-run analyst use Codex account quota and remote model
inference. It is not an offline model. The restricted participant has no host
shell, checkout mount or credential files. Account dollar cost and output-token
ceilings are unknown; numeric dollar/token caps are rejected. Set
review.analysis: false to skip analysis.
For API billing and its supported caps, use type: computer-use (or
openai-computer-use), remove localAgent, and provide the model vendor's key:
OPENAI_API_KEY, or ANTHROPIC_API_KEY for model: claude-haiku-5-5. Its analysis retains the existing API
default. Neither path silently falls back to another provider or hosted desktop.
Existing studies without execution.target: local retain their previous behavior.
Before handing the desktop to the participant, the guest opens the
selected app and waits up to 30 seconds for the initial document's
DOMContentLoaded event, then allows a bounded paint. It does not wait for app
data, images or network idle: the app's own loading screen remains observable.
Navigation failures and timeouts fail startup and release the owned desktop.
Later participant actions and observations do not use this startup wait.
Current limits
- Linux x64 or M3-or-newer Mac with native ARM64 Node and Lima. Linux ARM64 is refused: the local participant, the restricted Codex participant, runs only on Linux x64 and Apple-silicon macOS. The installed Mac setup was tested on an M5 Max; smaller machines are not capacity-qualified.
- On Linux, a local Docker Engine; remote contexts, rootless Docker and Docker Desktop are unsupported. The Mac adapter uses Docker inside its own Lima host.
- Loopback HTTP(S) app URLs on explicit ports above 1023. Each participant can reach its selected app port, its assigned captured inbox when declared, and public destinations over ordinary TCP/UDP. Other private host/LAN destinations and cloud metadata are blocked.
- Chromium at 960×720 by default, 2 vCPUs and 2 GiB guest RAM per participant. A device
preset or
execution.desktop.resolutionsets each participant's screen, from 500 to 1920 pixels wide and 480 to 1200 high, andexecution.desktop.fidelity.mobileEmulationemulates phones as on hosted desktops. A local mobile participant's bundle records the emulation it applied without the page's own read-back. A runtime installed before humanish 0.140.0 starts every participant at 960×720;humanish runtime setupinstalls the current one. Docker's enclosing limit is 3 GiB and 2 CPUs per desktop; the memory limit sets how many participants run at once. See How many participants fit. - Typing works only while the study's original tab is the browser's only tab. With a
second tab open, every
typeaction is refused before any text is sent, and the participant is told to switch to the other tab, close it and type again. Clicks, keys and scrolling still work with several tabs open. - Browser-only by default. Optional camera and spoken conversation use a separate media image and the same study loop.
- Captured inboxes use an operator-run mail catch. Real email receiving remains unsupported on the local route.
- A 20-minute default and maximum participant session budget, within the runtime
image's 30-minute process lifetime. A shorter
execution.timeoutMsis supported. - Codex participants currently use
gpt-6-astraat low effort. Hosted templates and hosted sandbox timeouts do not apply.
Normal close and cooperative startup cancellation remove the owned container
and its private state volume. After a desktop connects, controller death
disconnects the guest, which reboots; Firecracker exits and Docker removes both.
A small host socket directory can remain after abrupt death.
Run evidence remains in .humanish/ under the normal local capture and sharing
rules. An unconfirmed release is reported as such.
How many participants fit
Each participant desktop reserves 3 GiB of memory and is given 2 CPUs. On a Mac the
desktops run in the humanish Lima VM, which keeps 1 GiB for itself, so a VM holds
(memory - 1 GiB) / 3 GiB desktops. Memory sets the limit because a desktop that runs
out of memory is killed; desktops that share fewer CPUs than 2 each only run slower, and
runtime status says when they will. On Linux the desktops use this machine directly,
with 1 GiB kept for the system.
| Lima VM memory | Desktops at once |
|---|---|
| 8 GiB | 2 |
| 10 GiB | 3 |
| 13 GiB | 4 |
humanish runtime status prints the VM's size, the per-desktop reservation and how
many desktops fit; --json returns them as capacity. humanish doctor --study <study>
says whether that study fits. A study runs execution.concurrency desktops at once, or
all of its participants when that is unset.
Setup creates a new VM with room for four desktops (13 GiB and 8 CPUs), capped at half the Mac's memory and CPUs: a 16 GB Mac with 8 CPUs gets 8 GiB and 4 CPUs, which holds two. To resize it:
npx humanish runtime setup --memory 13 --cpus 8Setup stops the VM, resizes it and starts it again. It refuses while participant
desktops are running, and refuses a size below one desktop (4 GiB and 2 CPUs) or above
the Mac's own. Without the flags, an existing VM keeps its size. When limactl list shows
no size for the VM, give both flags: setup cannot tell which value to keep, and
runtime status reports no capacity for it.
On a Mac, a live study that needs more desktops at once than the VM holds is refused
before any desktop or model call, with HUMANISH_COMPUTER_USE_LOCAL_CAPACITY_EXCEEDED.
On Linux the run starts with a warning, since free memory varies. When Docker kills a
desktop for memory anyway, the participant's error and the run's review.md say the
desktop ran out of memory, with HUMANISH_COMPUTER_USE_DESKTOP_OUT_OF_MEMORY.
Use cloud desktops when a study needs more participants at once than this machine can
hold, or when the Mac cannot spare the memory. Hosted E2B desktops have no local memory
limit. Set these two fields, add subject.serve with the command that starts your app,
and provide E2B_API_KEY:
subject:
source: local-tree
execution:
target: e2b-desktopOtherwise run fewer at once with execution.concurrency, which runs the participants in
waves of that size.
Runtime maintenance
The npm build pins a release URL, byte count, SHA-256 and immutable Docker image
ID in src/substrates/local/runtime-release.ts. It has no moving latest image dependency.
Runtime releases include source archives and notices separately; study users do
not download those archives. Updating a runtime requires a reviewed catalog
change and a new CLI release.
Source builders can use the
maintained recipes and set
HUMANISH_LOCAL_RUNTIME_IMAGE to an already-built compatible local image. An
invalid override fails; it does not cause an implicit registry pull.
Apple Silicon Macs
The Mac adapter uses a dedicated humanish-runtime Lima/VZ host on M3 or
newer Macs, with Lima 2.2+ and macOS supporting nested virtualization. Docker
runs inside that host; Docker Desktop is unnecessary. Setup creates the host
with room for four desktops, capped at half the Mac, and an 80 GiB growable disk.
It mounts no Mac directories. runtime setup --memory --cpus resizes it; see
How many participants fit. humanish never changes a
study's concurrency to fit the VM. Studies with more than two participants at once
have not been run on a Mac by this integration.
The scheduler and study loop remain shared. Standard OpenSSH forwards the browser-control Unix socket to the Mac, and the selected app port back into the Linux host. It preserves HTTP(S)/WebSocket bytes without parsing them. Codex runs on the Mac and retains the same separate participant/analyst profiles and file-backed login requirement. Keychain-only authentication is not supported.
The installed CLI passed first-attempt public image setup and two-participant
studies on an M5 Max: distinct app-side saves, overlapping participants,
verified recordings and automatic account analysis. A fresh Lima instance used
the public ARM64 catalog without a development image override. The separately
available source archives match that native build. The manually dispatched ARM64
job in browser-appliance-proof.yml builds images and sources; compilation alone
does not establish Mac execution.
Status and doctor do not create or start Lima. Explicit setup/first live use
starts the owned host; closing a study removes its participant containers and
volumes, but keeps the reusable Lima host running. Stop it with
limactl stop humanish-runtime when no studies are running. An interrupted
first provision remains inspectable through Lima and can be retried. humanish
does not replace a conflicting instance or stop unrelated instances.
Normal close, cancellation and controller death were exercised on established Mac desktops. Shared startup cancellation and interrupted create-reply recovery were exercised against real Linux Docker/Firecracker, with a separate regression check for Lima cleanup. Forced controller death during startup, full-study cancellation, host sleep/wake and higher concurrency remain unqualified. A forced kill before a desktop connects can leave resources requiring inspection; this adapter adds no suspend detector that unconditionally destroys a study.