Why Sandboxes
Prime Sandboxes are disposable Docker environments for AI-assisted coding, benchmarking, and quick experiments. They give agents and humans an isolated workspace without touching production infrastructure.
Popular moves
- Prototype quickly – launch a clean runtime and iterate without worrying about teardown.
- Benchmark safely – run untrusted code or model evaluations in a locked-down environment.
- Run AI agents securely – disable network access to prevent code from reaching the internet.
- Inject secrets safely – pass API keys, passwords, and tokens as encrypted secrets that never appear in logs or API responses.
- Teach & demo – hand teammates a reproducible workspace that mirrors your setup.
- Use custom images – push your own Docker images and use them in sandboxes with all your dependencies pre-installed.
- Organize with labels – tag sandboxes by project, team, or environment for easy filtering and bulk cleanup.
First Run
Make sure you have an API key with the right permissions on hand (prime login) before running these commands.
Pricing
Sandboxes are billed while running:- CPU: $0.05 per core per hour
- Memory: $0.01 per GB per hour
- Disk: $0.001 per GB per hour
Limits
Per-sandbox
Per-account
Account limits apply across all running sandboxes. If you need higher limits, contact support.
Container Images
Sandboxes support images from any Docker-compatible registry. When you pass an image reference toprime sandbox create, it resolves in this order:
- Fully-qualified references go to the registry you name —
docker.io/pytorch/pytorch:latest,ghcr.io/org/image:tag,quay.io/org/image:tag. - Prime Images — references that start with
prime/, likeprime/<username>/<image>:<tag>,prime/<team-slug>/<image>:<tag>, or the id forms (prime/<userId>/<image>:<tag>,prime/team-<teamId>/<image>:<tag>), resolve to a Prime Image you can access: your own, your team’s, or one that’s been published. - Docker Hub — any other reference with no registry host and no
prime/prefix resolves as a Docker Hub image, so official images likeubuntu:22.04orpytorch/pytorch:latestwork as usual.
Settings in the toggle. Then pass --registry-credentials-id when creating a sandbox. Use prime registry list to view saved credentials and prime registry check-image to verify an image is accessible.
GPU Support
GPU-enabled sandboxes are on the roadmap. For now, sandboxes run on CPU-only machines and setting--gpu-count to a value greater than 0 will return an error. We’ll announce as soon as GPU tiers open up.
Next Steps
- Use the Sandbox CLI Guide for day-to-day commands.
- Build automation with the Sandbox SDK Guide.
- Explore runnable demos in prime-cli/examples.