TopRank Skills

Home / Claw Skills / Git / GitHub / Ssh Lab
Official OpenClaw rules 36%

Ssh Lab

ssh lab — Remote Server SSH Workbench

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Ssh Lab 技能。 若已安装,则直接安装 Ssh Lab 技能。

Overview

Skill Key
enderfga/ssh-lab
Author
enderfga
Source Repo
openclaw/skills
Version
-
Source Path
skills/enderfga/ssh-lab
Latest Commit SHA
4c6de55ea2f9f8b08caa1c7ca52f803ca4e77a6c

Extracted Content

SKILL.md excerpt

# ssh-lab — Remote Server SSH Workbench

> Structured SSH operations for managing remote GPU servers.
> Standardizes what's universal (GPU/disk/process), delegates interpretation to the LLM.

## When to Use

- User asks about GPU status, server health, remote processes
- Need to check if training is running, disk is full, GPU is idle
- Running commands on remote servers
- Tailing remote log files, listing checkpoints
- File transfer between local and remote (rsync)
- Comparing hosts side-by-side (GPU, disk, processes)
- Setting up alerts for GPU idle, disk full, process died
- Any mention of: `ssh-lab`, `gpu status`, `server status`, `nvidia-smi`, remote server

## Setup

```bash
cd /path/to/ssh-lab && npm run build
```

After building, use the CLI via any of:
```bash
ssh-lab status all          # if npm link'd or installed globally
npx ssh-lab status all      # via npx
node dist/cli.js status all # direct invocation
```

The CLI reads `~/.ssh/config` automatically — zero configuration needed for existing SSH hosts.

## Commands

### List hosts
```bash
ssh-lab hosts [--json]
```

### Server status (GPU + disk + process)
```bash
ssh-lab status [host|all] [--json] [--timeout ms] [--heartbeat] [--quiet]
```
Returns structured probe data: GPU utilization/VRAM/temp, disk usage, active processes.
Includes automatic alerts: GPU idle, disk full (>90%), high temp (>85°C).
`--heartbeat` gives compact one-liner output for agent integration. `--quiet` suppresses all-clear output (for cron).

### Run remote command
```bash
ssh-lab run <host|all> <command...> [--json] [--timeout ms]
```
Supports `all` for parallel execution across all hosts.

### Tail remote log
```bash
ssh-lab tail <host> <path> [-n lines] [--json]
```
Default: last 50 lines. Smart truncation at 50KB.

### List remote directory
```bash
ssh-lab ls <host> <path> [--sort time|size|name] [--json]
```
Lists files with size, date, permissions. Great for checkpoint directories.

### Disk usage
```bash
ssh-lab df <host|...

README excerpt

# ssh-lab

Remote server SSH workbench for managing GPU training servers. Provides structured data collection (GPU/disk/process probes), declarative alerting, and side-by-side comparison — all through a zero-dependency CLI.

Built for AI agents: structured JSON output, semantic exit codes, heartbeat mode for cron/polling.

## Install

```bash
git clone <repo-url> && cd ssh-lab
npm install && npm run build
```

Requires: Node.js 18+, native `ssh` client.

## Quick Start

```bash
# List all SSH hosts (reads ~/.ssh/config automatically)
ssh-lab hosts

# GPU/disk/process status for all servers
ssh-lab status all

# Run a command on a specific server
ssh-lab run GMI4 "nvidia-smi"

# Compare two servers side-by-side
ssh-lab compare GMI4 GMI5

# Check if a server is healthy
ssh-lab doctor GMI4

# Set up alerts
ssh-lab alert add gpu_idle all
ssh-lab alert add process_died GMI4 --process-pattern "train.py"
ssh-lab alert add disk_full all --threshold 85

# Check alerts (exit code: 0=ok, 1=warn, 2=critical)
ssh-lab alert check all --quiet
```

## Commands

| Command | Description |
|---------|-------------|
| `hosts` | List all configured servers |
| `status [host\|all]` | GPU + disk + process overview |
| `run <host\|all> <cmd>` | Execute command on remote host(s) |
| `tail <host> <path>` | Tail a remote log file |
| `ls <host> <path>` | List remote directory |
| `df <host\|all> [path]` | Disk usage details |
| `sync <host> <src> <dst>` | rsync file transfer |
| `watch <host> <path>` | Snapshot file state for polling |
| `compare <hosts\|all>` | Side-by-side host comparison |
| `doctor <host>` | Connectivity & health diagnostics |
| `alert add\|list\|check\|remove` | Declarative alert rules |
| `add <name> <user@host>` | Add a custom host |

## Output Modes

All commands support `--json`, `--raw`, or default summary output.

```bash
ssh-lab status GMI4 --json    # Structured JSON
ssh-lab status all --raw      # Raw probe output
ssh-lab status all             # Human-readable...

Related Claw Skills

0xnyk

xint

★ 49

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

jackculpan

flightclaw

★ 32

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

openclaw-trade

openclaw-trading-assistant

★ 24

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime monitoring and news research, gather info from private insiders and many other! Using Hyperliquid API.

xquik-dev

x-twitter-scraper

★ 16

X (Twitter) automation skill for AI coding agents. Tweet search, user lookup, follower/following extraction, media download, reply/retweet/quote extraction, 40+ tools, account monitoring & trending topics. REST API, MCP server, HMAC webhooks. Works with Claude Code, Cursor, Codex, Copilot, Windsurf & 40+ agents.

mohsinkhadim59

Openclaw-Setup

★ 8

Step-by-step guides for installing and running OpenClaw, an open-source AI agent, on Mac, Linux VPS, and AWS covering setup, security, messaging channels, Google integration, skills, and monitoring.