
runpod-flash
Code-first serverless with the Runpod Python SDK (runpod 2.0): define a runpod.App with @app.queue / @app.api / @app.task, iterate on remote GPUs/CPUs with rp flash dev, ship with rp flash deploy, and maintain or migrate legacy runpod-flash projects (from runpodflash import Endpoint). Use runpod-build-template for explicit Dockerfile/template project authoring, and runpodctl/runpod-mcp for infrastructure management.
- Installs
- 1.7K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/runpod/runpod-plugins-official --skill runpod-flash- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads runpod-flash automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Runpod SDK apps (Flash)
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.
Which SDK is this project on?
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.
The app model
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).
Dev vs deploy
rp flash dev main.py— iterate. Creates temporary endpoints (dev-<app>-<resource>-<hash>), runs the@runpod.local_entrypointon your machine, streams the workers'printoutput 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 thedefaultenvironment (--env NAMEfor others). Re-run to update.--build-onlypackages 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.
Autonomous dev loop
A dev session is long-running. Three rules:
- Run it in the background with stdin closed (
< /dev/null). With no stdin it re-runs the entrypoint on every file save, so you never need to press Enter. - Capture its output to a log file and read it. Worker
prints, tracebacks,✗ remote execution failed: ...and the per-run✓ done in .../✗ failed in ...lines land there. - Stop it with
kill(SIGTERM) or SIGINT, so it deletes its endpoints, and confirm the log ends withcleaning up N deleted. A second signal stops waiting for a running entrypoint and goes straight to cleanup.kill -9skips 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.
Choosing the resource shape
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).- A prebuilt inference server image (vLLM, worker-comfyui) that already implements a
Serverless handler is not an SDK app. Deploy it with runpodctl or runpod-mcp and call it
with
runpod.Endpoint("ENDPOINT_ID"). - An existing endpoint by ID:
runpod.Endpoint("ENDPOINT_ID").run_sync({...}). - A resource in another deployed app:
runpod.Queue(app="media", name="transcribe")/runpod.Api(app="media", name="inference").
Gotchas
- Queue arguments and results must be JSON-serializable. Queue jobs are plain JSON in dev
and deploy alike. A non-JSON argument fails in dev with
arguments must be json-serializableand against a deployed endpoint with Python's own JSONTypeError. 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)). - One file per app in dev. A dev session ships only the module's source, so a sibling local module imports in deploy but fails in dev. For dev sessions, keep helpers in the same file or in an installable package.
- Keep blocking work out of module scope. The SDK imports your module to discover
resources, locally and on every worker. Put heavy imports (
torch) and work inside functions; guard local-only code withrunpod.is_local(). gpu=andcpu=are exclusive (gpu and cpu are mutually exclusive). GPU strings can be short ("4090","H100") or a list of acceptable GPUs.- Default
workers=(0, 3)(runpod-flash was(0, 1)). Set it explicitly when cost or concurrency matters.idle_timeoutis seconds (default 60). - Auto GPU switching needs
workersmax ≥ 5 when you pass a list of GPUs. - 10 MB payload limit on requests. Return large outputs via a volume or object storage URL.
- Volumes outlive everything. Dev sessions and
rp flash undeploydelete endpoints, not theNetworkVolumes they created, and those keep billing. Queue and API resources mount one volume at/runpod-volume; readvol.pathinside the remote function, never at import time. Load model weights throughVolumeCache, not straight off the mount (reference/patterns.md). - Tasks bill until they return. A
.spawn()ed task that you neverwait()orcancel()keeps its Pod running after your script exits. - Native CUDA libraries go in
dependenciestoo, e.g. faster-whisper needsnvidia-cublas-cu12+nvidia-cudnn-cu12or it silently falls back to CPU. - Dev sessions and tasks need local Python 3.10–3.14. They ship code pickled by your
interpreter, so the worker matches your local version. Deploy falls back to 3.12 with a
warning on other versions;
rp flash deploy --python-versionsets it explicitly. - A set
RUNPOD_API_KEYwins overrp login. A stale exported key causes 401s while the saved login is fine. Check withrunpodctl user, thenunset RUNPOD_API_KEYor export a good key. - The torch family comes from the GPU image; never pin it. Builds leave
torch,torchvision,torchaudioandtritonout 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 itcontainer_disk_gbroom for that (the build warns when this applies). - Dev sessions run the runtime image's own
runpod. Deploys vendor your local package, butrp flash devworkers import therunpodbaked into the built-in image. AnAttributeErroron arunpod.name in a dev worker traceback means the image is behind your SDK;rp flash deployruns your installed version. - Teardown by app and environment:
rp flash undeploy --app APP --env default -yremoves one environment's endpoints;rp flash app delete APP --yesremoves every environment (without--yesit prompts, and aborts with no terminal). Then delete volumes you no longer need. - Queue and API names need 3+ characters to deploy. The name defaults to the function or
class name, and dev sessions don't check it, so
class SDpassesrp flash devand failsrp flash deploy. Rename it or passname=. - Every endpoint gets your account API key. Deploy and dev put
RUNPOD_API_KEYin each endpoint's template env, whether or not its code calls another resource, so anyone who can read the template can read the key. - Re-running the same app soon after a dev session can fail. Dev sessions leave their
templates behind, and the platform holds them for up to about 90 minutes, so a new
rp flash devof the same app fails with "endpoint template names must be unique". Wait, or rename therunpod.App.
Resources
- Setup & CLI: reference/setup-and-cli.md · API: reference/api.md · Patterns: reference/patterns.md · Examples: examples/
- SDK source and upstream examples: https://github.com/runpod/runpod-python (
examples/apps/) - Docs: https://docs.runpod.io/sdk/overview · CLI: https://docs.runpod.io/sdk/cli · Migration: https://docs.runpod.io/sdk/migrate-from-flash
FAQ
What does the runpod-flash skill do?
Code-first serverless with the Runpod Python SDK (runpod 2.0): define a runpod.App with @app.queue / @app.api / @app.task, iterate on remote GPUs/CPUs with rp flash dev, ship with rp flash deploy, and maintain or migrate legacy runpod-flash projects (from runpodflash import Endpoint). Use runpod-build-template for explicit Dockerfile/template project authoring, and runpodctl/runpod-mcp for infrastructure management.
How do I install runpod-flash?
Run npx skills add https://github.com/runpod/runpod-plugins-official --skill runpod-flash in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/runpod-flash/ (personal) or .claude/skills/runpod-flash/ (project).
Which AI agents can use runpod-flash?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is runpod-flash safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains runpod-flash?
It is published by runpod in runpod/runpod-plugins-official. It has 1,728 recorded installs.
More from runpod/runpod-plugins-official
runpodctl
runpod/runpod-plugins-official
Runpod CLI for managing GPU/CPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send/receive). 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.
runpod
runpod/runpod-plugins-official
Start here for any Runpod task — running GPU/CPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-build-template, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.
runpod-usage
runpod/runpod-plugins-official
Explain Runpod architecture and design choices: Pods versus Serverless, GPU/VRAM, image construction, storage, networking, and workload development. For creating or improving a complete template project use runpod-build-template; execute infrastructure with runpodctl/runpod-mcp and code-first work with flash.
runpod-mcp
runpod/runpod-plugins-official
Manage Runpod infrastructure through the connected Runpod MCP server's tool calls (pods, serverless endpoints and jobs, templates, network volumes, registry credentials, secrets, clusters, the GPU/CPU catalog, and billing), and connect the server when it is missing (hosted or local npx). Load it before the first Runpod MCP tool call of a request: it routes the task to the journey skill that carries the procedure, owns the answer contract and the rules on which resources you may change, and defers to runpodctl for the terminal, file transfer, and SSH setup; template project and Hub listing authoring routes to runpod-build-template.
flash
runpod/runpod-plugins-official
Write and deploy code-first Runpod Serverless with runpod-flash: @Endpoint/@remote, flash dev, resource configuration, and debugging. Use runpod-build-template for explicit Dockerfile/template project authoring, and runpodctl/runpod-mcp for infrastructure management.
companion-clis
runpod/runpod-plugins-official
Companion 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.
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.