Pylorn
All guides

How to Install Pylorn on a VPS: Ubuntu and Docker Guide

Install Pylorn on a VPS with Ubuntu or Docker. Connect the server to your account, set up an AI provider, and manage updates, logs and backups.

Installing Pylorn on a VPS gives your agents a computer that can keep running when you close your laptop. Their files, conversations and tools live on the server, and you connect from the Pylorn app or in your browser.

You can install Pylorn directly on Ubuntu or run the official Docker image. Both methods connect the server to your Pylorn account. Pick one, then follow the same steps to open the server and set up your first agent.

What you need

For the Ubuntu method, use a 64-bit VPS running Ubuntu 24.04 LTS, with systemd and access to sudo. Pylorn provides builds for x86_64 and arm64. Ubuntu 24.04 is the baseline for the full installation tests in the project's documentation.

Have your SSH login details ready, and access to the email address you use for Pylorn. You'll also need access to an AI provider when you create an agent. The server installation doesn't include an AI subscription.

Choose enough RAM and disk space for the work your agents will do. Browser sessions, coding tools and several agents can use more memory than a single text task. Watch the server as you add work. This guide doesn't set a minimum VPS size for every case.

1. Connect to your VPS

Open a terminal on your computer and connect using the SSH details supplied by your VPS provider:

ssh YOUR_USER@YOUR_VPS_IP

Replace YOUR_USER and YOUR_VPS_IP with your own login and server address. Run the installation commands below in that SSH session, on the VPS.

On a fresh Ubuntu server, install the download tools first:

sudo apt-get update
sudo apt-get install -y curl ca-certificates

2. Choose an installation method

MethodWhen to use it
Ubuntu installerYou want Pylorn to run as a system service on the VPS.
Docker ComposeYou already manage services with Docker, or prefer to keep Pylorn in a container.

Option A: Install directly on Ubuntu

Run the official Pylorn server installer:

curl -fsSL \
  https://raw.githubusercontent.com/pylorn/pylorn/main/scripts/install-server.sh |
  sudo bash

The installer downloads the latest released Linux build, checks its checksum and sets up the Pylorn service. On a fresh installation, it creates a separate pylorn service user and starts Pylorn in the background.

Sign in and give the server a name you'll recognise in the app:

sudo pylorn login --name "Pylorn VPS"

Enter the email address for your Pylorn account, then the code sent to that address. Use the same account when you open the app later.

Check the result:

sudo pylorn status

Look for your installed version, account and server state. If the command can't reach Pylorn yet, check the service log in the troubleshooting section below.

Pylorn runs as a system service, so closing the SSH session doesn't stop it. Continue to step 3.

Option B: Run Pylorn with Docker Compose

This option needs Docker Engine and the Docker Compose plugin on the VPS. If they aren't installed, follow the Docker installation instructions for Ubuntu first.

Create a new folder for this deployment. Keep its Compose file and security profile together:

mkdir pylorn-vps
cd pylorn-vps
curl -fsSLO \
  https://raw.githubusercontent.com/pylorn/pylorn/main/docker/compose.yaml
curl -fsSLO \
  https://raw.githubusercontent.com/pylorn/pylorn/main/docker/seccomp.json
sudo docker compose up -d

Use another new folder name if pylorn-vps already exists. The official Compose file uses the latest release image and a persistent data volume. It also includes the security profile and shared-memory setting that the container needs.

Keep those settings in place. The Electron sandbox stays enabled, and the supplied security profile lets it run in the container. Agent commands and files live inside that container, so mount only the host folders you want agents to use.

Sign in to Pylorn and check the server:

sudo docker compose exec pylorn pylorn login --name "Pylorn VPS"
sudo docker compose exec pylorn pylorn status

Enter your Pylorn account email and its sign-in code. Run later Compose commands from this same deployment folder.

The container keeps its data in a persistent volume and restarts according to the Compose policy. Continue to step 3.

3. Open the server in Pylorn

Open the Pylorn desktop app or Pylorn in your browser, and sign in to the same account. Find Pylorn VPS in the server list and select it.

The standard setup connects through Pylorn's existing account and remote-access services. You use the app to reach the VPS. The Pylorn container publishes no web port of its own.

When you work on this server, your agents' workspace files and conversations are stored on the VPS. AI providers, websites and connected services can still receive the task data they need.

4. Connect a provider and create an agent

Choose the provider you want to use on the server, then follow its sign-in or API-key flow in Pylorn. A provider connection on your laptop isn't automatically a working connection on the VPS.

On a new server with no agents, Pylorn offers provider setup before the first-agent form. Once you're connected, create an agent, give it clear instructions and start with a small task.

For example:

Create a file called server-check.txt in your workspace. Put today's date in it, and a short description of what you can access. Don't change system settings or send anything externally.

Open the file in the agent's workspace and check the result. The first-agent guide walks through agent setup in more detail.

Your VPS can stay available around the clock while its service, network and provider access are working. Check routines and their times before you leave scheduled work running.

