askill
manage-instances

manage-instancesSafety 90Repository

Manage Vast.ai GPU instances — show status, start, stop, destroy, SSH, execute commands, view logs, copy files, take snapshots. Use when the user wants to check on, connect to, transfer files, or control their GPU instances.

0 stars
1.2k downloads
Updated 2/7/2026

Package Files

Loading files...
SKILL.md

Manage Vast.ai Instances

Help the user manage their GPU instances on Vast.ai.

User Request

$ARGUMENTS

Available Actions

Show Instances

vastai show instances                   # Table view
vastai show instances --raw             # JSON
vastai show instance <ID> --raw         # Single instance JSON

Start / Stop / Reboot / Destroy

vastai start instance <ID>
vastai stop instance <ID>
vastai reboot instance <ID>             # Restart, keeps GPU priority
vastai recycle instance <ID>            # Destroy + recreate fresh
vastai destroy instance <ID>            # PERMANENT — confirm first

Batch: start instances, stop instances, destroy instances take multiple IDs.

Always confirm destroy with the user — it is irreversible.

Labels & Updates

vastai label instance <ID> '<LABEL>'
vastai update instance <ID> --label '<NEW>'
vastai bid instance <ID> --price <$/hr>  # Change bid price
vastai prepay instance <ID> <AMOUNT>     # Prepay credits

SSH Connection

vastai ssh-url <ID>
# Returns: ssh://root@<HOST>:<PORT>
# Connect with: ssh -p <PORT> root@<HOST>

SCP File Transfer

vastai scp-url <ID>
# Upload:   scp -P <PORT> file.py root@<HOST>:/root/
# Download: scp -P <PORT> root@<HOST>:/root/results.tar.gz ./

Copy (rsync-based)

vastai copy local:./data C.<ID>:/workspace/data          # Upload
vastai copy C.<ID>:/workspace/results local:./results    # Download
vastai copy C.<ID1>:/data C.<ID2>:/data                  # Instance-to-instance
vastai cancel copy C.<ID>:/path                          # Cancel transfer

Execute (API-based, limited)

vastai execute <ID> 'ls -l /workspace'     # ls, rm, du only

Logs

vastai logs <ID>                        # Last 1000 lines
vastai logs <ID> --tail 50              # Last N lines
vastai logs <ID> --filter 'ERROR'       # Filter lines
vastai logs <ID> --daemon-logs          # System logs

Snapshots

vastai snapshot instance <ID> --repo <DOCKERHUB_REPO> [--tag <TAG>]

Scheduled Operations

# Schedule reboots
vastai reboot instance <ID> --schedule DAILY --hour 3

# Schedule bid changes
vastai bid instance <ID> --price 0.5 --schedule WEEKLY --day 1

# View/delete scheduled jobs
vastai show scheduled-jobs
vastai delete scheduled-job <ID>

Instance Statuses

StatusMeaning
createdJust created, initializing
schedulingWaiting for resources
runningActive and accessible
exitedContainer exited (check logs)
stoppedPaused by user
offlineMachine went offline

Cost Awareness

When showing instances, note:

  • $/hr rate for each instance
  • Uptime duration
  • Remind users to destroy idle instances

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 2/23/2026

High-quality technical reference skill for managing Vast.ai GPU instances. Provides comprehensive command coverage with clear examples for start/stop/destroy, SSH, file transfer, logs, and snapshots. Well-organized with instance status table and cost awareness. Includes appropriate safety warnings for destructive operations. Located in proper skills folder structure with good metadata. Only minor gaps around error handling examples.

90
90
75
85
95

Metadata

Licenseunknown
Version-
Updated2/7/2026
PublisherLiorZ

Tags

api