New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

packet-gpu-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

packet-gpu-cli

Command-line interface for packet.ai GPU cloud

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
14
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

packet-gpu-cli

Command-line interface for packet.ai GPU cloud.

Installation

npm install -g packet-gpu-cli

Quick Start

# Login to your packet.ai account
packet login

# List available GPU types
packet gpus

# Launch a GPU with VS Code pre-installed
packet launch --gpu rtx-pro-6000 --setup vscode

# Launch a bare GPU and wait for SSH
packet launch --gpu h100 --wait

# List your running instances
packet ps

# SSH into an instance
packet ssh <instance-id>

# View instance logs
packet logs <instance-id>

# Terminate an instance
packet terminate <instance-id>

Commands

Authentication

CommandDescription
packet loginAuthenticate with your API key
packet logoutRemove stored credentials
packet whoamiShow current account and balance

GPU Management

CommandDescription
packet gpusList available GPU types and pricing
packet launch --gpu <type>Launch a new GPU instance
packet psList your running instances
packet ssh <id>SSH into an instance
packet logs <id>View instance status and info
packet terminate <id>Terminate an instance

Auto-Setup

CommandDescription
packet setup listList available setup presets
packet setup <preset> <id>Run a setup preset on an existing instance
packet launch --setup <preset>Launch with auto-setup

packet launch

Launch a new GPU instance.

Options:

  • -g, --gpu <type> - GPU type (e.g., rtx-pro-6000, h100)
  • -n, --name <name> - Instance name
  • -s, --setup <preset> - Auto-setup preset (see below)
  • --gpus <count> - Number of GPUs (default: 1)
  • -w, --wait - Wait for instance to be ready

packet setup

Auto-setup apps on GPU instances. Available presets:

PresetDescriptionPort
vscodeVS Code in Browser (code-server)8080
jupyterJupyter Lab with data science packages8888
jupyter-torchJupyter Lab with PyTorch and CUDA8888
workspacePersistent workspace linking-
full-devVS Code + Jupyter + Persistence8080, 8888

Launch with auto-setup:

packet launch --gpu rtx-pro-6000 --setup vscode
packet launch --gpu h100 --setup full-dev --name "my-dev-box"

Setup an existing instance:

packet setup vscode 12345
packet setup jupyter-torch 12345

List presets:

packet setup list

packet ssh <instance-id>

SSH into a running instance. Automatically uses the correct credentials.

Options:

  • -c, --command <cmd> - Run a command instead of interactive shell
  • --copy - Print the SSH command without connecting

packet logs <instance-id>

View instance status and connection info.

packet terminate <instance-id>

Terminate a running instance.

Options:

  • -f, --force - Skip confirmation prompt

Configuration

Credentials are stored securely in your system's config directory:

  • macOS: ~/Library/Preferences/packet-cli-nodejs/
  • Linux: ~/.config/packet-cli-nodejs/
  • Windows: %APPDATA%/packet-cli-nodejs/

Requirements

  • Node.js 18.0.0 or higher
  • An account at packet.ai
  • sshpass for packet setup on existing instances (install with brew install sshpass or apt install sshpass)

Examples

Launch with VS Code pre-installed

packet launch --gpu rtx-pro-6000 --setup vscode --name "dev-server"

Launch with full dev environment

packet launch --gpu h100 --setup full-dev
# Includes VS Code (port 8080), Jupyter (port 8888), and persistent workspace

Setup Jupyter on an existing instance

# Get your instance ID
packet ps

# Install Jupyter + PyTorch
packet setup jupyter-torch 12345

CI/CD pipeline

# In GitHub Actions or similar
packet login --key $PACKET_API_KEY
INSTANCE=$(packet launch --gpu h100 --wait | grep "Instance ID" | awk '{print $3}')
packet ssh $INSTANCE -c "cd /workspace && python train.py"
packet terminate $INSTANCE -f

Support

License

MIT

Keywords

gpu

FAQs

Package last updated on 27 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts