Sandbox environments let you run code in isolated, ephemeral containers. Using Git as your source of truth—rather than provider-specific storage like volumes—gives you version history, branching, and portability across any sandbox provider. Code Storage integrates with popular sandbox providers through authenticated Git URLs—generate a URL with the SDK, then clone inside your sandbox.Documentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
Note: For fastest cloning in ephemeral environments, consider using a shallow single-branch clone – this skips commit history and other branches—ideal for sandboxes where you only need the latest code:
Quick start
Generate an authenticated Git URL and use it inside any sandbox:Modal
Modal provides serverless cloud functions with persistent volumes. Clone repositories into volumes, run code, and push changes back.E2B
E2B provides cloud sandboxes for AI agents. Clone repositories, execute code, and push results back to Code Storage.Daytona
Daytona provides secure sandboxes for AI agents. Clone repositories using Daytona’s built-in Git API, run commands, and push changes back.Ephemeral branches for isolation
Use ephemeral branches to isolate sandbox work from your main codebase. Changes stay in the ephemeral namespace until you promote them.Provider resilience
Many teams run multiple sandbox providers for maximum resilience. With Git as your source of truth, you can failover between providers without losing work—if one has an outage or capacity issues, spin up a sandbox elsewhere and clone the same repository:Security considerations
- Short TTLs: Use the shortest TTL practical for your use case. Sandbox sessions are typically short-lived.
- Minimal permissions: Grant
git:readonly unless the sandbox needs to push changes. - Ephemeral branches: Isolate experimental or untrusted code in the ephemeral namespace.
- Audit commits: When sandboxes push code, review changes before merging to protected branches.