Anna's Sci-Fest Project '26 · Agent set-up steps

Building Eve

How the Agent was built on Hetzner, Tailscale and Telegram to aid in analysis.

Eve: OpenClaw setup summary

How Eve was set up on Hetzner, Tailscale, Telegram and Claude, including the fixes found along the way.

A few identifiers from the original document have been masked for public hosting — the server IP, Tailscale IP, tailnet/dashboard name, Tailscale account and Telegram ID. The steps and commands are otherwise unchanged; replace the <placeholders> with your real values when following them.
Linux usereve
Public IP<server-ip>
Tailscale nameeve
Dashboardhttps://<your-tailnet>.ts.net

1 Create a Secure Shell (SSH) key (PowerShell on your PC)

Run each command on its own line. Press Enter at each prompt, then copy the line starting ssh-ed25519.

ssh-keygen -t ed25519 -C "eve"

Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub

2 Create the Hetzner server

Ubuntu, 4 GB RAM. If you didn’t add the key while creating the server, log in once with the emailed root password, then copy the key across from PowerShell:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@<server-ip> `
  "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

ssh root@<server-ip> "chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"

Lesson. Always connect by internet protocol (IP) address. Hetzner’s server name (ubuntu-4gb-fsn1-1) doesn’t work with ssh.

3 Update the server and create the eve user (as root)

ssh root@<server-ip>

apt update && apt upgrade -y
apt install -y curl git ufw unattended-upgrades
adduser eve
usermod -aG sudo eve
rsync --archive --chown=eve:eve ~/.ssh /home/eve
loginctl enable-linger eve

4 Set up Tailscale on the server and the PC

On the server:

curl -fsSL https://tailscale.com/install.sh | sh
tailscale up --ssh --hostname=eve
tailscale set --operator=eve

On the PC, install Tailscale from tailscale.com/download and log in with the same account (<tailscale-account>). Check that both devices appear, then test from PowerShell:

tailscale status

ssh eve@<tailscale-ip>

5 Lock down the server (as root, over Tailscale)

ssh root@<tailscale-ip>

ufw default deny incoming
ufw default allow outgoing
ufw allow in on tailscale0
ufw --force enable
printf "PermitRootLogin no\nPasswordAuthentication no\n" \
  > /etc/ssh/sshd_config.d/00-hardening.conf
systemctl restart ssh

Lesson. From now on, the server is only reachable through Tailscale. The Hetzner web console still works as a fallback.

6 Install OpenClaw (as eve)

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh \
  | bash -s -- --no-onboard
source ~/.bashrc
openclaw --version

Lesson. Keep the window open until the install finishes. Closing it the first time stopped the install, so we had to reboot (sudo reboot) and run it again.

7 Create the Telegram bot

In Telegram, message @BotFather, send /newbot, name it Eve and copy the token. The token only goes into OpenClaw, never into Telegram, and should never be shared. If it ever leaks, send /revoke to BotFather to get a new one.

8 Connect Claude using your subscription

Install Claude Code and fix its PATH:

curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc

Log in (open the link on your PC and paste the code back), then type /exit:

claude

Then run onboarding and choose Anthropic → Claude command-line interface (CLI), picking the model from the list:

openclaw onboard --install-daemon

Lesson. The first attempt saved openai/Claude Sonnet 4.8, which is wrong. If that happens, run openclaw configure and pick from the list rather than typing a model name.

9 Pair with Eve

Message Eve in Telegram, then on the server:

openclaw pairing list telegram

openclaw pairing approve telegram CODE

10 Lock Eve to your Telegram account only

Run one line at a time:

openclaw config set channels.telegram.botToken "NEW_TOKEN"

openclaw config set channels.telegram.allowFrom '["<your-telegram-id>"]'

openclaw config set channels.telegram.dmPolicy allowlist

openclaw config set channels.telegram.groupPolicy allowlist

Lesson. Config blocks go in a file, so don’t paste them at the prompt. If the prompt shows > instead of $, the shell is waiting for a missing quote: press Ctrl+C and retype the line. To leave the openclaw tui chat screen, press Ctrl+C.

11 Make sure the gateway runs as a service

openclaw gateway install
openclaw gateway start
openclaw gateway status

Look for Runtime: running. To restart it later:

systemctl --user restart openclaw-gateway.service

12 Put the dashboard behind Tailscale

openclaw config set gateway.bind loopback
openclaw config set gateway.tailscale.mode serve
openclaw config set gateway.auth.allowTailscale true
systemctl --user restart openclaw-gateway.service
tailscale serve --https=443 off
systemctl --user restart openclaw-gateway.service

If the error still appears, also run:

openclaw config set gateway.trustedProxies '["127.0.0.1"]'

Dashboard: https://<your-tailnet>.ts.net (only reachable from devices on your Tailscale account).

Lesson. Serve first had to be enabled on the Tailscale account using the link Tailscale printed. It’s a one-time step. Setting up Serve by hand caused a proxy_attribution_required error. Fix it by letting OpenClaw manage Serve:

13 Personalise Eve

Copy the files to your PC, edit them in Notepad, and copy them back:

scp eve@<tailscale-ip>:~/.openclaw/workspace/SOUL.md $env:USERPROFILE\eve\

scp $env:USERPROFILE\eve\SOUL.md eve@<tailscale-ip>:~/.openclaw/workspace/

Then send /new to Eve in Telegram so she reloads them. Commit only the .md files to git and add *.pdf to .gitignore.

Quick reference

PS C:\Users\<you>>Your PC: use ssh and scp here
eve@ubuntu-4gb-fsn1-1:~$The server, as eve: use openclaw commands here
root@...:~#The server, as root: setup only
>The shell is waiting for a missing quote: press Ctrl+C

Daily commands:

ssh eve@<tailscale-ip>
openclaw logs --follow
systemctl --user restart openclaw-gateway.service
openclaw update

Still to do. Make sure the bot token was replaced via /revoke, because the old one appeared in the chat. If Eve hits usage limits, consider switching her to an application programming interface (API) key.

← Back to home