Interactive shell over repos in a Mesa org running inside a Daytona sandbox, written in Python.
Spins up a Daytona sandbox, installs the Mesa CLI, mounts your org's repos via FUSE, and drops you into a minimal shell. Commands execute inside the sandbox against the mounted filesystem.
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a .env in this directory (gitignored)
cp .env.example .env
# Now populate your .env file with the required API keys
# Run
uv run main.pyCreating Daytona sandbox...
Installing Mesa...
Configuring FUSE...
Mounting Mesa...
Connected to your-org. Type 'exit' or Ctrl+D to quit.
$ ls
repo-one repo-two repo-three
$ cd repo-one
$ ls
README.md src/ package.json
$ cat README.md
# My Project
...
$ exit
Cleaning up sandbox...
Bye!
- Creates a Daytona sandbox (default image)
- Installs the Mesa CLI inside the sandbox
- Configures FUSE (
user_allow_other) so Mesa can serve the mount - Runs
mesa mount -d -ywith your org and API key to start the FUSE daemon - Drops you into a REPL where commands run inside the sandbox via
sandbox.process.exec()
The REPL (repl.py) tracks your working directory and handles cd, ~ expansion, and relative paths.
| File | Description |
|---|---|
main.py |
Sandbox setup, Mesa installation and mount |
repl.py |
Tiny REPL with cd and tilde expansion |
pyproject.toml |
Dependencies: daytona, mesa-sdk, python-dotenv |
| Variable | Description |
|---|---|
MESA_ORG |
Your Mesa organization slug |
MESA_API_KEY |
Mesa API key (get one here) |
DAYTONA_API_KEY |
Daytona API key (get one here) |
- Python >= 3.11
- uv (recommended) or pip