Shader
First rental with the CLI

DocsStart4 of 35 · 1 min read

First rental with the CLI

Sign in with an agent token, rent a GPU, stop it, read the receipt and generate a file from a terminal.

The CLI acts with an agent token, so make a key first in Create an agent key and put credits in its wallet.

#Rent from a terminal

  1. Install

    The CLI runs on Node 26.

  2. Sign in

    Terminal
    shader login 'shdr_<YOUR_AGENT_TOKEN>'
  3. Run the session

    Run against a local Shader, so the SSH host and port are local ones:

    Terminal
    $ shader balance
    TOTAL CREDITS  USDC-BACKED  SHDR-BACKED  USD
    154279.83      154219.83    60           154.27983
    
    $ shader whoami
    WALLET                                        AUTH   AGENT KEY
    3hgCz9NXPdANaJfHrVgARTZsUr89hWqJdxfrW8kBFPbD  agent  HirWz9n5tyTt8sTQPpQxF8oaahAjoLwMeWgSfekZ3iF8
    
    $ shader agents
    KEY                                           LABEL          REQUEST CAP  DAY REMAINING  REVOKED  CURRENT
    HirWz9n5tyTt8sTQPpQxF8oaahAjoLwMeWgSfekZ3iF8  Docs run       1000         2000           false    *
    FKrANGNLBDLpAzMLoQ2oMrZ9PymdCBRuhbWBp6ENwvz7  flow-agent     2000         4995.2         false
    BGZydczBZYkS5K7TGCxMHd1qyMB6BwiEXGLS7F9VGpT8  flow-check     500          5000           false
    78eYA92dXZbWVm6Myc9KsuDNxeuYKMh3J7AyU6yBxNXE  Round 3 probe  60           360            true
    
    $ shader rent rtx-4090-24gb --ssh-key docs-key.pub --wait
    INSTANCE                              GPU            STATE    SECONDS  CREDITS  STARTED UTC
    ae26a9f6-380b-4cf8-9eb9-b8d9282dc918  RTX 4090 24GB  running  0        0        2026-11-28T06:41:35.836Z
    ssh shader@127.0.0.1 -p 4840
    
    $ shader instance ae26a9f6-380b-4cf8-9eb9-b8d9282dc918
    INSTANCE                              GPU            STATE    SECONDS  CREDITS  STARTED UTC
    ae26a9f6-380b-4cf8-9eb9-b8d9282dc918  RTX 4090 24GB  running  5        1        2026-11-28T06:41:35.836Z
    ssh shader@127.0.0.1 -p 4840
    
    $ shader stop ae26a9f6-380b-4cf8-9eb9-b8d9282dc918
    INSTANCE                              GPU            STATE     SECONDS  CREDITS  STARTED UTC
    ae26a9f6-380b-4cf8-9eb9-b8d9282dc918  RTX 4090 24GB  settling  6        1.2      2026-11-28T06:41:35.836Z
    ssh shader@127.0.0.1 -p 4840
    
    $ shader receipts --kind rental_settle --limit 3
    TIME UTC                  KIND           LABEL                 UNITS       CREDITS  SIGNATURE
    2026-11-28T06:41:42.000Z  rental_settle  RTX 4090 24GB rental  6 seconds   1.2      5PJKdABXP3NK5rqGM2HzZKg4nx3mUvU2PGu8ENjRsRYHrErya6tNjS8U1j46PLS86dgAMuZ2udFUhSPh2uMhwjKW
    2026-11-28T06:37:41.000Z  rental_settle  A100 80GB rental      8 seconds   4        j8GXt7NWKTTgD5GzKxjQrC7ZavfAusuJjonBjGP5bpsJnPMEkdVEiBRAgFuUFeECZQX7gjFuVR9qEYQ4risXu3J
    2026-11-28T06:37:32.000Z  rental_settle  A100 80GB rental      42 seconds  21       qB2g5Xsqc9zLmv3d1WkYRFFr6eiEZCZYwBQgqyxzHUQK9L7sn4zJeSwKPe4Wpw4YZZ7pdJagcEzixiLf5uAWksN
    
    $ shader estimate image "a lighthouse at dusk"
    40 credits
    40 credits per image
    
    $ shader generate asset3d "a small wooden chair" --out chair.glb
    JOB                                   KIND     STATE  CREDITS  COMPLETED UTC
    763d2c01-0ffd-49a1-9e50-d78959d852eb  asset3d  done   200      2026-11-28T06:41:55.000Z
    chair.glb

#What happened

  1. Who is calling

    shader gpus lists the models with their current rates. whoami and agents showed which key the token belongs to, marked *, with its request cap and what is left of its day.

  2. Rent

    rent --wait returned once SSH and Jupyter answered. shader ssh <instance> would open the system SSH client on it.

  3. Stop and settle

    stop answered at settling. Once the last stretch landed, receipts showed it: the last 6 seconds and the credits they cost at the rate locked at launch.

  4. Generate

    generate waited for the job and saved the file with --out.

Every command is in CLI.