Run a Computer on a server
A Linux server you reach over SSH can be an always-on Computer. This page covers what works currently and names what is not available yet.
Before you start
You need a Linux x64 server you reach over SSH, with a systemd user session, git, curl, sqlite3, GitHub CLI (gh) and a Supported Agent (Claude Code or Codex) installed, and your own browser on a laptop or phone.
In your SSH session, echo $XDG_RUNTIME_DIR prints /run/user/ and your user ID when the systemd user session is there. The login service needs it.
Install over SSH
You install a server from an SSH session on it. The Linux installer checks the release’s checksums, then pairs this Computer, installs the login service and shows its status.
SSH into the server and run the Linux install command from the install page in that SSH session.
ssh you@your-server
Use an interactive SSH session: pairing asks for a code and a typed word in that terminal. If pairing does not finish, the build stays installed; run the installer again in an interactive SSH session.
Go to the install page Install the Trailside CLI
For what the login service does after a restart or a network loss, see Keep a Computer working while you’re away.
Current GitHub access
Currently the server reaches GitHub with its own GitHub sign-in when GitHub CLI (gh) is signed in there. Sign in with gh auth login, and check it with gh auth status. When gh is signed out on a Linux server, the Companion reaches your Workspace’s linked repositories with short-lived Trailside GitHub App tokens instead.
gh auth login gh auth status
Choose GitHub.com, HTTPS and the web browser. With no browser on the server, gh prints a one-time code: open github.com/login/device on your laptop or phone and enter it. The Companion pushes branches and opens pull requests with this sign-in.
Without that sign-in, commits carry the Trailside GitHub App’s bot identity, and a repository your Workspace doesn’t link still needs your own git setup. To use your own GitHub account instead, run gh auth login.
Pair from your own browser
No browser opens on the server, and none is needed. On your own laptop or phone, open the Pair page, sign in and choose Get a pairing code. Paste the code at the server’s masked prompt, then compare the fingerprint in your browser with the terminal and confirm your Computer.
- 1Get a code on any deviceOpen Pair, sign in and choose Get a pairing code.
- 2Paste it on the serverThe prompt shows one dot per character and never the code. Never put the code in a command or URL.
- 3Confirm in your browserCompare the full fingerprint with the server’s terminal, then choose Yes, this is my Computer.
Or use Add Computer on your Workspace’s Settings → Computers page. After you confirm the Connect disclosure there, it gives one single-use command to paste into the server’s SSH session, valid for ten minutes. When the server’s GitHub CLI is signed in as you, that command pairs and connects with nothing more to type; otherwise it names the Workspace and you, and asks you to type connect.
Type connect on the server
After you confirm in the browser, the server’s terminal shows the scope and the full Connect disclosure. Read them there, then type connect to pair and connect this Computer, or no to cancel.
Headless secret store
On Linux, pairing keeps this Computer’s key in a headless store when one works: your user’s systemd credentials, or the root identity helper where those are unavailable and the helper is installed. Neither needs a password, so nobody has to unlock anything after a restart.
Where systemd credentials are unavailable, install the root identity helper before you pair. trailside service helper-script prints its installer; save it, read it, then run it with sudo:
trailside service helper-script > identity-helper-install.sh sudo sh identity-helper-install.sh install "$(id -u)"
With neither, the key stays in the Secret Service keyring, which locks after each restart. trailside service install moves an existing key to a headless store once one works, and trailside service status names the store in use. Headless store or OS keyring has the details.
Check it is working
Check the server from its SSH session. trailside service status should say Service: running and name the identity store, systemd-creds or root-helper.
| Command | What it tells you |
|---|---|
trailside service status | Whether the login service is running, the identity store it uses and its newest log lines. |
trailside service logs | The login service’s log. |
trailside doctor | Checks local state, pairing, the lock, the install and the last agent check; on Linux also the keyring lock, DNS and the login service. Each check that needs you ends with Next: and what to do. |
trailside doctor --network | Also asks the service once whether it answers. |
Open your Computers Checks to run
Not available yet
Installing a server from trailside.io is not available yet. Until it is, use the steps above.
- Not available yet: installing a server from trailside.io. For now, install over SSH with the install command.