Skip to content

Modal Cloud Python Runner

Teaches the agent to write and run Python on Modal's serverless cloud, including on-demand GPUs.

Stars
55,780
Licence
MIT
Files
13 files

What it does

Once installed, the agent knows how to package Python code for Modal, a cloud service that runs code on demand and can attach GPUs, web endpoints, storage volumes and scheduled jobs. It can write the app, container image and GPU settings, then run or deploy them on your Modal account. It also covers authentication, with guidance to reuse existing Modal credentials before creating new ones.

Great for

  • Engineers deploying or serving AI/ML models without managing servers
  • Teams running GPU training, fine-tuning or batch inference jobs in parallel
  • Developers who want a simple web endpoint or scheduled task backed by Python code

Skip it if

  • Users without a Modal account or payment method, since cloud runs and GPU use require them (the skill cannot run remote work without them)
  • Anyone wanting to run code on their own machine only, because the skill is built around remote cloud execution and spending
  • Sensitive data workloads without reviewing what is stored in Volumes or sent to Modal, since the code and data leave your machine

Try asking

  • “Deploy a small text-generation model as a Modal web endpoint on an L40S GPU”
  • “Write a Modal app that fine-tunes a model nightly on a cron schedule”
  • “Run a batch of 1,000 inference jobs in parallel with .map() on Modal”
  • “Set up a Modal Volume to store model weights between runs”
Step-by-step guide: how to use Modal Cloud Python RunnerInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 13 original files, the MIT licence and an attribution note.

    modal.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip modal.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip modal.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Let the agent check for an existing Modal profile first, and keep token values out of chat and logs.
  • Review generated code before running modal deploy or GPU jobs, since cloud costs accrue and deployments are live.
  • Pin package versions in the Image and check current Modal pricing and quotas before large runs.

What's inside

  • references/api_reference.md
  • references/examples.md
  • references/functions.md
  • references/getting-started.md
  • references/gpu.md
  • references/images.md
  • references/resources.md
  • references/scaling.md
  • references/scheduled-jobs.md
  • references/secrets.md
  • references/volumes.md
  • references/web-endpoints.md
  • SKILL.md

Redistributed unmodified from K-Dense-AI/scientific-agent-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.