This guide puts kwant, the open-source team of AI bots, on a DigitalOcean droplet: a Linux server that keeps your bots running while your laptop is closed. You create the droplet, run kwant's one-line installer, and open kwant in your browser. Nothing is built on the server: the installer downloads the ready-made kwant for Linux.
You need a terminal with SSH (macOS and Linux have one built in; on Windows, use OpenSSH in PowerShell) and an AI account to connect later: a Claude, ChatGPT or Grok plan, or an API key.
Step 1: Create the droplet
Create a DigitalOcean account (affiliate link, it helps fund kwant), or sign in to the one you have. Then create a droplet with these choices:
- Image: Ubuntu 24.04 (LTS) x64. The installer works on Ubuntu 22.04 or newer and Debian 12 or newer.
- Size: at least 4 GB of memory. kwant alone runs in 2 GB, but the installer also sets up Laya, the router that picks which bot answers, and a browser for the bots.
- Region: the one closest to you.
- Authentication: SSH key. The steps below log in with it.
Check the current price of the size you pick on DigitalOcean's own page before you create the droplet. When the droplet is ready, copy its IP address. The commands below call it <droplet-ip>.
Step 2: Give kwant its own user
kwant's bots can run commands on the server, so run kwant as its own user rather than as root. Log in as root once and run:
ssh root@<droplet-ip>
useradd --create-home --shell /bin/bash kwant
loginctl enable-linger kwant
install -d -m 700 -o kwant -g kwant /home/kwant/.ssh
install -m 600 -o kwant -g kwant ~/.ssh/authorized_keys /home/kwant/.ssh/
exit
loginctl enable-linger keeps kwant running after you log out and starts it again after a reboot. The last two lines let your SSH key log in as the new user.
Step 3: Install kwant
Log in as the new user and run the installer:
ssh kwant@<droplet-ip>
curl -fsSL https://kwant.si/install.sh | sh
It downloads kwant for Linux, checks it against its SHA-256 checksum (a mismatch installs nothing) and starts it as a service for this user. It never uses sudo. Laya and the bots' browser keep installing in the background after it finishes. It ends by printing two things:
- a one-time sign-in link that starts with
http://127.0.0.1:8799/. It works once, for 15 minutes. - an SSH command for your laptop,
ssh -N -L 8799:127.0.0.1:8799 kwant@<this-server>.
Step 4: Open kwant
kwant listens only on the droplet itself, so the SSH tunnel brings it to your laptop. On your laptop, in a new terminal, run the command the installer printed, with your droplet's IP address:
ssh -N -L 8799:127.0.0.1:8799 kwant@<droplet-ip>
It prints nothing and keeps running; leave it open. Now open the sign-in link from step 3 in your laptop's browser. There you choose your AI and sign in, and your bot team is ready.
Next time, start the same tunnel and open http://127.0.0.1:8799. Your browser stays signed in.
If something goes wrong
- The link expired or was already used. On the droplet, as the
kwantuser, run~/.local/bin/kwnt signin-linkfor a new one. - The page doesn't load. Check that the tunnel is still running on your laptop. On the droplet,
systemctl --user status kwntshows whether kwant is running, andjournalctl --user -u kwntshows what it said. - Update kwant. Run the same install line again as the
kwantuser. It upgrades kwant in place and keeps your data in~/.kwnt.
To open kwant on your phone, or from anywhere without a tunnel, put HTTPS in front of it: the install guide shows how, along with the Docker and systemd setups.