Interactive shell over repos in a Mesa org running inside a Blaxel sandbox.
Spins up a Blaxel sandbox, installs the Mesa CLI via the install script, mounts your org's repos via FUSE, and drops you into a minimal shell.
npm install
# Create a .env in this directory (gitignored)
cp .env.example .env
# Now populate your .env file with the required values
# Run
npm startCreating Blaxel sandbox...
Installing Mesa CLI...
Mounting your-org...
Connected to your-org. Type "exit" or Ctrl+C to quit.
$ ls
repo-one repo-two repo-three
$ exit
Cleaning up sandbox...
Bye!
- Creates a Blaxel sandbox (Alpine-based, runs as root)
- Installs system dependencies and the Mesa CLI via the install script (
mesa.dev/install.sh), which detects Alpine and adds the correct APK repository- Uses
gcompatinstead oflibc6-compatto avoid gRPC deadlocks
- Uses
- Mints a short-lived access token from your API key (outside the sandbox) and starts the Mesa FUSE daemon with it via
MESA_ORGandMESA_API_KEY— your raw API key never enters the sandbox - Drops you into a minimal REPL at the mount path
| Variable | Description |
|---|---|
MESA_ORG |
Your Mesa organization slug |
MESA_API_KEY |
Mesa API key with at least write scope (get one here) — the short-lived token minted for the sandbox cannot exceed the key's scopes |
BL_API_KEY |
Blaxel API key |
BL_WORKSPACE |
Blaxel workspace name (read automatically by the Blaxel SDK) |
- Node.js >= 18
- Mesa account with an API key
- Blaxel account with an API key and workspace