modal-sandbox
Installation
SKILL.md
Modal Sandbox
Quick Start
- Verify prerequisites before doing any work.
modal --version
python -c "import modal,sys; print(modal.__version__); print(sys.executable)"
- Do not assume the default
pythonorpython3interpreter can importmodaljust because themodalCLI exists. - Use the interpreter from the active Modal environment, project venv, or the environment behind the installed CLI.
- Do not look for a
modal sandboxsubcommand. Usemodal shell <sandbox_id>for direct access andmodal container ...only for generic container inspection. - Wrap sandbox creation in
with modal.enable_output():when you want local image-build and provisioning logs. - Set
verbose=TrueonSandbox.create(...)when you want sandbox operation logs to show up in Modal logs and local output.
- Create an App before creating a sandbox from outside Modal.