Time Portal · Sandbox

Images and Network

A sandbox boots the Ubuntu build chosen by its instant and reaches only what its network setting allows.

Which build a sandbox gets

Every sandbox boots an Ubuntu image, built on a fixed set of dates. Every build is made from package archives as they stood on its date, and nothing in it is dated later. A sandbox boots the newest build dated on or before its Accept-Datetime, so a sandbox at 2025-03-01T00:00:00Z gets the 2025-01-01 build. An Accept-Datetime before the oldest build, 2023-04-01, is a 400.

Commands run as root with HOME=/home/epochal, root's home, and start there unless the command sets cwd or env. python3, pip, node, and npm are on PATH, and so is uv from the 2024-04-01 build on. Apps named in apps on create are mounted at /opt/epochal/bin, first on PATH; see Sandbox. An app is a current build, not one as of the sandbox's as_of. Anything in the sandbox, an agent included, can read its version, bundled prompts, and docs, so a run that uses an app is not strictly held to the instant. For a strict instant, do not use apps.

With "network": "time-portal", apt, pip, uv, and npm install from the package mirror set to the sandbox's as_of: pip install pandas in a sandbox at 2025-03-01 installs 2.2.3, and pandas==2.3.0, released later, is not found. With "network": "none" nothing can be installed. For how the instant is chosen, see How the Instant Works.

Builds

DateUbuntuPythonNodenpmuv
2026-10-0126.04 (resolute)3.14.724.21.011.19.00.12.21
2026-07-0126.04 (resolute)3.14.624.18.011.16.00.11.26
2026-04-0124.04 (noble)3.14.324.14.111.11.00.11.2
2026-01-0124.04 (noble)3.13.1124.12.011.6.20.9.21
2025-10-0124.04 (noble)3.13.722.20.010.9.30.8.22
2025-07-0124.04 (noble)3.13.522.17.010.9.20.7.17
2025-04-0124.04 (noble)3.13.222.14.010.9.20.6.11
2025-01-0124.04 (noble)3.12.822.12.010.9.00.5.13
2024-10-0124.04 (noble)3.12.620.17.010.8.20.4.17
2024-07-0124.04 (noble)3.12.320.15.010.7.00.2.18
2024-04-0122.04 (jammy)3.12.220.12.010.5.00.1.26
2024-01-0122.04 (jammy)3.12.020.10.010.2.3none
2023-10-0122.04 (jammy)3.11.518.18.09.8.1none
2023-07-0122.04 (jammy)3.11.318.16.19.5.1none
2023-04-0122.04 (jammy)3.11.118.15.09.5.0none

Preinstalled packages

Every build installs the same packages, each at its newest version on the build's date. /sandbox-images.json on the docs site lists every apt and Python package installed, dependencies included, and the global npm packages, at their exact versions in every build.

  • Python (pip): numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, pillow, openpyxl, python-docx, python-pptx, pypdf, pdfplumber, reportlab, httpx, requests, beautifulsoup4, lxml, rich, typer, pydantic, pyyaml, tomlkit, orjson, tiktoken, tqdm, sympy, pyarrow
  • Node (npm, global): typescript, tsx, prettier, eslint, exceljs, docx, pptxgenjs
  • System (apt): bash, coreutils, findutils, grep, sed, tar, gzip, procps, util-linux, less, build-essential, linux-libc-dev, git, curl, wget, jq, python3, python3-dev, ripgrep, fd-find, bat, tree, htop, tmux, fzf, unzip, zip, 7zip, sqlite3, ffmpeg, imagemagick, pandoc, httpie, file, rsync, bc, net-tools, iputils-ping, bind9-dnsutils, ca-certificates, xz-utils

Network settings

The network setting on create fixes what a sandbox can reach for its life. For how the instant selects what the sandbox sees, see How the Instant Works.

networkWhat the sandbox can reach
none (default)Nothing: names do not resolve and no connection leaves the sandbox.
time-portalHTTP and HTTPS to the web as it stood at the sandbox's as_of, through Time Portal, and the package mirror set to it. Nothing else.

There are no other network modes. Sandboxes cannot reach the live web, private services, or other sandboxes.

Time Portal network

  • Supported requests: GET and HEAD requests from any HTTP client inside the sandbox (curl, requests, browser automation). Each request runs as a Time Portal Fetch call with format: "page", billed and rate-limited accordingly (except downloads from the package mirror).
  • DNS and TLS: Clients that pin destination IP addresses or TLS certificates fail because traffic routes through the Time Portal proxy.
  • Headers: Sandbox requests cannot override Accept-Datetime, and client headers, cookies, and bodies do not leave the sandbox.

Status codes

Responses distinguish the archived site's HTTP status from Time Portal proxy errors using x-fetch-status-code. When x-fetch-status-code is present, the status came from the archive; when absent, the error came from Time Portal. x-fetch-status-message provides a human-readable summary for logs — branch on the numeric status code in code.

Statusx-fetch-status-codeWhat happenedWhat to do
2xxsameThe page as the site served it at as_of, with its Content-Type.Use it.
3xx, 4xx, 5xxsameThe archived origin's HTTP response, with an empty body.Do not retry: the archive does not change. An archived 429 or 503 reflects the origin site at as_of, not a limit on your account.
4040No copy of the page from at or before as_of, or the host could not be reached then.Do not retry; try another URL.
403absentTime Portal refused the read: a blocked URL, a non-read method (POST, PUT, etc.), or a suspended/out-of-credits organization.Do not retry.
429absentOrganization Time Portal rate limit exceeded.Wait Retry-After seconds, then retry.
503, 504absentTime Portal failed or timed out.Retry with backoff.

Code that branches on status_code works as it would on the live web. To decide whether to retry, check x-fetch-status-code: when present, the status came from the archived site and is final; when absent, the error came from Time Portal.

Package mirror

https://packages.epochal-files.com is Epochal's package mirror. Sandboxes reach it directly rather than through Time Portal, so package downloads do not count as fetch requests. Every mirror request is pinned to the sandbox's as_of: only versions published on or before as_of exist, and latest resolves as of that timestamp.

Every build configures its package managers to use this mirror, so apt install, pip install, uv pip install, uv add, and npm install work out of the box.

EcosystemURLContents
Ubuntu (apt)/ubuntunoble, resolute and jammy, each with -updates and -security, as the Ubuntu archive stood on the day of as_of.
PyPI (pip, uv)/simple/All of PyPI: every file uploaded by as_of.
npm/npm/All of the npm registry: every version published by as_of, with the latest tag as it stood then.
Node.js/node/dist/Node.js release builds, as on nodejs.org/dist.
GitHub releases/github/<owner>/<repo>/releases/…Release assets of astral-sh/uv, astral-sh/python-build-standalone and BurntSushi/ripgrep.

Packages published after as_of return 404. Other package ecosystems (such as conda, crates.io, Go modules, and Maven) are not mirrored and are not reachable from inside a sandbox.

Inbound

Nothing reaches a sandbox from outside except this API. There are no exposed ports, no SSH, and no tunnels. Interact through commands, output, input, and files.

Choose a setting

  • Running code that needs no downloads: none. Upload dependencies as files.
  • An agent that browses or installs packages as of the instant: time-portal.

Next steps

Commands and Files

A command is a program you start in a live sandbox.

Lifecycle and Limits

A sandbox boots, runs while it is live, and ends at a timeout, a terminate, or a failure.

Sandbox

A sandbox is a Linux virtual machine whose clock and network are set to an instant.