Skip to main content
This guide walks you through launching your first H100 GPU node on SF Compute.

Install the CLI

Install the SF Compute CLI.
curl -fsSL https://sfcompute.com/cli/install | bash

Log in

Authenticate with your SF Compute account.
sf login
This opens your browser to authenticate and stores your credentials locally.

Set up SSH access

Generate a startup.sh that configures SSH access to your nodes. This script injects all your local public keys so you can connect immediately.
cat >startup.sh <<SCRIPT
#!/bin/bash

mkdir -p /root/.ssh
cat >>/root/.ssh/authorized_keys <<"EOF"
$(cat ~/.ssh/id_rsa.pub 2>/dev/null)
$(cat ~/.ssh/id_ecdsa.pub 2>/dev/null)
$(cat ~/.ssh/id_ecdsa_sk.pub 2>/dev/null)
$(cat ~/.ssh/id_ed25519.pub 2>/dev/null)
$(cat ~/.ssh/id_ed25519_sk.pub 2>/dev/null)
$(cat ~/.ssh/id_xmss.pub 2>/dev/null)
$(cat ~/.ssh/id_dsa.pub 2>/dev/null)
EOF
SCRIPT
If you don’t have an SSH key pair yet, generate one first.
ssh-keygen -t ed25519

Create a Reserved node

Create a Reserved node for 1 hour. This gives you guaranteed access to a GPU for the specified duration.
sf nodes create my-node --zone landsend --duration 1h --max-price 20.00 --user-data-file ./startup.sh
Nodes take about 5 minutes to spin up. You can also create Spot nodes for interruptible workloads at lower prices.

Check your node

List your nodes to see when it’s ready.
sf nodes list
NAME                    TYPE            STATUS       CURRENT VM                 GPU    ZONE          START/END
my-node                 Reserved        Running      vm_mxCExUDERw8zvxrTf0e5W   H100   landsend      Oct 2, 3pm → 4pm

Connect via SSH

Once the node shows running status, connect to it.
sf nodes ssh root@my-node
Even after a node shows running status, it may take several minutes for SSH to become available while the node boots.

Extend your node

Need more time? Extend your reservation.
sf nodes extend my-node --duration 1h --max-price 20.00

Next steps