# Linux

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



**Install the client tools and sign in**

Beams is a [Teleport](https://goteleport.com) project and uses [official Teleport client tools](https://goteleport.com/download/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:

**macOS**

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

```sh
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:

```sh
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](https://goteleport.com/download/client-tools/) for other versions and architectures.

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

```sh
tsh version
```

**Passwordless**

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

```sh
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.

```sh
tsh login --proxy='example.beams.run' --user=you@example.com
```

**SSO**

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

```sh
tsh login --proxy='example.beams.run'
```

<a id="create-a-disposable-environment"></a>

## Create an ephemeral runtime

For model endpoints and evaluation limits, see [Built-in inference](/docs/llm/built-in/).



**Local terminal**

```sh
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:

**Local terminal**

```sh
tsh beams add --no-console --format=json
```

To use an existing phase's latest successful image:

**Local terminal**

```sh
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.

**Warning: Saving work**

A beam created with `tsh beams add`, even with `--phase`, cannot snapshot changes back to a phase. Use [a phase build beam](/docs/phases/getting-started/) for work you need to save.

## List and connect

**Local terminal**

```sh
tsh beams ls
```

Connect using the name returned by the listing:

**Local terminal**

```sh
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:

**Local terminal**

```sh
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:

**Local terminal**

```sh
tsh beams scp ./example.txt <beam-name>:/home/beams/example.txt
```

Copy a result back to your local machine:

**Local terminal**

```sh
tsh beams scp <beam-name>:/home/beams/output.csv ./output.csv
```

## Remove a beam

**Local terminal**

```sh
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](/docs/runtime/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](/docs/phases/snapshots/).
* To run several copies of the same environment side by side, start new beams from a saved phase. See [Forks](/docs/phases/forks/).
