Skip to content
docs
type to search↑↓ move↵ openesc close
v0.2.4github

Prepared OpenOrange provider registration

2 min readv0.2.4this page as markdown

This patch adds a Hermitbox provider registration to OpenOrange. It is not part of upstream OpenOrange: OpenOrange 1.0.2 does not offer hermitbox, and an unmodified release cannot select this provider.

The patch targets Apache-2.0 OpenOrange commit 1cabf2e9db300361c9f0b751c7723da7eb706f5e. source.json pins the exact original files. Hermitbox ships no OpenOrange implementation.

What the patch changes

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.

Offer it upstream

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.

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.

How this is tested

Hermitbox’s CI end-to-end job applies this exact patch to digest-verified upstream files, typechecks and builds the registration. It 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. This local command only prepares ignored validation output:

shell
bun control/tools/open-orange-patch.ts
run it yourself
$curl -fsSL https://hbx.sh | sh
or ask your agent
Install Hermitbox and set it up for me
Linux (x86_64 or aarch64), no root, no Docker. Agents can read every page: llms.txt · llms-full.txt
the floor · nothing below this line