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

Connect Codex

1 min readv0.3.2this page as markdown
let your agent do it
Connect Codex to my remote Hermitbox install through hermitbox mcp.
Paste it into your agent. It follows this page as Markdown: codex.md

Codex gets tools to create sandboxes, run commands in them, and snapshot, fork, sleep and delete them, on a Hermitbox install on another machine, through hermitbox mcp over stdio.

On the machine where you ran the installer, skip this page: Connect your agent sets Codex up without a key.

  1. Install the Hermitbox CLI on the machine running Codex.
  2. Start Codex with HERMITBOX_API_URL and HERMITBOX_API_KEY in its private environment.
  3. Merge this into ~/.codex/config.toml and restart Codex. Ask it for the project’s defaults, a sandbox, echo hello in it and cleanup. Supply an image only for a container default.
toml
[mcp_servers.hermitbox]
command = "hermitbox"
args = ["mcp"]
env_vars = ["HERMITBOX_API_URL", "HERMITBOX_API_KEY"]

env_vars passes the named values without storing the key. The Codex reference also documents a project .codex/config.toml in trusted projects. Host policy and tier limits stay in force.

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