← All posts

Stop Re-Installing Your Dev Stack: Pin Python and Node Versions Once, Reproduce Them Everywhere

October 2, 2026 · 4 min read · The xShellz Team

TL;DR

  • The xshellz.box manifest is a one-line-per-package file reinstalled on every box boot, giving you a deterministic runtime environment.
  • Pin Python with apt:python3.12, Node with apt:nodejs, and even pip/npm packages with specific versions like pip:requests==2.31.0.
  • All xShellz Agent Shell tiers are always-on including free, so your manifest-driven environment stays running 24/7 with zero idle timeout.

To guarantee your AI agent always gets the exact same Python and Node in its sandbox, create an xshellz.box manifest in your home directory with one line per package. Write apt:python3.12 to lock Python 3.12, and apt:nodejs for Node 22. Every box boot reinstalls from that file, so your agent sees the identical runtimes every time. We run the xShellz fleet ourselves, and this is the same mechansm our own boxes use.

how do i make sure my AI agent always has the exact same python and node versions in its sandbox

Drop an xshellz.box file in your home directory. On every boot, the box reads this manifest and reinstalls exactly what it lists. So if your agent needs Python 3.12 and Node 22, you write those into the manifest and no matter how many boxes you spin up, each one gets that precise combination. The box itself ships with Python 3 and Node 22 preinstalled, but the manifest overrides and locks them: an apt update won't accidentally bump you to an incompatible minor version. Because all Agent Shell boxes run Ubuntu 24.04 LTS, the long-term support ensures those pinned packages stay available.

what is an xshellz.box manifest

It's the configuration file that makes an Agent Shell box reproducible. You place it at ~/.xshellz.box and write one package per line. Use a bare name for base system packages, or preface with apt:, pip:, or npm: to pull from the corresponding package manager. The manifest is reinstalled on every boot, so the box always starts from a known state. The root filesystem is ephemeral except for /root (your persistent home). That means the manifest and your home dir surivve, while the rest resets when a box is rebuilt on a newer image.

how do i pin specific python and node versions in a manifest

Each line specifies what to install, and you can lock a version directly with the package name. For example:

apt:python3.12
apt:python3.12-venv
pip:black==24.1.1
apt:nodejs
npm:typescript@5.3.3

That manifest forces Python 3.12, the venv module, the exact Black formatter version, Node 22, and Typecript 5.3.3. You can use apt's own version-string pinning (e.g., apt:python3.12=3.12.0-1~) if you need a specific patch, but for most workflows locking the major.minor is enough. The box runs apt install and pip install exactly as written, so there is no drifted dependency. Combine this with a sandbox from the AI sandboxes product and your agent's runtime is frozen in place.

can i use a manifest to make my dev environment reproducible

Absolutely. The manifest is infrastructure as code for your agent's sandbox. Pair it with an always-on Agent Shell box, and the same Python, Node, and toolchain are reinstalled on every boot, even after a rebuilt image. Your agent gets an identical runtime every session, whether it's running borg, Claude Code, or a custom script. The box runs Ubuntu 24.04 LTS, so all packages draw from a stable release, and the manifest pins them. Underneath, the box uses a gVisor sandbox for isolation, but the manifest-drien environment sits on top of that hardened base, so the setup remains portable and auditable.

how much does it cost to run an always-on box with a custom manifest

Every xShellz plan includes an always-on Agent Shell box, from free through to larger sizes, with no idle timeout and no trial countdown. That means you can keep a box running 24/7 with your custom manifest without paying anything on the free tier. If you need more CPU or memory for heavier workloads, paid tiers are available. All tiers give you the same manifest machanism and the same preinstalled coding agents, so the environment definition doesn't change with the price point.

Frequently asked questions

Will changing the manifest affect my current running box, or do I need to restart?

Changes take effect on the next cold boot. The box reads ~/.xshellz.box only during startup, so editing the file while the box is live does nothing until you restart. You can trigger a restart from the dashboard or via the SDK; the box will then reinstall the new set of packages fresh.

Can I mix apt, pip, and npm packages in the same manifest?

Yes. Each line takes a prefix that tells the installer which package manager to use. Write apt: for system packages, pip: for Python packages, and npm: for Node packages. For base system layers like the runtime itself, using apt:python3.12 or apt:nodejs is the safest route, because those pull from the Ubuntu repositories.

What if I need a Python version that isn't in the Ubuntu 24.04 repos?

The manifest only uses the standard apt sources, so you are limited to what Ubuntu 24.04 ships. If you need a newer minor release, you can add a PPAA or build from source with a custom boostrap script placed in your /root home; those steps are beyond the simple manifest but can be automated. The box is a root-accessible sandbox, so you have that flexibility.