Skip to content

Linux

Create, connect to, and manage an ephemeral Linux runtime.

Build with agents
On this page
Install the client tools and sign in

Beams is a Teleport project and uses official Teleport client tools.

The client tools include tsh to sign in and run commands, and tctl to administer your cluster if you have permission.

Cluster: example.beams.run. Edit this example to use your cluster name.

Install version 18.11.10 of the client:

Operating system
macOS

Download and open the macOS installer, then follow its instructions.

CLI
curl -O https://cdn.teleport.dev/teleport-tools-18.11.10.pkg
open teleport-tools-18.11.10.pkg
Linux

For Linux x86-64, download and install the client tools:

CLI
curl -O https://cdn.teleport.dev/teleport-v18.11.10-linux-amd64-bin.tar.gz
tar -xzf teleport-v18.11.10-linux-amd64-bin.tar.gz
sudo ./teleport/install
Windows

For Windows x86-64, run these commands in PowerShell. Add the extraction directory ($env:LOCALAPPDATA\Teleport) to your user PATH to use tsh in future terminals; the last command adds it to this terminal's PATH.

PowerShell
Invoke-WebRequest -Uri https://cdn.teleport.dev/teleport-v18.11.10-windows-amd64-bin.zip -OutFile teleport.zip
Expand-Archive -Path teleport.zip -DestinationPath "$env:LOCALAPPDATA\Teleport" -Force
$env:Path += ";$env:LOCALAPPDATA\Teleport"

Follow the official client tools install guide for other versions and architectures.

Check that you’re running v18.11.10 of the client with tsh version.

CLI
tsh version
Sign-in method
Passwordless

I sign in without a password (e.g. a passkey).

CLI
tsh login --proxy='example.beams.run' --auth=passwordless
Password & MFA

I have a password & MFA set up for my account:

Replace you@example.com with your Teleport username.

CLI
tsh login --proxy='example.beams.run' --user=you@example.com
SSO

I sign in with SSO (e.g. Okta, GitHub, SAML).

CLI
tsh login --proxy='example.beams.run'

Create an ephemeral runtime

For model endpoints and evaluation limits, see Built-in inference.

CLI · Local terminal
tsh beams add

A new beam gets an automatically generated name and connects your terminal to its shell. To create one without connecting, and receive structured output:

CLI · Local terminal
tsh beams add --no-console --format=json

To use an existing phase’s latest successful image:

CLI · Local terminal
tsh beams add --phase=<phase-name>

The selected image remains fixed for that beam’s lifetime. Create a new beam to use a newer image.

List and connect

CLI · Local terminal
tsh beams ls

Connect using the name returned by the listing:

CLI · Local terminal
tsh beams ssh <beam-name>

Use the listing to find your beam’s name and expiry. Disconnecting with exit does not remove it. You can reconnect to a running beam, including its unsaved changes.

Execute a command

Run a command without opening an interactive shell:

CLI · Local terminal
tsh beams exec <beam-name> whoami

Replace <beam-name> with the actual name. Remote command execution still uses the beam’s delegated identity and permissions.

Transfer files

One argument must use the <beam-name>:<path> form. Copy a local file into the beam:

CLI · Local terminal
tsh beams scp ./example.txt <beam-name>:/home/beams/example.txt

Copy a result back to your local machine:

CLI · Local terminal
tsh beams scp <beam-name>:/home/beams/output.csv ./output.csv

Remove a beam

CLI · Local terminal
tsh beams rm <beam-name>

Removal discards unsaved filesystem changes. Expiry also discards unsaved changes; it does not take a final snapshot. Check the resource limits for current capacity and lifetime limits.

Next steps

  • To keep your work when a beam is removed or expires, save it to a phase. See Snapshots.
  • To run several copies of the same environment side by side, start new beams from a saved phase. See Forks.

Search docs

Loading search and AI…

Skills

Install all available skills. All Beams and Teleport skills are hosted in our OSS Teleport repository.

npx skills add https://github.com/gravitational/teleport