Skip to content

Authentication

How users and agents authenticate to beams and resources.

Build with agents
On this page

You sign in to Teleport as yourself to create or connect to a beam. Inside the beam, workloads use the beam’s own Teleport identity, not a copy of your login.

User sign-in

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'

On your workstation, replace example.beams.run:443 with your Teleport proxy address. Complete your cluster’s sign-in and MFA prompts, then check that tsh status shows the expected user and cluster. Sign in again when your session expires.

CLI · Workstation
tsh login --proxy=example.beams.run:443
tsh status

Runtime identity

Teleport provisions and renews a short-lived identity for each beam. Run this inside the beam to see its bot-beam-… username, roles, and delegation chain back to the creator:

CLI · Inside the beam
tsh status

When you create a beam, use tsh beams add --roles=… to select the eligible roles it needs. If you omit --roles, Teleport selects your eligible standing roles. Temporary access from your own access requests does not carry over automatically. See Delegation for how to choose and verify roles. Don’t sign in as your workstation user inside a beam or copy your credentials into it.

Resource authentication

The beam’s identity tells Teleport who is connecting. Roles and any approved access requests determine what that identity can use. A successful tsh status confirms the session, not access to a particular resource.

CLI · Inside the beam
tsh apps ls
tsh db ls

These commands show apps and databases visible to the beam. To verify a connection, follow the guide for the resource you’re using, such as Databases or Linux servers.

Next step

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