Public Preview: GravixLayer Sandbox is currently in public preview. Features are experimental and may have issues or break as ongoing updates continue.
What is GravixLayer Sandbox?
GravixLayer Sandbox creates isolated computing environments where you can:- Execute code safely in Python, JavaScript, and other languages
- Run shell commands with full environment control
- Manage files with upload, download, read, and write operations
- Maintain persistent state across multiple executions
Key Features
Secure Isolation
Each sandbox runs in complete isolation with dedicated resources
Multi-Language Support
Execute Python, JavaScript, shell commands with full library support
Persistent State
Maintain variables, files, and execution context across API calls
File Management
Upload, download, read, write, and organize files within sandboxes
LLM Integration
Connect with LLMs to build code interpreters and autonomous agents
Quick Start
- CLI Commands
- Python SDK
- JavaScript SDK
Available Templates
Python Base v1
- Python 3.11 with data science libraries
- 2 vCPU shared processing power
- 1024MB RAM memory allocation
- 1024MB disk storage
JavaScript Base v1
- Node.js 20 LTS with popular packages
- TypeScript support included
- Same resource allocation as Python
Getting Started
Quick Start Guide
Create your first sandbox and run code in minutes
Sandbox Management
Learn to create and manage sandboxes
Code Execution
Execute Python and JavaScript code
File Operations
Upload, write, and manage files
LLM Integration
Connect Sandbox with LLMs
Resource Limits
| Resource | Limit |
|---|---|
| CPU | 2 vCPU (shared) |
| Memory | 1024MB RAM |
| Disk | 1024MB |
| Timeout | 300s (default, max 3600s) |