Use Hermes Agent on the server

Open the server's provider settings and select Download on the Hermes row. Pylorn installs Hermes Agent for its service user, and the row then shows Connect.

To install Hermes from a terminal instead, install it as the service user, not as your SSH login. With the Ubuntu installer, run this on the VPS:

sudo -u pylorn -i bash -c \
  'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --non-interactive'
sudo pylorn restart

For Docker, install it in the container. Hermes stays in the data volume when you replace the container:

sudo docker compose exec pylorn bash -c \
  'curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --non-interactive'
sudo docker compose restart pylorn

Then select Connect on the Hermes row and enter the Nous Portal code. You can also run hermes setup or hermes model as that user to choose another model provider.

5. Read logs and keep the server updated

For the direct Ubuntu installation, these are the main commands:

TaskCommand
Check the serversudo pylorn status
Follow its logssudo pylorn logs -f
Restart Pylornsudo pylorn restart
Install the latest updatesudo pylorn update

An update restarts Pylorn, so run it when an interruption is acceptable. Back up the server data first. The native service also checks for updates and can stage them for installation. pylorn status shows a staged update.

For Docker Compose, use these commands from your deployment folder:

sudo docker compose logs --tail 100 pylorn
sudo docker compose exec pylorn pylorn status

To upgrade after checking the release notes and making a backup:

sudo docker compose pull
sudo docker compose up -d
sudo docker compose exec pylorn pylorn status

A container upgrade replaces the image and keeps its data volume. The latest tag follows new releases. If you want a specific release, set its version tag in compose.yaml before upgrading. Use the same volume and runtime settings.

Pylorn can migrate its database during an upgrade. To recover, use a release that matches your backup. Switching an upgraded live volume to an older image isn't a safe rollback.

Keep a backup of the complete setup

For the native installation with the default service user, back up the service user's home at /var/lib/pylorn and the keyring data at /srv/pylorn-hosted together. If you selected another service user, back up that user's actual home instead.

Stop Pylorn before making a consistent copy, then start it again when the copy is complete:

sudo pylorn stop

Back up both locations using your normal backup process, then run:

sudo pylorn start

For Docker, stop the service and back up the complete persistent data volume, then start it again. The volume includes provider sign-ins, the database and its encryption keyring. A copy of the workspace files alone isn't a complete backup.

Protect backups like account credentials, and keep a copy outside the VPS. A persistent disk or Docker volume can survive a restart, but it's still part of the server you manage.

If the server does not appear

Check that you ran pylorn login on the VPS, and that the app uses the same email account. A successful installation alone doesn't sign the server in.

For the native install, read sudo pylorn status and sudo pylorn logs -f. For Docker, check sudo docker compose ps and the container logs. Resolve any reported errors before you try to reinstall.

If the container reports a user-namespace or sandbox problem, check that it uses the official security profile. Some VPS hosts restrict user namespaces or apply extra AppArmor rules. Keep the sandbox enabled and follow the container documentation for those host limits.

If work starts waiting when memory is low, look at the memory information in pylorn status. Run less work at once, or give the VPS more memory for the tasks you want to run.

Frequently asked questions

Will agents keep working when I close my laptop? Yes, while Pylorn is running on the VPS and the required services remain available. Your laptop is the client, and the VPS runs the agents.

Do I need a domain for this setup? The standard setup uses Pylorn's existing account services and app. You don't need a custom domain for this installation.

Does the VPS include model access? You connect a provider in Pylorn. VPS costs and provider access are separate.

Can I move my existing agents to the VPS? Yes. If you administer both servers, open Transfer in Server settings in the desktop app and choose Copy to another server. Pick the server that has the agents, and choose this VPS as the destination. You can copy the agents in one step, without handling a file. ZIP import still works. To read a local Hermes folder, use the Pylorn desktop app on the computer where the folder is stored.

More guides

AI Agent Productivity: Why Persistence Beats a Blank Chat

AI Agent Workflows: 12 Repeatable Processes for Small Teams

AI Agent Workflow: From Task to Finished Result

AI Teammates vs AI Chatbots: When You Need More Than One Conversation

AI Agent Workspace vs Chat History: What Changes in Practice?

How to Import Hermes Agents into Pylorn

How to Import Grok Bot Agents into Pylorn

20 Real AI Agent Examples for Work and Business

AI Agents vs Agentic AI: What Is the Difference?

Agentic AI Definition: How It Differs From Chatbots

Pylorn Hosted Servers: Plans, Pricing, and How They Work

How to Use the Pylorn Marketplace: Agents, Skills, and Plugins

What Are AI Agents? How They Work and When to Use Them

What Is Pylorn? Models, Providers and Agents Explained

How to Use Pylorn: Set Up Your First AI Agent

Meet your first teammate

Run Codex, Claude, Gemini, Grok or your own model with the plans you already pay for. Each one gets its own workspace and context, and your work stays on your computer.

Download PylornContact