Modal Labs (modal.com) — run Python on serverless containers with GPUs, batch jobs, and autoscaling. Precision wrapper to avoid confusion with UI “modal dialogs”.
This is a precision wrapper for the upstream modal skill (Modal Labs, modal.com). It exists because “modal” is also a common term for UI dialogs (React/Vue/AntD/etc.).
Use this skill only when the user clearly means Modal Labs (modal.com).
Route here when prompts mention one or more of:
modal.com / “Modal Labs”modal run, modal deploy, modal serveDo not use this skill for UI “modal dialog” tasks.
# Install
uv uv pip install modal
# Login (writes token to ~/.modal.toml)
modal token new
import modal
app = modal.App("hello-modal")
@app.function()
def hello():
return "hello from Modal"
@app.local_entrypoint()
def main():
print(hello.remote())
Run:
modal run script.py
modal runmodal deploy / modal serve@app.function(gpu="H100") (or another GPU type)If you need deeper patterns (images, volumes, secrets, web endpoints), follow the upstream modal skill guidance.