CH·02CLI reference

gpu login

Authenticate with GPU.ai via device flow

Authenticate with GPU.ai via device flow

Synopsis

Drives an RFC 8628 device flow against the GPU.ai dashboard. Opens a browser to the approval URL, prompts for the user code, and on approval writes ~/.config/gpu/credentials.json (mode 0600).

gpu login [flags]

Examples

# Standard interactive login (opens browser)
gpu login

# Skip opening the browser — useful on headless machines
GPU_BROWSER_DISABLED=1 gpu login

# Use the demo or staging dashboard
gpu login --login-base https://demo.gpu.ai

Options

  -h, --help                help for login
      --login-base string   Dashboard base URL for device-flow approval (override with GPU_LOGIN_BASE env) (default "https://gpu.ai")

Options inherited from parent commands

      --api-base string   API base URL (override with GPUAI_API_BASE env) (default "https://api.gpu.ai/v1")
      --debug             Enable debug logging to stderr
  -o, --output string     Output format: table|json (default table on TTY, json otherwise)

SEE ALSO

  • gpu - GPU.ai command-line interface

← The gpu CLI