Interactive shell over repos in a Mesa org running inside an E2B sandbox, written in TypeScript.
Spins up an E2B sandbox, installs Mesa, mounts your org's repos via FUSE, and drops you into a minimal shell. Commands execute inside the sandbox against the mounted filesystem.
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 E2B sandbox...
Mounting your-org...
Connected to your-org. Type "exit" or Ctrl+C to quit.
$ ls
repo-one repo-two repo-three
$ cd repo-one
$ ls
README.md src/ package.json
$ exit
Cleaning up sandbox...
Bye!
- Creates an E2B sandbox with a 1-hour timeout
- Installs Mesa CLI and FUSE inside the sandbox
- Starts the FUSE daemon (
mesa mount --daemonize) with your org credentials - Drops you into a REPL rooted at the mounted org directory
| Variable | Description |
|---|---|
MESA_ORG |
Your Mesa organization slug |
MESA_API_KEY |
Mesa API key (get one here) |
E2B_API_KEY |
E2B API key (get one here) |
- Node.js >= 18
- Mesa account with an API key
- E2B account with an API key