Base images
Every template starts from one base image. Select it first, then add packages, files, and commands.
AgentBox base image
fromBaseImage() uses the AgentBox OCI image as its base. It is a practical default for development and automation workloads.
The image includes:
- Python 3.11 with
pip,uv, anduvx; - Node.js 24 with
npm,npx, andyarn; - Git, Git LFS, OpenSSH, GitHub CLI (
gh), and GitLab CLI (glab); - the
rg,fd,find,grep,sed,gawk,diff,patch,jq, andyqsearch and text-processing tools; - the
curl,wget, andrsyncdownload and synchronization tools; - the
tar,gzip,bzip2,xz,zip,unzip, andzstdarchive tools; - the
ss,dig,nc,bash,coreutils,util-linux,procps,file, andlessnetworking and system utilities; - a C/C++ compiler,
pkg-config, and headers for building common dependencies.
The user account has /home/user as its home directory and can run commands through passwordless sudo.
Common OCI images
The SDK provides helpers for common images: fromUbuntuImage, fromDebianImage, fromFedoraImage, fromAlpineImage, fromArchImage, fromPythonImage, fromNodeImage, and fromBunImage.
For example:
fromUbuntuImage("24.04")selectsubuntu:24.04;fromNodeImage("24-bookworm-slim")selectsnode:24-bookworm-slim;fromBunImage("1.3")selectsoven/bun:1.3.
These are OCI images from a Docker Registry. AgentBox uses their filesystem as the template foundation, but runs the sandbox in a virtual machine rather than in a Docker container.
Any OCI image
fromImage("registry.example.com/team/app:1.4.0") accepts a complete OCI image reference. For a private registry, supply its credentials.
A definition can select only one base. Use fromTemplate("name:tag") to extend one of your existing templates.