swm-gpu-workflow

swm-gpu-workflow is a skill for Claude Code, Codex from swm-gpu/swm. It costs 116 tokens per session (5,803 once invoked), scanned A, original, Apache-2.0.

A command-line workflow manager for cloud GPUs, which are rented computers with graphics processors used for AI workloads. It searches providers, creates GPU pods, installs listed AI tools, downloads models, syncs workspaces, and manages idle resources.

In plain words
What is it for?
Use it to find and provision GPUs, run tools such as ComfyUI, vLLM, Ollama, or Open WebUI, fetch models, persist workspace files, and limit idle spending.
Why use it?
It brings common GPU setup and lifecycle tasks into one workflow instead of requiring separate provider commands and manual server setup.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/swm-gpu/swm/swm-gpu-workflow
Any agent
npx skills add swm-gpu/swm --skill swm-gpu-workflow
Clone the repo
git clone --depth 1 https://github.com/swm-gpu/swm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swm-gpu-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/swm-gpu/swm/swm-gpu-workflow.svg)](https://agentmods.dev/skills/swm-gpu/swm/swm-gpu-workflow)
Your own site
<a href="https://agentmods.dev/skills/swm-gpu/swm/swm-gpu-workflow"><img src="https://agentmods.dev/badge/skills/swm-gpu/swm/swm-gpu-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00116 $0.05803
Opus 5 $0.00058 $0.02901
Sonnet 5 $0.00023 $0.01161
Haiku 4.5 $0.00012 $0.00580

Measured 4d ago against content hash dc66b3db6de6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

swm-gpu-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/swm-gpu-workflow/SKILL.md · 410 lines

How it starts

The opening of the file, as written. The whole thing — 410 lines — stays where its author put it; the contents beside it link to each section on GitHub.

swm — Cloud GPU Workflow Manager

One CLI to search, provision, install, sync, and tear down GPU pods across 10 cloud providers. Why swm over ad-hoc SSH scripts:

  • Cross-provider searchswm gpus hits 10 providers with live pricing and stock in one call.
  • Declarative frameworksswm setup install <name> brings up ComfyUI / SwarmUI / vLLM / Ollama / Open WebUI / Axolotl / llm-studio idempotently; venv, custom nodes, and multi-GPU tensor parallelism handled.
  • Unified model storeswm models pull auto-detects HF / Civitai / Ollama / URL refs, lands files under /workspace/models/<bucket>/, symlinks them into each framework's expected path.
  • Workspace persistence — three-tier S3 sync (inotify → s5cmd → tar) survives auto-down. pod create -w <name> restores the last session.
  • Lifecycle guardauto-down / auto-stop / remind policies stop idle bills.

Stop condition. Don't hand off until Phase 5 passes. A pod that's "almost up" still bills.

Prerequisites

  • swm --version works (pipx install swm-gpu or brew tap swm-gpu/swm && brew install swm).
  • ssh and scp on PATH.
  • At least one provider key: swm config set runpod.api_key <key> (or vastai, lambda, …).
  • Optional /workspace persistence: swm config set b2.key_id … + swm config set storage.default b2:<bucket>.

Phase 0 — State check

swm pod list && swm use --show               # running pods + active-pod selection
swm storage ls                               # existing workspaces in the default bucket

If a matching pod is RUNNING, set it active (swm use <name>) and skip to Phase 5. If a workspace prefix you want already exists in swm storage ls, restore it with pod create -w <name>. Otherwise continue.

Phase 1 — Clarify

Use AskQuestion:

Question Options
VRAM floor? ≤16 GB / 16–24 GB / 24–48 GB / 48–80 GB / >80 GB
Provider? runpod / vastai / lambda / tensordock / vultr / auto (cheapest)
Lifecycle? auto-down (default) / auto-stop / remind / manual
Idle timeout? 10 / 20 / 30 / 60 / 120 min
Persist /workspace? yes (default) / no — one-shot, --no-storage

Read the full file on GitHub · 410 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 410 lines · 116 tokens per session scan A dc66b3db6de6

Subscribe to this mod's changes

swm-gpu-workflow is a skill published in the GitHub repository swm-gpu/swm (24 stars, last pushed today), licensed Apache-2.0. It adds 116 tokens to every session and 5,803 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

colab-finetuning

Fine-tune LLMs on Google Colab GPUs directly from openscience. Connects to Colab runtimes via WebSocket bridge for remote training with Unsloth. Supports SFT, GRPO, DPO, vision, and TTS workflows on free T4 to Pro A100 GPUs.

synthetic-sciences/openscience · 67 tokens

debug-cuda-crash

Tutorial for debugging CUDA crashes using API logging.

flashinfer-ai/flashinfer · 14 tokens

verify-behavior

Verify or reproduce visible product behavior by driving the real UI with pi-computer-use's checked tools, requiring verified expect postconditions and durable state evidence for meaningful UI flows. Use when triage needs visual reproduction, implementation needs behavioral proof, review needs interactive confirmation…

nicknisi/dotfiles · 68 tokens

test-amplification

Methodical bug-driven test amplification for pygraphistry features. Use when hardening a feature area via user-workflow exploration, 5-Whys retrospectives, bug-taxonomy derivation, concrete test planning, implementation, and safety-gated validation.

graphistry/pygraphistry · 56 tokens

plan

OPT-IN file-based planning for multi-session tasks. Only use when user explicitly requests it or work spans multiple sessions. For single-session work, prefer your platform's native planning features.

graphistry/pygraphistry · 38 tokens

document-public-apis

Document undocumented public APIs in PyTorch by removing functions from coverageignorefunctions and coverageignoreclasses in docs/source/conf.py, running Sphinx coverage, and adding the appropriate autodoc directives to the correct .md or .rst doc files. Use when a user asks to remove functions from conf.py ignore…

pytorch/pytorch · 66 tokens