Skip to main content

Package Management

VoidRun allows you to install packages dynamically at runtime. Whether you need system-level dependencies, Python libraries, or Node.js modules, you can install them on-demand inside your sandbox.
Sandbox examples on this page use the code system image unless noted. code is Alpine-based; apt-get sections match max (Debian) or other Debian-style images: adjust commands if you stay on code (use apk on Alpine, or switch the sandbox to max).

Dynamic Package Management

Developers and AI agents can install packages at runtime without pre-baking them into custom images. This provides flexibility for:
  • Ad-hoc dependencies: Install packages as needed during execution
  • AI agent workflows: Let AI agents install required tools dynamically
  • Rapid prototyping: Test new libraries without rebuilding images
  • Version flexibility: Install specific versions on demand

🐧 System Packages

Ubuntu/Debian packages via apt-get for OS-level dependencies.

🐍 Python Packages

pip for Python libraries and frameworks.

📦 Node.js Modules

npm/yarn for JavaScript/TypeScript packages.

System Packages (Ubuntu/Debian)

Install OS-level dependencies using apt-get:

Common System Packages

Python Packages

Install Python libraries using pip:

Installing Specific Versions

requirements.txt

Install from a requirements file:

Node.js Packages

Install JavaScript/TypeScript modules using npm or yarn:

package.json

Install from package.json:

Best Practices

Installing heavy packages on every sandbox creation can significantly slow down your workflow. Consider the trade-offs between dynamic installation and custom images.

When to Install Dynamically

✅ Good for Dynamic Install

  • Small packages (under 50MB)
  • Version-specific requirements
  • Ad-hoc AI agent needs
  • Development/testing
  • Infrequently used dependencies

❌ Better to Bake into Image

  • Large packages (over 100MB)
  • Complex system dependencies
  • Frequently used in production
  • Slow-to-install packages
  • CUDA/GPU dependencies

Performance Comparison

Example: AI Agent Workflow

For AI agents that need to install packages dynamically:

Next Steps

Custom Images

Learn how to create pre-configured images with dependencies baked in.

Code Execution

Execute code using your installed packages.