GPU CLI: Remote GPU Compute for ML Training and Inference
Safely run local
gpu commands via a guarded wrapper (runner.sh) with preflight checks and budget/time caps.Latest: v1.2.0
- Added SECURITY.md detailing the full threat model, permission rationale, and version history.
- Updated usage documentation to reference templates/prompts.md for more prompt examples.
- Expanded security section: described input sanitization mechanisms and how commands are executed securely.
- Improved transparency by highlighting where to find more safety and scope details.
GPU CLI Skill (Stable)
Use this skill to run the local gpu binary from your agent. It only allows invoking the bundled runner.sh (which internally calls gpu) and read-only file access.
What it does
- Runs
gpucommands you specify (e.g.,runner.sh gpu status --json,runner.sh gpu run python train.py). - Recommends a preflight:
gpu doctor --jsonthengpu status --json. - Streams results back to chat; use
--jsonfor structured outputs.
Safety & scope
- Allowed tools:
Bash(runner.sh*),Read. No network access requested by the skill;gpuhandles its own networking. - Avoid chaining or redirection; provide a single
runner.sh gpu …command. - You pay your provider directly; this may start paid pods.
Quick prompts
- "Run
runner.sh gpu status --jsonand summarize pod state". - "Run
runner.sh gpu doctor --jsonand summarize failures". - See
templates/prompts.mdfor more examples.
Security
- Input sanitization: character blocklist (
; & | \( ) > < $ { }+ newlines) plus subcommand allowlist. Commands are executed via directgpubinary invocation — no shell re-evaluation (bash -c/eval`). - See
SECURITY.mdfor the full threat model, permission rationale, and version history.
Notes
- For image/video/LLM work, ask the agent to include appropriate flags (e.g.,
--gpu-type "RTX 4090",-p 8000:8000, or--rebuild).
