LogiShell docs Open app

Connect a computer

A connected computer (a node) accepts work: terminals and agent sessions open on it from the browser, from your phone and from the desktop app. The computer dials out to LogiShell, so it never opens an incoming port.

It is three steps on every system: open a terminal window, paste one command, approve the computer in the app.

The three steps

  1. In the app open Settings → Devices → Connect a computer. On the phone: Devices → Get the install line. The app picks the system of the computer you are sitting at; for another computer pick macOS, Linux or Windows.
  2. On the computer you are connecting, open the window named below, paste the command and press Enter.
  3. Back in the app the third step fills in by itself. Your first computer connects at once. Every next one waits for you: We see (its name, its system, its space). Is it yours? Press Approve; until you do, that computer can do nothing.

The command already holds a fresh code. The code works once and lives ten minutes. You never need it twice: the pairing is kept on the computer itself.

macOS

Open Terminal (Command and Space, type Terminal).

curl -fsSL 'https://app.logishell.com/install/node' | sh -s -- \
  --control 'https://app.logishell.com' --pair '<code>'

Linux

Open any shell, or sign in over SSH. The command is the same as on macOS.

Windows

Open PowerShell (press Start, type PowerShell). Command Prompt works too. No administrator rights are needed.

powershell -NoProfile -Command "& ([scriptblock]::Create((irm 'https://app.logishell.com/install/node.ps1'))) -Control 'https://app.logishell.com' -Pair '<code>'"

Copy the line from the app, with the button: it carries your code, and a retyped line of this length rarely survives. An older copy of this page showed the line without powershell -NoProfile -Command "..." around it. That form runs only inside PowerShell; in Command Prompt it stops at once with & was unexpected at this time.

What you should see

A healthy run prints, in this order:

downloading lsh-node-...
installed ...
pairing with https://app.logishell.com
paired
LogiShell node ... is running

It takes about a minute. The command downloads the right build of lsh-node, checks its sha256 (no match, nothing is installed), pairs once with the code, and leaves a service behind whose own command line no longer holds the code.

SystemWhat survives a restartWhere the log is
macOSLaunchAgent com.logishell.node, starts at login, comes back after a crash~/.logishell/node.log
Linuxsystemd user unit logishell-node (system unit under root)journalctl --user -u logishell-node -f
Linux without systemdnothing: a background process, and the installer says so~/.logishell/node.log
Windowsscheduled task LogiShell node%LOCALAPPDATA%\LogiShell\install.log

In the app the third step goes through three states: Waiting for the computer, Seen, waiting for you, Approved.

When it does not work

What you seeWhat it meansWhat to do
Windows: & was unexpected at this timeAn old form of the command was pasted into Command PromptCopy the command again from the app, or open PowerShell
Windows: 'irm' is not recognized, or A parameter cannot be found that matches parameter name 'fsSL'A line meant for another window: a PowerShell line in Command Prompt, or the macOS and Linux line in PowerShellIn the app pick the Windows tab and copy that line
Windows: running scripts is disabled on this systemThe script was saved to a file and started from thereDo not save it. Paste the one line from the app
Windows: Could not create SSL/TLS secure channelA Windows too old to speak TLS 1.2 by defaultUse the line under this table, with TLS set inside it
the local engine address 127.0.0.1:7681 is already in useSomething already listens there, most often the LogiShell desktop app on the same computerThat computer is already connected through the app. Or add -Listen '127.0.0.1:7690' (--listen on macOS and Linux)
this pair code is expired or already usedTen minutes passed, or the line ran beforePress Get a new command in the app
checksum mismatchA proxy or an antivirus changed the downloadTry another network, or allow dl.logishell.com
The download stops, or the file vanishes right afterAn antivirus holds back a program it has not seen. The build is not signed yetAllow LogiShell in the antivirus, run the command again
pairing failedThe computer could not reach LogiShellA work firewall or proxy: try another network. The reason is in the log from the table above
The run ended well, the app still waitsThe list has not been read yet, or the computer joined another spaceWait a few seconds; look in Settings → Devices under each space
The computer is listed but refuses workIt is still waiting for you (every computer after your first does)Press Approve
Windows: it disconnects when you sign outThis account may not run background tasksStay signed in, or run the command once from PowerShell opened as administrator

For an old Windows that cannot make a secure channel, put the TLS setting inside the quotes of the command from the app, right after the first ". Setting it in the window first does nothing: the command starts a new PowerShell, which does not inherit it.

powershell -NoProfile -Command "[Net.ServicePointManager]::SecurityProtocol = 'Tls12'; & ([scriptblock]::Create((irm 'https://app.logishell.com/install/node.ps1'))) -Control 'https://app.logishell.com' -Pair '<code>'"

Still stuck? Send us the text from the window. On Windows the whole run is also kept in %LOCALAPPDATA%\LogiShell\install.log.

Good to know

For agents

Through the MCP door the same road is four tools, in this order:

  1. pair_node returns the command for each system. Give it to the person whole.
  2. The person runs it on the computer. An agent runs it only on a computer the person has put it on.
  3. list_nodes shows the computer as pending, or as approved when it is the first computer of that space: the first one connects at once.
  4. For a pending computer approve_node asks the person. Only their answer approves; an agent never approves for them.

Pairing is not permission, except for the very first computer of a space. Anyone holding a code can pair, so for every next one the last word belongs to a person who is already signed in. Treat the code as a secret for its ten minutes.

Next: put an agent on that computer.

Need the desktop of that computer and not only its terminals? See the screen of your machines.