AI Server Build Plan
Nov 30, 2026 · @Josh
Overview
This PC becomes a headless AI server on Ubuntu Server 26.04.1 LTS, reachable only over Tailscale. The owner does Part A by hand (about 30–45 minutes). Then Claude Code, running on the server, reads this doc, checks Part A, and does all of Part B.
Hardware: 32 GB RAM (about 28 GB usable with BIOS GPU memory on Auto), AMD Radeon 780M integrated graphics, 1 TB Kingston NVMe. AI models run in the cloud; this box runs the agents, tools and files.
Owner: not deeply technical. When something breaks, the fix should be a button in Cockpit or one line from the cheat sheet, not a debugging session.
Component
What it does
How the owner uses it
Ubuntu Server 26.04.1 LTS
Operating system, no desktop by default
—
Tailscale (SSH, MagicDNS, serve)
Private network; nothing is exposed to the internet
On every device
Claude Code
Builds and maintains the server; signs in with the owner's Claude account
SSH from laptop
1Password CLI + service account
Gives agents their secrets at runtime via op run
1Password app
Hermes Agent
Personal agent
Hermex on iPhone
hermes-webui
The server Hermex connects to
Hermex on iPhone
T3 Code server
Coding-agent interface driving Claude Code
T3 Code on laptop or browser
Cockpit
Web admin: restart services, read logs, terminal, reboot
Browser, port 9090
Uptime Kuma
Alerts the owner's phone when a service goes down
Phone notifications
Blender (headless, Xvfb, Blender MCP)
3D work driven by Claude
Via Claude
XFCE + xrdp (optional)
Desktop on demand over RDP
Windows App / RDP client
[embed: node/df1f3fcb-c0f4]
Every connection from your devices goes through Tailscale; the server talks only to cloud AI models, and 1Password supplies each service's secrets when it starts.
Part A — Owner's steps
You do these by hand, in order. Installing Ubuntu erases Windows and everything on this PC, so copy off anything you want to keep first. The SD card is already flashed and verified.
BIOS (press Del or F2 at power-on)
GPU memory (UMA Frame Buffer): Auto, or 1 GB for about 3 GB more RAM.
"Restore on AC power loss": Power On, so the server comes back after a power cut.
Save and exit.
Boot from the SD card: press F12 or F8 at power-on and pick it. If it isn't listed, put the card in a USB card reader and try again.
Install Ubuntu Server. Take the defaults except:
Network: plug in Ethernet if you can (more reliable than Wi-Fi).
Storage: "Use an entire disk", the 1 TB Kingston. Leave LVM on; Claude will fix its size later.
Profile: server name ai-server, your username, and a strong password. Save the password in 1Password.
Ubuntu Pro: skip.
SSH: tick Install OpenSSH server.
Featured snaps: select none.
When it says done, choose Reboot, remove the SD card, and sign in on the server's screen.
Tailscale. Run these two lines, then open the link it prints on your phone and approve the device:
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up --ssh
In the Tailscale admin console: open ai-server → Disable key expiry. Under DNS, make sure MagicDNS is on.
Move to your laptop. From here on, copy and paste instead of typing: ssh <your-username>@ai-server
Let Claude run admin commands during the build (removed again in step B9; Claude Code still asks you before each command):
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/90-build-temp
Install Claude Code and sign in:
curl -fsSL https://claude.ai/install.sh | bash
exec bash
claude
Claude Code shows a sign-in link. Open it on your laptop, sign in with the emailed code, and paste the code it gives you back into the terminal.
Hand over to Claude. Paste this into Claude Code:
Read the "AI Server Build Plan" doc at https://claude.ai/artifact/RZHxEcMq9zLH5KqsYAkkvp. Follow Part B exactly, starting with step B0. Stop at every owner checkpoint.
If Claude Code can't open the link, copy this whole doc's text and paste it in instead.
Part B — Instructions for Claude Code
Claude Code: you are building and will maintain this server. Work through B0–B9 in order, one step at a time, and don't start a step until the previous one passes its done-check.
Working with the owner
Explain each step in plain English before doing it: what it is for and what will change. No jargon without a one-line explanation.
At an owner checkpoint, stop. Tell the owner exactly what to do (which app, which button, what to paste back), wait, then verify it yourself.
After each step, give a 2–3 line summary and append it to ~/ai-server/BUILD-LOG.md (date, what changed, how it was verified).
How to build
Keep every config file, systemd unit and script in ~/ai-server as a git repo, so the setup can be rebuilt. Commit after each step.
Check the official docs before installing each tool. Hermes, hermes-webui, Hermex and T3 Code change quickly; where this doc's commands differ from current docs, follow the docs and note it in the log.
Long-running things are systemd services with Restart=always, start at boot, and need no one signed in.
Prefer official packages and repositories. Pin nothing unless a tool requires it.
Security rules (never break these)
Nothing listens on the public internet. Services bind to 127.0.0.1 or the Tailscale interface; HTTPS goes through tailscale serve. Never use Tailscale Funnel.
The firewall (UFW) denies all incoming traffic except on tailscale0. Before changing firewall rules, confirm SSH over Tailscale will keep working.
Secrets live only in 1Password, in the AI-Agents vault. Agents get them at runtime via op run and op:// references. The only secret on disk is the service-account token (mode 600).
Never print, log or commit a secret. Never put one in a URL, command-line argument or git repo.
Sudo is open without a password only during the build; step B9 removes it.
If something would expose a port, weaken a security setting, or delete data, ask the owner first.
B0 — Check the owner's Part A work
Run every check below before changing anything, then show the owner a pass/fix list. Fix what you can; for anything only the owner can change (BIOS, Tailscale console), give them exact steps and check again afterwards.
Check
Command
Pass when
If not
Ubuntu version
lsb_release -d
Ubuntu 26.04.1 LTS
Tell owner; continue only if it's 26.04.x
Usable RAM
free -g
About 28 GB or more
Owner sets BIOS GPU memory to Auto or 1 GB
Disk size
df -h / and sudo vgs
Root uses nearly all of the 1 TB disk
Installer often leaves LVM space free: sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv (explain first)
Hostname
hostnamectl
ai-server
sudo hostnamectl set-hostname ai-server
SSH
systemctl is-active ssh
active
sudo apt install -y openssh-server
Tailscale up
tailscale status and tailscale ip -4
Connected, has a 100.x address
Owner re-runs sudo tailscale up --ssh
Tailscale SSH
tailscale debug prefs | grep -i runssh
RunSSH: true
sudo tailscale set --ssh
MagicDNS
tailscale dns status
MagicDNS enabled
Owner turns it on in the admin console
Key expiry
(console only)
Owner confirms "Disable key expiry" is set
Owner does Part A step 6
Time sync
timedatectl
System clock synchronized: yes
sudo timedatectl set-ntp true
Temporary sudo
sudo -n true && echo ok
ok
Owner does Part A step 8
Network
ip -br a and ping -c2 1.1.1.1
Ethernet up, internet reachable
Help owner with cable or Wi-Fi (netplan)
Claude Code
claude --version
Prints a version
— (you're running)
Updates
sudo apt update
Runs without errors
Fix sources before going on
When everything passes: create ~/ai-server with git init, write the results as the first entry in BUILD-LOG.md, and commit.
B1–B9 — Build steps for Claude Code
B1 — Base system and firewall
sudo apt full-upgrade -y; install git curl jq unzip htop tmux build-essential ca-certificates.
Set the timezone (ask the owner which).
Never sleep: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target.
Turn on unattended-upgrades for security updates, with automatic reboot at 04:00 if needed (confirm the time with the owner).
UFW: allow OpenSSH and all traffic in on tailscale0 first, then default deny incoming, then enable it.
Done when: sudo ufw status verbose shows deny-incoming plus the tailscale0 rule, and a fresh SSH session over Tailscale still connects.
B2 — 1Password
Install the op CLI from 1Password's official apt repository (follow their current Linux instructions).
Owner checkpoint: create the AI-Agents vault and a read-only service account for it only, then paste the token into the server (see Owner checkpoints).
Store the token in ~/.config/op/service-account-token (mode 600). Make ~/ai-server/bin/with-secrets <env-file> -- <command>, which exports OP_SERVICE_ACCOUNT_TOKEN from that file and runs op run.
Keep one env file per service in ~/ai-server/env/, holding only op://AI-Agents/... references, never values.
Done when: op vault list shows only AI-Agents, and with-secrets can start a test command that sees a secret, without printing it.
B3 — Cockpit
sudo apt install -y cockpit. It listens on port 9090; UFW limits it to Tailscale.
Owner checkpoint: owner opens https://ai-server:9090 and signs in with their Ubuntu username and password (approving the self-signed certificate warning).
Show them where Services, Logs, Terminal and Reboot are.
Done when: the owner can see the services list in Cockpit.
B4 — Hermes Agent, hermes-webui and Hermex
Install Hermes with the official installer: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash.
Model access: a Claude subscription does not cover Hermes. Check whether Hermes offers a browser sign-in (for example Nous Portal) that avoids an API key. If not, owner checkpoint: save an API key (e.g. OpenRouter) in the AI-Agents vault and reference it from env/hermes.env. Make sure no key ends up in ~/.hermes/.env.
Install hermes-webui (the server the Hermex iPhone app needs) from its official repository. Bind it to 127.0.0.1, protect it with a password stored in 1Password, and publish it privately over HTTPS with tailscale serve.
Owner checkpoint: install Hermex from the App Store, turn Tailscale on on the iPhone, and add the server URL and password.
Done when: a message sent from Hermex gets a reply from Hermes.
B5 — T3 Code
Install Node.js 22.16 or newer (NodeSource or nvm).
Confirm Claude Code works for the account T3 Code will run as. Ask the owner whether they also want Codex CLI.
Install the T3 Code server following the current docs/user/remote-access.md in the pingdotgg/t3code repo. Expected shape: npx t3 serve --host "$(tailscale ip -4)", which prints a one-time pairing token.
Owner checkpoint: owner pairs T3 Code on their laptop or browser using the token.
Done when: the owner runs a small coding task from T3 Code on their laptop.
B6 — Services that survive crashes and reboots
systemd units for the Hermes gateway (if used), hermes-webui and T3 Code. Each: After=network-online.target tailscaled.service, Restart=always, RestartSec=5, an ExecStart that goes through with-secrets, enabled at boot.
Use system units with User=<owner>, or user units plus loginctl enable-linger. Pick one approach and use it everywhere.
Save each unit in ~/ai-server/systemd/ and link it into place.
Done when: after sudo reboot, every service is active with no one signed in, systemctl --failed is empty, and Hermex and T3 Code reconnect.
B7 — Blender, plus an optional desktop
Install the current Blender LTS (the official blender.org tarball in /opt/blender, or the snap), plus xvfb.
Check headless rendering: render a test scene to PNG with blender -b --python <script> and look at the image.
Blender MCP: install the add-on and MCP server from the official blender-mcp project. Make a blender-xvfb service (Blender on a virtual screen with the add-on running) that starts on demand, not at boot, and register the MCP server with Claude Code.
Owner checkpoint (optional): ask whether they want a desktop over RDP. If yes: sudo apt install -y xfce4 xfce4-goodies xrdp, run echo xfce4-session > ~/.xsession, and keep port 3389 Tailscale-only. The owner tests by connecting to ai-server with the Windows App.
Done when: the test render works, and Claude can create an object through Blender MCP.
B8 — Monitoring and alerts
Install Uptime Kuma (Docker is simplest; if you install Docker, keep its published ports bound to 127.0.0.1, because Docker can bypass UFW). Publish it privately with tailscale serve.
Add monitors for hermes-webui, T3 Code, Cockpit, and disk space.
Owner checkpoint: owner chooses how alerts reach their phone (the ntfy app is simple and open source) and receives a test alert.
Done when: stopping one service sends a phone alert within 2 minutes, and starting it again sends a recovery alert.
B9 — Finish and hand over
Write ~/CHEATSHEET.md in plain English: every web address, then "if X stops working → open Cockpit → Services → restart Y", how to reboot, how to update, and what to say to Claude Code for anything else. Also save it in 1Password as a Secure Note.
Search for plaintext secrets (~/.hermes, ~/ai-server, shell history, /etc) and remove any you find.
Remove the temporary sudo rule: sudo rm /etc/sudoers.d/90-build-temp.
Do a final reboot test, commit ~/ai-server, and summarize the build in BUILD-LOG.md.
Done when: every box in the final checklist below is ticked.
Owner checkpoints
These are the only times Claude Code stops and waits for you during Part B. Everything else it does on its own, explaining as it goes.
Step
What you do
Where
B0
Fix anything the checks flag that only you can change (BIOS, Tailscale console)
Server's screen / Tailscale website
B1
Choose your timezone and the reboot time for updates
Tell Claude
B2
Create the AI-Agents vault. Create a service account (Developer → Service Accounts) with read-only access to that vault only. Paste its token where Claude tells you.
1Password.com
B3
Open Cockpit and sign in with your Ubuntu password
Laptop browser
B4
If needed, save a model API key in AI-Agents. Install Hermex, turn Tailscale on, enter the server URL and password.
1Password app, iPhone
B5
Pair T3 Code with the one-time token
Laptop
B7
Say whether you want a desktop over RDP; if yes, test connecting
Tell Claude / Windows App
B8
Pick how alerts reach you and confirm the test alert arrived
Phone
B9
Read CHEATSHEET.md and ask about anything unclear
Claude Code
Never paste a secret into the chat with Claude. For the B2 token, Claude gives you a command to run in a separate SSH window: it asks for the token without showing it and saves it to the file.
Final checklist
The build is done when every box is ticked. Claude Code ticks the boxes it can test; the owner ticks the ones marked (owner).
After a reboot, with no one signed in, every service comes back and systemctl --failed is empty
Hermex on the iPhone chats with Hermes over Tailscale (owner)
T3 Code on the laptop runs a task on the server (owner)
Cockpit opens from the laptop and can restart a service (owner)
Stopping a service sends a phone alert; restarting it sends a recovery alert (owner)
Blender renders headless, and Blender MCP works from Claude Code
From outside Tailscale, no port on the server answers
No plaintext secrets on disk except the service-account token (mode 600)
Temporary sudo rule removed
CHEATSHEET.md written, saved in 1Password, and read by the owner (owner)
~/ai-server committed, and BUILD-LOG.md complete
Known uncertainties (Claude Code checks current docs for these)
Hermes model access: Hermes probably needs its own API key or a Nous Portal sign-in; the Claude subscription covers Claude Code and T3 Code only.
Hermex is a third-party app and needs hermes-webui, a separate project. Its setup steps may have changed.
T3 Code remote-access commands differ between sources. Follow docs/user/remote-access.md in the official repo.
Blender on Xvfb draws its live view on the CPU, so the viewport is slower; final renders and MCP commands work normally.
Ubuntu's installer often uses only part of the disk under LVM; B0 checks and fixes this.