A single 16GB stick of laptop memory costs £130 to £180 new in the UK at the moment. For about £220, charger included, I bought a whole used ThinkPad T14 with 32GB of RAM, wiped it, and turned it into a box that runs my Claude Code sessions around the clock with the lid shut.
This post covers why I needed it, the options I priced before landing on a second-hand laptop, and every step of the setup, from the install to the settings that let a laptop live as a server. If your own machine is struggling under AI coding agents, you can copy the whole thing.
Why my MacBook was struggling
My MacBook Pro had started to slow down, so before spending money I pulled 30 days of my Claude Code session history to see what I was actually asking of it.
On a median day, about 6 Claude sessions were actively working at the same time. Busy days hit 11, and the peak was 19. At most 3 of those were driving a browser at once.
Those numbers changed what I was shopping for. Claude Code does its thinking in the cloud, so the model itself never touches my hardware. What runs locally is everything around it: terminals, git, builds, dev servers and the occasional headless browser. Each of those is cheap on its own and adds up fast when a dozen sessions each have their own, which makes RAM far more important than raw CPU for this kind of work.
That would have been good news if RAM weren't so expensive right now.
The options I weighed
I priced six routes in November 2026, all UK prices from eBay and Amazon.
- Raspberry Pi 5: 16GB maximum, four slower cores, and it needs add-ons.
- Bare ThinkPad P14s motherboard, £70 for the board: the RTX version has 16GB soldered on with no slot to add more.
- ThinkPad T14 Gen 4 motherboard build, about £387 for 32GB: a cheap board, then RAM, fan, SSD, charger and case each add up.
- Erying laptop-chip desktop board, about £450 to £550 all in: no UK warranty.
- Lenovo M720q mini PC (i7, 32GB, 480GB SSD), £370: the sensible choice, with a one-year warranty.
- Used ThinkPad T14 Gen 1 (i7, 32GB, 512GB SSD), £190 plus postage: the winner.
The DIY routes all failed the same way. The motherboard looked like a bargain, then every part I added to make it usable pushed the total up, and most of those parts were things a laptop already has. A whole used laptop arrives with RAM, an SSD, a fan, a charging port, a case, a screen and a keyboard, plus a battery that rides out power cuts, which no mini PC offers.
The trade-off against the mini PC is real. The T14's i7-10610U has 4 cores and 8 threads, so my estimate is that it handles around 8 to 10 sessions comfortably where the M720q would manage 12 to 15. It also came from a private seller with no warranty. For about £150 less, that was a trade I was happy to make, and my median day sits well inside it.
What to buy
If you're shopping for your own, here's what I'd look for:
- 32GB of RAM, already fitted. Check whether the model has soldered memory before assuming you can upgrade later. The P14s board above is a good example of how that catches you out.
- Cosmetic grade doesn't matter. Mine was Grade B with faint screen marks, which stop mattering the moment you close the lid.
- Budget for a charger. Private sellers often leave it out. Mine did.
Here's what it actually cost:
- ThinkPad T14 Gen 1, i7-10610U, 32GB, 512GB SSD (eBay, private seller): £190.00
- Postage: £3.50
- Anker Nano II 65W charger: £17.99
- Anker 60W USB-C cables (two-pack): £9.49
- Total: £220.98
Step 1: Install Ubuntu instead of keeping Windows
I installed Ubuntu 24.04 Desktop from a USB stick and wiped Windows. Ubuntu is free to download from ubuntu.com, and 26.04 LTS is the current release if you're starting today. The Windows licence on these laptops is stored in the firmware, so Windows can come back later if you ever sell it on.
The reasons were practical. Windows idles at 3 to 4GB of RAM before you've opened anything, it runs Docker and Claude Code through a virtual machine, and it force-restarts for updates, which is the last thing you want from a box nobody is watching.
The install was where most of my surprises lived:
- Secure Boot had to be turned off in the ThinkPad's BIOS before it would boot the installer.
- Windows fast boot ignored the F12 boot menu. The way round it is to hold Shift while clicking Restart in Windows, then choose 'Use a device'.
- I booted the wrong USB stick. I had two identical ones in the drawer. Label them.
- My EE router couldn't resolve ubuntu.com, which broke the installer's downloads. Pointing the laptop at Cloudflare's DNS fixed it. On the finished system that lives in a small systemd-resolved drop-in:
# /etc/systemd/resolved.conf.d/dns.conf
[Resolve]
DNS=1.1.1.1 8.8.8.8
Domains=~.- The laptop has a US keyboard, but Ubuntu installed a UK layout, so pressing backslash typed a hash. Worth checking the layout screen in the installer if your keyboard isn't a UK one.
Step 2: One setup script for the toolchain
Rather than installing tools one at a time, I wrote a single script that installs everything and then checks that every tool answers. Run it as your normal user; it calls where needed. Trimmed to its core:
#!/usr/bin/env bash
set -euo pipefail
# System packages
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y build-essential curl git unzip jq tmux ca-certificates \
openssh-server ripgrep ffmpeg postgresql-client gh docker.io docker-compose-v2 snapd
sudo usermod -aG docker "$USER"
# Browser for agents
sudo snap install chromium
# Node 22 + pnpm via nvm, same as the Mac
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
. "$HOME/.nvm/nvm.sh"
nvm install 22 && nvm alias default 22
corepack enable pnpm
# Python (uv), Bun, Railway CLI
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -fsSL https://bun.sh/install | bash
npm install -g @railway/cli
# Claude Code and Tailscale
curl -fsSL https://claude.ai/install.sh | bash
curl -fsSL https://tailscale.com/install.sh | sh
# Check every tool answers
for t in git gh rg docker node pnpm uv bun railway claude tailscale; do
command -v "$t" >/dev/null && echo "ok $t" || echo "MISSING $t"
doneThe Vercel CLI went on separately with , and Playwright's browser dependencies came in with the sign-in step below. If you deploy to Railway, I've written up the patterns that cut our Railway bill; the CLI is what makes those practical from a headless box.
Step 3: Remote access with Tailscale
The laptop needs to be reachable from my Mac wherever I am, without opening ports on the router. Tailscale does that for free on a personal plan, and Tailscale SSH means I'm not managing SSH keys either. After a reboot:
sudo tailscale up --sshOne warning: Tailscale and Twingate both turn up when you search for this, and I nearly signed up for the wrong one.
On the Mac, I added a one-word command, , that opens a tmux session on the laptop. Because the session lives on the laptop, closing the Mac or dropping Wi-Fi doesn't kill whatever Claude is doing. The shape of it is an alias along these lines:
alias t14='ssh -t t14 "tmux new -A -s main"'Step 4: Move your Claude Code setup across
This is what made the laptop feel like an extension of my Mac rather than a second computer to maintain.
Claude Code's configuration. My whole setup (global instructions, settings, hooks, skills, agents and plugins) lives in , so I copied it across with rsync and rewrote home paths from to , because macOS and Linux keep home folders in different places. Something like:
# On the Mac
rsync -av ~/.claude/ t14:~/.claude/
# On the laptop: point any absolute paths at the new home folder
grep -rl "/Users/you" ~/.claude | xargs sed -i 's#/Users/you#/home/you#g'Repositories. I cloned my 14 active repos and copied each one's file across.
Sign-ins without typing on the laptop. GitHub, Railway, Vercel and Claude all support device-code login: the CLI prints a link and a code, and you open it on another machine. I wrapped them in one script so I could run it over SSH and approve everything on the Mac:
sudo env PATH="$PATH" npx -y playwright@latest install-deps chromium
gh auth login -h github.com -p https -w && gh auth setup-git
railway login --browserless
vercel login
claude # sign in, then /exitMCP servers. These need re-adding on the new machine. Railway and Playwright connected straight away; the OAuth-based ones need a one-time sign-in each. If you're curious why browser automation matters for agents, I've covered how Vercel's agent browser compares.
Step 5: Make the laptop behave like a server
Three settings turn a laptop into something you can shut in a cupboard and forget about.
Cap the battery at 80%. Lithium batteries wear fastest when they're held at full charge, and Battery University is blunt about it: keeping a cell at a high charge voltage stresses it. A laptop that's plugged in all day sits at 100% forever unless you stop it. TLP handles that on ThinkPads:
sudo apt-get install -y tlp
printf 'START_CHARGE_THRESH_BAT0=75\nSTOP_CHARGE_THRESH_BAT0=80\n' \
| sudo tee /etc/tlp.d/90-battery.conf
sudo systemctl enable --now tlpIt now starts charging at 75% and stops at 80%, which leaves plenty in reserve for a power cut.
Keep running with the lid shut. By default, closing the lid suspends the machine. A logind drop-in tells it to ignore the lid in every situation:
sudo mkdir -p /etc/systemd/logind.conf.d
printf '[Login]\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\nHandleLidSwitchDocked=ignore\n' \
| sudo tee /etc/systemd/logind.conf.d/lid.confTurn off automatic sleep. Ubuntu's desktop will still nap after a period of inactivity, on mains and on battery:
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'If the battery ever does run critically low during a long outage, UPower saves state and powers down safely rather than dying mid-write.
Step 6: Keep an eye on it
Since the laptop has no visible screen, I added a command on the Mac that reports CPU load, memory, disk, battery, temperature and how many Claude sessions are running. refreshes it live.
At idle it uses about 1.6GB of its 30GB of usable RAM, with the CPU sitting around 39C.
Living with it
Day to day, the laptop has disappeared into the background in the best way. In any Claude session on my Mac I can say 'build this on T14' and the work runs there instead. My Claude Code instructions tell it to check first and hold off on new builds if the laptop is already busy.
My autonomous build pipeline also has an always-on watcher installed on the laptop. I've deliberately left it switched off for now, because I'd rather direct builds by hand until I trust the setup more.
Running costs are about the same as leaving a phone charger plugged in at idle, roughly £1 to £2 a month.
Is this worth doing?
If AI coding agents are slowing your machine down, count how many sessions you actually run before you price an upgrade. For me the answer was RAM, not processing power, and buying RAM on its own is expensive right now. A used business laptop turned out to be the cheapest way to get 32GB with a computer attached, plus a battery that acts as a free UPS.
It isn't for everyone. If you need more than about 10 heavy sessions or want a warranty, the £370 mini PC is the better buy. For a sole operator running a handful of agents in parallel, £220 bought an always-on machine that takes that load off the Mac.
If you're working out how agents and automations fit into your own business, get in touch.



