nousresearch/hermes-agent + OCR/PDF/document CLI tools and rootless pip/micromamba. amd64+arm64
469
nousresearch/hermes-agent with the command-line tools
the agent keeps reaching for already installed, plus a way to add more packages without root.
The upstream image runs the agent's terminal and execute_code tools as the unprivileged hermes user (no
sudo), and the root filesystem resets on every restart. When the agent needs tesseract to OCR a scanned PDF,
apt-get install fails on the dpkg lock, and it falls back to slow vision-model calls page by page. This image
bakes in the usual tools and gives the agent a rootless install path that survives restarts.
scripts/hermes/ and
repo_scripts/build-hermes-image.sh)linux/amd64, linux/arm64 (multi-arch manifest)nousresearch/hermes-agent, the Debian packages and micromambaOn top of the unchanged upstream image (same ENTRYPOINT, s6-overlay, UID remap via HERMES_UID/HERMES_GID):
tesseract-ocr with deu, eng, osd; ocrmypdf, unpaper, pngquantpoppler-utils (pdftotext, pdftoppm, pdfimages, ...), qpdf, ghostscriptimagemagick, pandocjq, file, zip/unzip, p7zip-full (ffmpeg already ships upstream)micromamba (pinned release, sha256-checked) for further CLI tools from conda-forgepip for further Python packages, importable from the agent's own PythonEverything lands on the persistent HERMES_HOME volume (/opt/data), so it survives pod restarts and stays per
user.
micromamba install -y -c conda-forge exiftool # CLI tools -> /opt/data/.micromamba, already on PATH
pip install some-package # Python -> /opt/data/.local/pip/python3.X
pip is a small wrapper around the uv that ships in the base image (uv pip install --target). A .pth hook
appends the target to sys.path of the Hermes venv, so packages are importable in execute_code right away.
Console scripts are linked into /opt/data/.local/bin.pip list, freeze, show and uninstall work; --user, -y and similar pip-only flags are ignored.
python -m pip is not available, use pip.apt-get/apt install, update, remove ... and sudo print a short hint (what is preinstalled, how to use
micromamba/pip) and exit with 100, instead of failing on the dpkg lock. Root and read-only calls such as
apt list --installed pass through unchanged.Swap the image name and keep the tag:
image: xomoxcc/hermes-agent-tools:v0.23.1 # instead of nousresearch/hermes-agent:v0.23.1
Use it for every container that runs agent sessions (dashboard, gateway). Nothing else changes: same environment variables, same volumes, same arguments.
| Tag | Notes |
|---|---|
v0.23.1 | On nousresearch/hermes-agent:v0.23.1, amd64 + arm64 |
latest | Most recent build, same as the newest version tag |
The tag follows the upstream tag it layers on; each upstream release needs its own rebuild. Pin a version tag in
deployments rather than latest.
Built for and run on a private k3s cluster. Published in case it is useful to someone else. No commercial support; tags may be retagged or removed without notice. Open an issue on the GitHub repo if something is broken.
Content type
Image
Digest
sha256:db9de9e6d…
Size
1.3 GB
Last updated
2 days ago
docker pull xomoxcc/hermes-agent-tools