Skip to content

Prepared OpenOrange provider registration

This patch is not part of upstream OpenOrange. OpenOrange 1.0.2 does not offer hermitbox; an unmodified release cannot select this provider. The patch targets Apache-2.0 OpenOrange commit 1cabf2e9db300361c9f0b751c7723da7eb706f5e. source.json pins the exact original files. No OpenOrange implementation is shipped in hermitbox.

The proposed change adds ORANGE_SANDBOX_PROVIDER=hermitbox, lazy SDK imports and validation of HERMITBOX_API_URL/HERMITBOX_API_KEY. Its Actor continues to store provider name and sandbox id. The public SDK owns lifecycle, execution and file access. The binding uses the connected sandbox’s persistent directory and native binary files and directory metadata, instead of requiring GNU file tools. Recursive list never descends into symlinks. Preview requests call hermitboxPortAddress and use hermitbox’s edge, retaining request bodies, paths, query parameters and the edge URL’s prefix. Git defaults to the backend’s working directory. Other providers keep their existing working directories.

To offer this upstream, apply change.patch to that commit and install the SDK release containing hermitbox/provider next to Orange. Add that same released SDK as an optional peer and a pinned development dependency for Orange’s typecheck. Extend Orange’s provider settings documentation and tests with the name, URL/key requirements, missing-sandbox reconnection, native byte writes and preview forwarding. Then run its full typecheck and test suite before publishing. The existing OpenOrange adapter bridge maps combined output to stdout; this patch retains that behavior. Complete Files.stat/lstat metadata stays partial. Session/code-context and container-only methods keep their existing refusals.

hermitbox’s CI end-to-end job applies this exact patch to digest-verified upstream files, typechecks and builds the registration and exercises its create/connect, binary files, directory listing, execution, edge preview and destroy against the same real hermitbox deployment as the SDK provider. It does not bundle or run OpenOrange or Rivet’s control plane in a hermitbox installation. The local command bun control/tools/open-orange-patch.ts only prepares ignored validation output.

The browser binding is deliberately unchanged: hermitbox’s short-lived, rotating browser capability cannot be a fixed ORANGE_BROWSER_CDP_URL. A future refresh contract would be needed; the current bridge makes no Browser Rendering claim.

run it yourself
$curl -fsSL https://hbx.sh | sh
or ask your agent
Install Hermitbox and set it up for me
agents can read every page: llms.txt · llms-full.txt