← All posts

Stop Fighting 'Works on My Machine': Pin Your AI Agent's Dev Stack with an xshellz.box Manifest

August 14, 2026 · 4 min read · The xShellz Team

TL;DR

  • An xshellz.box manifest lists every apt, pip, and npm package your agent needs and is reinstalled on every boot.
  • The manifest lives in the persistent /root directory, so it survives rebuilds and image updates.
  • With version-pinned entries you get a truly identical environment every time an agent spins up a new box.

Place a plain-text xshellz.box manifest in your box's persistent /root directory. List every apt, pip, and npm package your agent needs, with exact versions where it matters. The file is reinstalled on every boot, so every sandbox spin-up is identical. We run the xShellz fleet ourselves, and this is how we keep every agent's toolchain identical across boxes.

how do i make sure my AI agent always has the same tools and versions installed in its sandbox?

Put a file called xshellz.box in the /root directory of any Agent Shell box. Each line declares a single package: prefix with apt:, pip:, or npm:, then optionally pin a version. The box reads this manifest at boot and reinstalls every listed package into the fresh, sandboxed environment. Because /root is the only persistent path, the manifest survives restarts and image updates. The result is a reproducible, version-locked dev stack that never drifts, no matter how many times an agent spins up a new sandbox.

what is an xshellz.box manifest?

It is a one-line-per-package file in your home directory on an xshellz.box running Ubuntu 24.04 LTS. Write a bare package name for default apt handling, or use apt:, pip:, and npm: to target the manager you want. The box reinstalls every entry on each boot, guaranteeing a clean, consistent environment. The manifest is the single source of truth for what an agent can expect. You version-control it alongside your project, and you never chase missing tools again.

how do i pin specific python and node versions for my agent?

Use Ubuntu's system packages for the interpreter itself (apt:python3.12-venv, apt:nodejs) and pin pip or npm packages with standard version constraints. For example, a reproducible AI coding setup might look like this:

apt:python3.12-venv
apt:nodejs
pip:requests==2.31.0
pip:langchain-core==0.3.13
npm:[email protected]

Because the box runs on a gVisor sandbox kernel, each reinstall starts from a clean Ubuntu 24.04 base. Append a version number to any apt package if a specific release matters (apt:git=1:2.43.0-1ubuntu7); pip and npm accept their usual == and @ syntax. This gives you the same Node and Python environment every time, exactly like a lockfile for your agent's entire runtime.

how do i automate tool installation in a remote agent shell?

Just drop the manifest into /root. The box runs the install process automatically at startup, so there is no extra step. If you need to apply changes to a running box, trigger a rebuild from the dashboard or the SDK. You can also let an agent verify the environment: run borg "check if all deps from manifest are installed" or claude "confirm python3.12 and langchain-core are available". Because the manifest is the sole driver, automation reduces to maintaining that single file.

what happens to my manifest when the box reboots?

Every Agent Shell box keeps /root persistent, even when the rest of the filesystem resets. The manifest sits there untouched. On each boot the box reads the file and rebuilds the environment from scratch, so you always get the exact pinned tooling. The box uses userns-remap and a sandbox kernel to isolate the environment, and the 24/7 always-on nature means the manifest is ready whenever an agent connects. Reboots, image updates, or switching to a newer box all produce the same dev stack.

Frequently asked questions

Can I run shell commands or custom install scripts from the manifest?

No, the manifest supports only package declarations (apt:, pip:, npm:). For custom setup steps you can place a script in /root and have your agent or a tmux session execute it after the box boots. The box itself does not run arbitrary init commands; it only reinstalls the listed packages.

What if my agent needs a database or a background service?

You can install PostgreSQL, Redis, or any other service via the manifest (apt:postgresql), then configure its data directory to live under /root to keep state across rebuilds. The service will start automatically just like any Ubuntu package. The agent can then interact with it during coding sessions.

How do I move the same manifest to a new box or share it with a team?

Copy the file. scp /root/xshellz.box user@newbox:/root/ is a common pattern. Because all xshellz.box instances run the same Ubuntu 24.04 image, the manifest produces an identical environment on any box tied to your account. Version-control the file in your project repo to give every teammate and agent the exact same toolchain.