/runpod:runpod-flashfrom runpod
Code-first serverless development with the Runpod Python SDK (2.0). Define apps using @app.queue/@app.api/@app.task, iterate on remote GPUs/CPUs with `rp flash dev`, and deploy with `rp flash deploy`. Also covers maintaining or migrating legacy runpod-flash projects.
Ships in runpod. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For an explicit Dockerfile/template project request, use runpod-build-template. Do not replace that deliverable with Flash unless the user chooses its code-first workflow.
Write Python locally, run it on remote Runpod GPUs/CPUs with rp flash dev, then
rp flash deploy to ship. Flash is part of the runpod package (2.0): one SDK, one
rp CLI, one login. The standalone runpod-flash package is deprecated and gets no fixes
after October 29, 2026.
rp --help and rp flash <command> --help are authoritative for the command surface.
This skill is the mental model, the decision rules, and the gotchas that help output does not
carry. Confirm the installed version with pip show runpod before concluding a command or
parameter is unavailable.
Check before writing code. The two APIs do not mix.
| You see | Project is on | Do |
|---|---|---|
import runpod, runpod.App(...), @app.queue, rp flash ... | Runpod SDK 2.0 | This file + reference/ |
from runpod_flash import Endpoint, @Endpoint(...), flash dev, runpod-flash in deps | Legacy runpod-flash | reference/runpod-flash-legacy.md to maintain it, reference/migrate-from-runpod-flash.md to move it |
| A new project | Runpod SDK 2.0 | Start below |
Write new code on the SDK. For an existing runpod-flash project, propose migrating and
check its Known differences first; don't migrate silently.
If the SDK path fails on an SDK bug, runpod-flash is the fallback: a traceback inside
runpod/apps/, a worker that crashes before your function runs, or the same code working on
runpod-flash. Upgrade runpod first; the steps to check for a fix and fall back are in
reference/runpod-flash-legacy.md.
Worked examples first for anything multi-step. Flash appears in end-to-end paths:
03 variant B (whisper endpoint),
07 (network-volume handoff) and
08 (fine-tune → serve); the full index is
runpod/golden-paths/README.md. Runnable single-file apps
live in examples/.
Load on demand:
| Need | Read |
|---|---|
Install, rp login, rp flash init, every rp command | reference/setup-and-cli.md |
Decorator parameters, call styles, Queue/Api/Endpoint clients, volumes, Model, Secret, GPU & CPU names | reference/api.md |
| Worked patterns: choosing a model, warm model loading, CPU→GPU pipeline, fan-out, tasks, raw HTTP | reference/patterns.md |
Moving a runpod-flash project to the SDK | reference/migrate-from-runpod-flash.md |
Maintaining a runpod-flash project as it is | reference/runpod-flash-legacy.md |
Quick start: uv add "runpod>=2.0.0" (or pip install "runpod>=2.0.0") → rp login (or export RUNPOD_API_KEY=...)
→ rp flash init my-app → cd my-app && rp flash dev main.py.
import runpod
app = runpod.App("my-app") # names the group of resources
@app.queue(gpu="4090", dependencies=["torch"]) # queue-based serverless endpoint
def infer(x: list[float]):
import torch
return {"sum": torch.tensor(x, device="cuda").sum().item()}
@runpod.local_entrypoint # runs on YOUR machine
def main():
print(infer.remote([1.0, 2.0, 3.0])) # runs on a Runpod worker
| Decorator | Creates | Use for |
|---|---|---|
@app.queue(...) on a function | Autoscaling queue-based endpoint | Request/response inference, batch jobs |
@app.api(...) on a class | Load-balanced endpoint serving routes (@runpod.get/@runpod.post, setup in @runpod.init) | HTTP services, multi-route APIs, load-once model state |
@app.task(...) on a function | One ephemeral Pod per call, terminated when it returns | Training, fine-tuning, long jobs |
Call styles on a queue or task handle: fn.remote(...) (blocks), await fn.remote.aio(...),
fn.spawn(...) (returns a Job, or a TaskJob for a task), fn.stream(...) (queue generator
functions only), fn.local(...) (runs on your machine). API classes are called by route: MyApi.post("/path", body).
rp flash dev main.py — iterate. Creates temporary endpoints (dev-<app>-<resource>-<hash>),
runs the @runpod.local_entrypoint on your machine, streams the workers' print output to
your terminal, and re-runs after every file save. Ctrl-C deletes the endpoints. There is no
local HTTP server; the entrypoint is how you exercise the code.rp flash dev main.py --once — run the entrypoint once, tear down, exit non-zero on failure.
The smoke test for CI and for "does the migrated code work".rp flash deploy — ship. Builds an artifact (≤1,500 MB, torch excluded on built-in GPU
images) and creates persistent endpoints in the default environment (--env NAME for
others). Re-run to update. --build-only packages without deploying, a cheap offline check
that discovery and dependency resolution work.Dev and deploy run the same module source, so module-level imports, constants and helpers
behave identically in both. Deploy packages the project directory, but a dev session ships
only the module's source, so keep the app in one file when you use rp flash dev.
A dev session is long-running. Three rules:
< /dev/null). With no stdin it re-runs
the entrypoint on every file save, so you never need to press Enter.prints, tracebacks, ✗ remote execution failed: ... and the per-run
✓ done in ... / ✗ failed in ... lines land there.kill (SIGTERM) or SIGINT, so it deletes its endpoints, and confirm the
log ends with cleaning up N deleted. A second signal stops waiting for a running
entrypoint and goes straight to cleanup. kill -9 skips cleanup. When one run is enough,
prefer --once; it cleans up on its own.rp flash dev main.py < /dev/null > /tmp/rp-dev.log 2>&1 &
DEV=$!
# poll the log (bounded) for the run result: "✓ done in ..." or "✗ failed in ..."
for i in $(seq 1 120); do grep -qE "✓ done in|✗ failed in" /tmp/rp-dev.log && break; sleep 3; done
tail -40 /tmp/rp-dev.log
# edit main.py and save -> the session re-scans, refreshes endpoints, re-runs main()
# (each run appends a new result line; read the last one)
kill $DEV; wait $DEV; tail -3 /tmp/rp-dev.log # expect "cleaning up N deleted"
For a single check, rp flash dev main.py --once is simpler and cleans up on its own. If a
session died without cleanup, list leftovers with runpodctl serverless list and delete the
dev-<app>-... endpoints this session created, by ID.
Default to plain Python on the Runpod runtime image: dependencies=[...] and
system_dependencies=[...] install on the worker, so no Dockerfile is needed, and even large
HuggingFace models stay in code (see reference/patterns.md).
image="org/image:tag" on any decorator runs your function on that image; it needs
Python 3, not a Serverless handler. Use it for system libraries or a specific CUDA stack.
registry_auth= names saved credentials for a private image (rp registry add).runpod.Endpoint("ENDPOINT_ID").runpod.Endpoint("ENDPOINT_ID").run_sync({...}).runpod.Queue(app="media", name="transcribe") /
runpod.Api(app="media", name="inference").arguments must be json-serializable
and against a deployed endpoint with Python's own JSON TypeError. Pass
URLs or base64, not objects. Whole-number floats can arrive as integers (1.0 → 1), so
cast numeric inputs explicitly (torch.tensor(x, dtype=torch.float32)).torch) and work inside
functions; guard local-only code with runpod.is_local().gpu= and cpu= are exclusive (gpu and cpu are mutually exclusive). GPU strings can
be short ("4090", "H100") or a list of acceptable GPUs.workers=(0, 3) (runpod-flash was (0, 1)). Set it explicitly when cost or
concurrency matters. idle_timeout is seconds (default 60).workers max ≥ 5 when you pass a list of GPUs.rp flash undeploy delete endpoints, not
the NetworkVolumes they created, and those keep billing. Queue and API resources mount one
volume at /runpod-volume; read vol.path inside the remote function, never at import time.
Load model weights through VolumeCache, not straight off the mount
(reference/patterns.md)..spawn()ed task that you never wait() or cancel()
keeps its Pod running after your script exits.dependencies too, e.g. faster-whisper needs
nvidia-cublas-cu12 + nvidia-cudnn-cu12 or it silently falls back to CPU.rp flash deploy --python-version sets it explicitly.RUNPOD_API_KEY wins over rp login. A stale exported key causes 401s while the
saved login is fine. Check with runpodctl user, then unset RUNPOD_API_KEY or export a
good key.torch,
torchvision, torchaudio and triton out of the artifact whether you list them or a
dependency pulls them in (peft, accelerate, sentence-transformers), plus the wheels
only torch needs. GPU workers use the image's build (torch 2.9.1+cu128), so a version
pin on these packages is ignored. In an app that mixes CPU and GPU resources, a CPU
resource whose dependencies need torch installs it at cold start; give it
container_disk_gb room for that (the build warns when this applies).runpod. Deploys vendor your local package,
but rp flash dev workers import the runpod baked into the built-in image. An
AttributeError on a runpod. name in a dev worker traceback means the image is behind
your SDK; rp flash deploy runs your installed version.rp flash undeploy --app APP --env default -y
removes one environment's endpoints; rp flash app delete APP --yes removes every
environment (without --yes it prompts, and aborts with no terminal). Then delete volumes
you no longer need.class SD passes rp flash dev and fails
rp flash deploy. Rename it or pass name=.RUNPOD_API_KEY in each
endpoint's template env, whether or not its code calls another resource, so anyone who can
read the template can read the key.rp flash dev of the same app fails with "endpoint template names must be unique".
Wait, or rename the runpod.App.examples/apps/)evals/client-external-image.eval.md (opens in a new tab)evals/connect-existing-endpoint.eval.md (opens in a new tab)evals/cpu-gpu-pipeline.eval.md (opens in a new tab)evals/dev-loop-iteration.eval.md (opens in a new tab)evals/fixtures/dev-loop/main.py (opens in a new tab)evals/lb-multi-route-api.eval.md (opens in a new tab)evals/migrate-runpod-flash-project.eval.md (opens in a new tab)evals/qb-gpu-function.eval.md (opens in a new tab)evals/sdk-failure-fallback.eval.md (opens in a new tab)evals/volume-cache-model-load.eval.md (opens in a new tab)examples/README.md (opens in a new tab)examples/api_model_service.py (opens in a new tab)examples/call_deployed.py (opens in a new tab)examples/cpu_gpu_pipeline.py (opens in a new tab)examples/queue_gpu.py (opens in a new tab)examples/train_then_serve.py (opens in a new tab)reference/api.md (opens in a new tab)reference/migrate-from-runpod-flash.md (opens in a new tab)reference/patterns.md (opens in a new tab)reference/runpod-flash-legacy.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub runpod/runpod-plugins-official --plugin runpod18 skills in this plugin
/runpodStart here when the Runpod lane is unclear: picks the skill for a task (runpod-mcp and the journey playbooks it routes to, such as runpod-serverless-deploy, runpod-pod-deploy, runpod-pod-doctor and runpod-cost-audit; runpodctl, runpod-flash, runpod-companion-clis, runpod-usage, runpod-templates, runpod-build-template, runpod-migrate, runpod-cloud-migrate) and indexes two dozen end-to-end worked examples (golden paths). Use it before any multi-step or provisioning task, even when the lane is clear, to check for a matching golden path; for the Runpod MCP tools, runpod-mcp owns the answer contract, connection and tool rules./runpod-build-templateCreate or improve a complete Runpod template project from an application request, local code, or GitHub repository, with a documented Dockerfile and app-specific files for Pods or queue/load-balanced Serverless. Use runpod-templates for finding or operating existing official templates, runpod-mcp/runpodctl to register an already-built image as a template, runpod-flash for its code-first workflow, and runpod-companion-clis for standalone image build/push commands./runpod-cloud-migrateMove a workload from another cloud or GPU platform to Runpod: Vast.ai, Lambda, CoreWeave, Paperspace, Modal, Replicate, Baseten, Together AI, Fireworks AI, fal, Hugging Face Inference Endpoints, AWS, Google Cloud or Azure. Inventories what the project uses, maps it to Runpod, plans, then migrates one workload at a time with verification. To move Runpod code between Runpod API versions, use runpod-migrate instead./runpod-companion-clisCompanion CLIs for Runpod workflows — HuggingFace, GitHub, Docker, and AWS. Use runpod-build-template for complete template project authoring, and the ComfyUI model-repair guide in runpod-templates for imported workflows lacking model download metadata./runpod-cost-auditRead-only Runpod spend audit: find idle spend, explain serverless billing when nothing seems to run, break spend down by resource type and by resource, and give a whole-account snapshot. Every figure comes from the MCP billing and list reads; it recommends actions and never stops or changes anything. Use when the user asks about their bill, what is costing money, what is running on the account, or tells you to stop or delete idle resources it did not name by id: the audit with ids and the user's own next steps is the answer. A resource the user names by id goes to runpod-pod-doctor or runpod-endpoint-ops, and the change is made./runpodctlRunpod CLI for managing GPU/CPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send/receive, network-volume upload/download). Use for terminal/CI/scripting, SSH setup, `doctor`, or when the Runpod MCP tools are not connected; prefer runpod-mcp for structured tool calls in an MCP-enabled session.Other plugins' skills for the same job