basetenlabs/sandbox
forked from blaxel-ai/sandbox
Captured source
source ↗basetenlabs/sandbox
License: MIT
Stars: 0
Forks: 0
Open issues: 3
Created: 2026-10-12T21:29:55Z
Pushed: 2026-10-12T22:27:56Z
Default branch: main
Fork: yes
Parent repository: blaxel-ai/sandbox
Archived: no
README:
Sandboxes
Overview
Sandbox Hub is a collection of development environment templates for creating secure, isolated micro VM environments for various application types. Each template provides a pre-configured environment with all necessary tools and dependencies for specific development scenarios.
Table of Contents
- [Templates](#templates)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)
Templates
The hub directory contains the following templates:
Base Image
A minimal micro VM environment based on Alpine Linux (node:24-alpine) with basic system utilities and networking capabilities. Provides a lightweight, secure foundation for running basic applications and services, featuring a minimal attack surface and optimized resource usage.
> Important: The base image includes Node.js 24 and git, but does not include Python or other language runtimes. If you need Python, either use the [py-app](#python-app) template or install it manually: > ``bash > apk add --no-cache python3 py3-pip >
Python App
A complete Python development environment with pip package manager and common development libraries. Ideal for developing web applications, data science projects, automation scripts, and machine learning applications.
TypeScript App
A development environment for TypeScript applications with Node.js runtime and essential development tools. Perfect for developing modern web applications, APIs, and server-side applications with type safety and modern JavaScript features.
Expo
A comprehensive development environment for building React Native applications using the Expo framework. Includes Expo CLI, development server, and all necessary tools for cross-platform mobile development.
Omnigent Host
A managed-host runtime for Omnigent agent sessions. It combines Omnigent's prebuilt host environment with the Blaxel sandbox API for process execution, file transfer, streaming, and lifecycle control. The image stays hidden from general Hub discovery because Omnigent selects it automatically, but its blaxel/omnigent-host:latest reference is public across workspaces.
Prerequisites
- Docker and Docker Compose
- Git
- Make (optional, for using Makefile commands)
Installation
1. Clone the repository:
git clone https://github.com/blaxel-ai/sandbox.git cd sandbox
2. Start the sandbox environment:
docker-compose up -d
Usage
Blaxel SDK
Languages:
You can find sample on how to create/retrieve/remove a Sandbox at this url: https://docs.blaxel.ai/Sandboxes/Overview Sandbox operations:
Accessing template environments
Each template exposes specific ports for access:
- Base Image: Accessible via port 8080 (sandbox-api)
- Python App: Accessible via ports 8080 (sandbox-api) and 8000 (python-app)
- TypeScript App: Accessible via ports 8080 (sandbox-api) and 3000 (ts-app)
- Expo: Accessible via multiple ports for various Expo services (19000-19006, 8081)
Developing with the Sandbox API
Development server
The recommended way to develop on the Sandbox API is to use the dev environment with Docker Compose:
docker-compose up dev
This will start the development container with the sandbox-api directory mounted as a volume, enabling hot-reloading through Air for real-time code changes. You can then request your sandbox api on port 8080.
After your server has started (You should see a log: "Starting Sandbox API server on :8080"). You can run this command to check everything is running
curl http://localhost:8080/filesystem/~
Test server
Go to sandbox-api/integration-tests [Detailed documentation](sandbox-api/integration-tests/README.md)
Upgrading the Sandbox API
You can upgrade a running sandbox-api instance using the /upgrade endpoint:
curl -X POST http://localhost:8080/upgrade
This will automatically download the latest binary from GitHub Releases, validate it, and restart the server. All running processes are preserved across the upgrade.
You can also specify a version using the SANDBOX_UPGRADE_VERSION environment variable (defaults to latest).
If you prefer to upgrade manually, download the appropriate binary for your platform:
sandbox-api-linux-amd64for Linux x86_64sandbox-api-linux-arm64for Linux ARM64sandbox-api-darwin-amd64for macOS Intelsandbox-api-darwin-arm64for macOS Apple Silicon
Configuration
Template configurations are defined in template.json files within each template directory. These files specify:
- Template name and display name
- Categories and descriptions
- Memory requirements
- Exposed ports and protocols
- Enterprise features and availability status
Templates can provide iconLight and iconDark URLs for each theme. Keep icon for clients that use the original field. During publication, the CI trims the URLs and defaults a missing or blank iconLight to icon, then iconDark if necessary. A missing or blank iconDark defaults to the resolved iconLight. Templates without a dark variant use the same image in both themes. Publication fails before calling the API if none of the three fields contains a nonempty string, so both theme fields are always populated in published metadata.
Contributing
We welcome contributions to Sandbox Hub! Please follow these steps:
1. Fork the repository 2. Create a new branch (git checkout -b feature/new-template) 3. Make your changes 4. Commit your changes (git commit -m 'Add new template') 5. Push to the branch (git push origin feature/new-template) 6. Open a Pull Request
Creating a New Template
To create a new template:
1. Create a new directory in the hub folder with your template name 2. Add a Dockerfile that sets up the required environment 3. Create...
Excerpt shown — open the source for the full document.