The Box
Sandbox

Sandbox Environment

Learn about the isolated sandbox environment where Claude executes your tasks

Sandbox Environment

When Claude works on your tasks, it runs inside an isolated sandbox environment. This provides security, consistency, and a fully-equipped development environment.


Default Configuration

Each sandbox environment starts with:

ResourceSpecification
CPU1 vCPU
RAM2 GB
OSUbuntu 24.04.3 LTS
ArchitectureAMD64 (x86_64)

Need more resources? You can customize CPU and RAM from the Sandbox Environment settings section when creating a task.


Pre-installed Tools

The sandbox comes with a comprehensive set of development tools pre-installed. You don't need to install these manually — they're ready to use out of the box.

Operating System

ToolVersion
Ubuntu24.04.3 LTS

Programming Languages

LanguageVersionNotes
Node.jsv22.xDefault runtime
Go1.22.xlinux/amd64
PHP8.4.xDefault (php command)
PHP8.2.xAvailable via php82 command
RustLatest stableInstalled via rustup

Package Managers

ToolVersionFor
BunLatestJavaScript runtime & package manager
pnpmLatestNode.js package manager
YarnLatestNode.js package manager
CargoLatestRust package manager
uvLatestPython package manager

Developer Tools

ToolDescription
Claude CodeAI coding assistant CLI
GitHub CLI (gh)GitHub from the command line
GitVersion control
curlHTTP client
wgetFile downloader

Other Utilities

  • build-essential — C/C++ compiler and tools
  • zip / unzip — Archive tools
  • net-tools — Network utilities

Using Different PHP Versions

The sandbox has two PHP versions installed. You can switch between them:

# Use PHP 8.4 (default)
php --version

# Use PHP 8.2 explicitly
php82 --version

# Or use full path
/usr/bin/php8.2 script.php
/usr/bin/php8.4 script.php

Installing Additional Software

If your task requires additional tools or packages that are not pre-installed, Claude can install them during task execution.

Installing additional software will increase task execution time. The sandbox starts fresh for each task, so installed software is not persisted between tasks.

Examples

Python packages:

uv pip install requests pandas

Node.js packages:

bun add express
# or
pnpm add express

System packages:

sudo apt update && sudo apt install -y <package-name>

Rust crates:

cargo add serde

Resource Limits

The default sandbox configuration (1 CPU, 2GB RAM) is suitable for most development tasks. However, for resource-intensive operations like:

  • Large codebase compilations
  • Running multiple services simultaneously
  • Memory-intensive data processing

You may want to increase the resources from the Sandbox Environment section in the task creation form.


Version Policy

The sandbox uses the latest stable versions of all tools at the time of image creation. Major versions are pinned (e.g., Node.js 22, PHP 8.4), but patch versions may vary.

If you need a specific tool version for your project, Claude can install it during task execution using version managers like nvm for Node.js or rustup for Rust.