One command installs Localoy on a Linux or macOS server, sets it to run in the background and signs it in with a code. You then use it from the browser on your own computer, through an SSH tunnel. You don’t need Docker, and you don’t need root.
Install
It works on Linux and macOS, on x64 and ARM. Connect over SSH as the user Localoy should run as, and run:
curl -fsSL https://localoy.ai/install.sh | sh
- It downloads the newest release from
download.localoy.aiand installslocaloy(aliasloy) andlocaloydto~/.local/bin. If that folder is not on yourPATH, it prints the line to add. - It sets Localoy up as a background service: a systemd user service on Linux, a launchd agent on macOS. The service starts at login and restarts itself if it crashes. On Linux the installer also tries to turn on lingering, so Localoy keeps running after you log out.
- Over SSH there is no browser to open, so it signs you in with a code. Open the address it prints on any phone or computer, sign in to localoy.ai, check the code matches, and press Continue.
Windows has no server install; use the desktop installer from Install Localoy.
Use it from your own computer
Localoy listens only on the server itself (127.0.0.1:2468), never on the network. Reach it with an SSH tunnel from your own computer:
ssh -L 2468:127.0.0.1:2468 you@your-server
- On the server, run
localoy open --print. It prints a one-time link. - Open that link in your browser within two minutes. It works once and signs that browser in.
- After that,
http://127.0.0.1:2468opens Localoy in that browser whenever the tunnel is up, for 30 days, even if the server restarts in between. Bookmark it. When it stops letting you in, runlocaloy open --printagain.
Without systemd
In a container, or anywhere without a systemd user session, Localoy can’t start by itself. The installer says so and prints two commands:
~/.local/bin/localoyd &
~/.local/bin/localoy open
The first starts Localoy; the second opens it in a browser on the same computer. On a server with no browser, sign in with localoy login --device instead, then use the tunnel and localoy open --print as above. Started this way, Localoy stops when the server restarts, so start it again or wrap it in your own service.
Install options
Set these before sh, for example curl -fsSL https://localoy.ai/install.sh | LOCALOY_NO_SERVICE=1 sh.
INSTALL_DIR=/usr/local/bininstalls system-wide (this one needs root).LOCALOY_VERSION=<tag>installs a specific release instead of the newest, for examplev2.2.59.LOCALOY_NO_SERVICE=1installs only, without the background service.
Commands you will use
| Command | What it does |
|---|---|
localoy status | Whether Localoy is running, which version, and who is signed in. |
localoy login --device | Signs in with a code you approve on any device. |
localoy logout | Signs this server out. |
localoy open --print | Prints a one-time link that signs a browser in. |
localoy version | The installed version, even when Localoy isn’t running. |
Updates and logs
Localoy updates itself. It checks for a new version once a day, keeps the download only if its signature shows it comes from Localoy, and switches over when no agent is working. If you have Localoy open in a browser tab at the time, it waits for you to press Restart instead. More in Update Localoy.
If Localoy doesn’t start, or localoy status says it isn’t running, look in ~/.localoy/localoyd.log. Localoy keeps its own data in ~/.localoy, and the crew’s files go in ~/localoy.