Connect a device
You can connect a machine in two ways:- Desktop app: connect the computer you’re using with one click. Use this for your own laptop or workstation.
- Tembo CLI: pair a machine from its terminal. Use this for servers, Linux boxes, and other machines without the desktop app.
Connect with the desktop app
- Open the Tembo desktop app.
- Go to Settings > Devices and click Connect this computer.
Connect with the CLI
Prerequisites
- The Tembo CLI is installed on the machine you want to connect.
1
Get a pairing code
In the dashboard, open Settings > Devices and click Add device. The dialog shows two commands to run on your machine. The pairing code works once and expires after 10 minutes.
2
Pair the machine
Copy the first command from the dialog and run it on your machine. It includes your pairing code and your Tembo API URL:The device is named after the machine’s hostname. Add
--name <name> to choose a different name.3
Start the device
Ctrl+C to stop it.tembo devices start under a process manager or terminal multiplexer, such as systemd or tmux, so it keeps running after you log out.
Use a device in a session
Ask Tembo to work on your machine in a session, for example “Run the test suite in~/code/app on my laptop.” The agent can:
- Run shell commands on the device in your login shell (PowerShell on Windows), starting in your home directory.
- Read, write, and list files on the device.
- Check the device’s operating system, user, home directory, and shell.
Limits
View a device’s screen
You can watch and control the screen of a device you own, for example to follow along while the agent works or to finish a step yourself.- In a session: the first time the agent uses one of your devices, the session’s side panel opens a Device tab showing its screen. This doesn’t happen when you’re viewing the session in the desktop app on that same computer. To open a screen yourself, add the Devices tab and click View screen. Click Switch device in the tab to choose another device.
- In settings: open Settings > Devices and click View screen next to an online device.
Access
- Only you can use your devices. Other members of your workspace can see your devices in Settings > Devices, but their sessions can’t use them and they can’t view their screens.
- Devices work in sessions you start in the Tembo app, for messages you type. Sessions started by agents or integrations can’t use devices, and neither can messages other members send in your sessions.
- Disable a device to pause access. Turn off the device’s toggle in Settings > Devices to block requests without unpairing it. Workspace admins can also disable or remove any device.
Manage a device
Settings > Devices lists every device in your workspace with its owner, platform, how it’s connected (desktop app or CLI), and whether it’s online, offline, or disabled. To remove a device, open its menu and click Remove. Iftembo devices start is running on the machine, it stops and deletes the machine’s local credentials. To use the device again, pair it again.
On a machine paired with the CLI, show which device it’s paired as:
~/.config/tembo-device/device.json ($XDG_CONFIG_HOME/tembo-device if XDG_CONFIG_HOME is set), or %APPDATA%\tembo-device\device.json on Windows. To store them somewhere else, set TEMBO_DEVICE_CONFIG_DIR or pass --config-dir <dir> to every tembo devices command.
CLI command reference
Troubleshooting
This pairing code is invalid, expired, or already used
This pairing code is invalid, expired, or already used
Pairing codes work once and expire after 10 minutes. Click Add device again to get a new code.
This machine is not paired
This machine is not paired
tembo devices start needs a paired device. Run the tembo devices pair command from Settings > Devices > Add device first.Connected, but requests are blocked
Connected, but requests are blocked
The device is disabled. Turn on its toggle in Settings > Devices.
A session says no device is online
A session says no device is online
Make sure the desktop app is open or
tembo devices start is running on the machine, and that the device is enabled in Settings > Devices. Devices are only available for messages you type in sessions you started in the Tembo app.The screen doesn't show
The screen doesn't show
Screen viewing works on macOS devices only. On macOS, check that Tembo is allowed under Screen Recording and Accessibility in System Settings > Privacy & Security.