hermes-open-sandbox
OpenSandbox execution backend for Hermes Agent.
Run Hermes terminal and file tools inside secure, isolated OpenSandbox containers instead of your local machine.
Architecture
hermes-open-sandbox (pip package) Hermes Agent (after setup)
┌──────────────────────────────┐ ┌─────────────────────────────────┐
│ SandboxConfig │ │ tools/environments/opensandbox │
│ OpenSandboxSession │──delegates──│ - BaseEnvironment subclass │
│ - pure SDK wrapper │ │ - auto-generated by CLI │
│ - zero Hermes deps │ │ │
└──────────────────────────────┘ └─────────────────────────────────┘
The package itself has no dependency on Hermes Agent internals. The thin adapter that bridges Hermes's BaseEnvironment interface is auto-generated into the Hermes installation directory by hermes-open-sandbox-setup.
Quick Start
# 1. Install the package
pip install hermes-open-sandbox opensandbox
# 2. Patch Hermes to register the backend (idempotent)
hermes-open-sandbox-setup
# 3. Configure
hermes config set terminal.backend opensandbox
export OPENSANDBOX_DOMAIN=your-server:8080
export OPENSANDBOX_API_KEY=sk-xxx
# 4. Restart Hermes and use it
hermes
Standalone Usage
You can also use the package directly without Hermes:
from hermes_opensandbox import OpenSandboxSession, SandboxConfig
config = SandboxConfig.from_env(
domain="your-server:8080",
api_key="sk-xxx",
)
with OpenSandboxSession(config) as session:
session.create()
output, exit_code = session.execute("echo hello")
print(f"Output: {output}, Exit: {exit_code}")
session.kill()
Supported Images
Any Docker image that includes bash:
python:3.11nikolaik/python-nodejs:python3.11-nodejs20(default, includes Node.js)ubuntu:22.04- Custom images from your registry
Environment Variables
| Variable | Default | Description |
|---|---|---|
OPENSANDBOX_DOMAIN |
localhost:8080 |
OpenSandbox server address |
OPENSANDBOX_API_KEY |
(none) | Authentication key |
OPENSANDBOX_IMAGE |
nikolaik/python-nodejs:python3.11-nodejs20 |
Container image |
OPENSANDBOX_CWD |
/workspace |
Working directory |
OPENSANDBOX_CPU |
1.0 |
CPU cores |
OPENSANDBOX_MEMORY |
5120 |
Memory in MiB |
OPENSANDBOX_DISK |
51200 |
Disk in MiB |
Hermes Config Keys
These can be set via hermes config set and take precedence over env vars:
| Key | Description |
|---|---|
terminal.opensandbox_domain |
Server address |
terminal.opensandbox_api_key |
API key |
terminal.opensandbox_image |
Container image |
Manual Uninstall
# Remove the wrapper
rm ~/.hermes/hermes-agent/tools/environments/opensandbox.py
# Restore backups
mv ~/.hermes/hermes-agent/tools/terminal_tool.py.bak ~/.hermes/hermes-agent/tools/terminal_tool.py
mv ~/.hermes/hermes-agent/agent/prompt_builder.py.bak ~/.hermes/hermes-agent/agent/prompt_builder.py
License
MIT
Metadata
Release files for hermes-open-sandbox 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hermes_open_sandbox-0.3.1.tar.gz | 38.0 kB | With provenance | Details for hermes_open_sandbox-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hermes_open_sandbox-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for hermes_open_sandbox-0.3.1-py3-none-any.whl |
Total release size: 52.9 kB
Release files / hermes_open_sandbox-0.3.1.tar.gz
| Download URL | hermes_open_sandbox-0.3.1.tar.gz |
|---|---|
| Size | 38.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a9b97bf436840f913b02abf8c755404e3e494f678744211fd2824fb616da00
|
|
BLAKE2b-256 checksum How to use checksums |
8114d07f9b228e61e41c301943203d5bdb7386d3f32b4ac2b5947827f3590af0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logRelease files / hermes_open_sandbox-0.3.1-py3-none-any.whl
| Download URL | hermes_open_sandbox-0.3.1-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab4b1f6367235e66f091be8f19f4bb837fe5fbd6abb59a8421cce460f4a78b73
|
|
BLAKE2b-256 checksum How to use checksums |
fe1e2c233e58ebee9421dfd1a9db19f548d756af629abc6cac4c7faeb5c3df8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logSecurity for hermes-open-sandbox 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hermes_open_sandbox-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.