MCPcopy Index your code
hub / github.com/Thunder-Compute/thunder-cli

github.com/Thunder-Compute/thunder-cli @v2.0.69

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.69 ↗ · + Follow
1,018 symbols 3,326 edges 126 files 264 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Thunder Compute Logo

Overview

License: MIT Go Version Release macOS Linux Windows

tnr is the official command-line interface for Thunder Compute, a high-performance cloud GPU platform built for AI/ML prototyping and experimentation. Using a proprietary orchestration engine, Thunder Compute delivers fast provisioning, low-latency execution, and one of the most cost-effective GPU compute offerings available.

The tnr CLI supports:

  • Provisioning and managing GPU instances
  • Configuring compute resources and instance specifications
  • Secure SSH access and session management
  • File transfer capabilities (SCP upload and download)
  • Port forwarding for accessing remote services locally
  • Automated update checks and version management
  • Cross-platform support for macOS, Linux, and Windows

Documentation

  • CLI Reference: https://www.thundercompute.com/docs/cli-reference
  • API Reference: https://www.thundercompute.com/docs/api-reference
  • Get Started: https://www.thundercompute.com/docs/quickstart
  • Troubleshooting: https://www.thundercompute.com/docs/troubleshooting

Installation

Install tnr using one of the supported methods below. You may also download installers and binaries directly from the Latest Release page.

macOS

Download the .pkg installer for your platform from the Latest Release page (tnr_*_darwin_arm64.pkg for Apple Silicon, tnr_*_darwin_amd64.pkg for Intel).

Homebrew:

brew tap Thunder-Compute/tnr
brew install tnr

Linux

Download .tar.gz, .deb, .rpm, or .apk packages from the Latest Release page.

Install script (recommended):

curl -fsSL https://raw.githubusercontent.com/Thunder-Compute/thunder-cli/main/scripts/install.sh | bash

Windows

Download the .msi installer for your platform from the Latest Release page.

Scoop:

scoop bucket add tnr https://github.com/Thunder-Compute/scoop-bucket
scoop install tnr

Winget:

winget install Thunder.tnr

Build from Source

git clone https://github.com/Thunder-Compute/thunder-cli.git
cd thunder-cli
go build -o tnr
./tnr

Quick Start

tnr login           # Authenticate with Thunder Compute
tnr create          # Create a GPU instance
tnr status          # View instance status
tnr connect 0       # Connect to your instance

# File transfers
tnr scp myfile.py 0:/home/ubuntu/
tnr scp 0:/home/ubuntu/results.txt ./

tnr delete 0        # Delete instance

License

This project is licensed under the MIT License. See LICENSE for details.

Extension points exported contracts — how you extend this code

UserFacing (Interface)
UserFacing marks errors caused by user input, user cancellation, local environment state, or expected remote/service res [2 …
internal/clierr/clierr.go
ConnectClient (Interface)
ConnectClient defines the interface for API operations used by the connect command. This interface allows for mocking in [2 …
api/types.go
HTTPClient (Interface)
(no doc) [1 implementers]
internal/testutils/mocks.go
SSHProgressCallback (FuncType)
(no doc)
utils/ssh.go
SSHExecutor (Interface)
(no doc) [1 implementers]
internal/testutils/mocks.go
SCPExecutor (Interface)
(no doc) [1 implementers]
internal/testutils/mocks.go
SSHConfigManager (Interface)
(no doc) [1 implementers]
internal/testutils/mocks.go
BrowserOpener (Interface)
(no doc) [1 implementers]
internal/testutils/mocks.go

Core symbols most depended-on inside this repo

Close
called by 66
cmd/connect.go
Error
called by 63
api/client.go
usageErr
called by 62
cmd/errors.go
WriteFile
called by 35
internal/testutils/mocks.go
PrintWarningSimple
called by 34
cmd/print.go
MkdirAll
called by 33
internal/testutils/mocks.go
ReadFile
called by 32
internal/testutils/mocks.go
InitCommonStyles
called by 31
tui/common.go

Shape

Function 654
Method 206
Struct 132
TypeAlias 15
Interface 10
FuncType 1

Languages

Go100%

Modules by API surface

utils/ssh.go46 symbols
cmd/connect_test.go42 symbols
tui/modify.go38 symbols
internal/updatepolicy/updatepolicy.go37 symbols
tui/create.go36 symbols
internal/testutils/mocks.go34 symbols
utils/ssh_test.go32 symbols
tui/status.go32 symbols
internal/autoupdate/install_windows.go30 symbols
api/client.go28 symbols
tui/common.go25 symbols
tui/connect_flow.go22 symbols

For agents

$ claude mcp add thunder-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact