HardwareMachines and platforms

An old laptop as an AI agent server: what works and what to change

An old laptop is the cheapest agent host there is: you own it already, it has a screen for the first setup, and its battery rides through short power cuts. Four things decide whether it works: a 64-bit processor, enough memory, a disk that is still healthy, and two settings so it neither sleeps when the lid closes nor sits at full charge all year.

In short: Any 64-bit laptop with 8 GB of memory can host OpenClaw or Hermes Agent with a cloud model; with 4 GB, stick to ZeroClaw, Nanobot or IronClaw. Install Linux, tell logind to ignore the lid, cap the battery charge if the hardware allows it, and check the disk with smartctl before trusting it.

At a glance
Processor64-bit (x86_64) needed: OpenClaw runs on Node 24.16.0 or later, which has no 32-bit ARM build; Hermes Agent lists x86_64 and aarch64
Memory4 GB for the light agents, 8 GB for OpenClaw or Hermes Agent, 16 GB for the browser tool or NanoClaw (our estimate)
LidHandleLidSwitch defaults to suspend; set it to ignore
Batterycharge_control_end_threshold in the kernel, or TLP's START and STOP thresholds
Disksmartctl from smartmontools: health status and full SMART data

Will it run the agent? Processor and memory

OpenClaw's install docs ask for "Node 24.16.0+ on 24.x, or 26.1.0+", and its Raspberry Pi page asks for a 64-bit OS; Node has no official 32-bit ARM builds for these lines. Hermes Agent supports Linux on "x86_64, aarch64". On a laptop, that means a 64-bit processor and a 64-bit Linux install. Check what you have:

uname -m
free -h

uname -m should print x86_64. free -h (the check OpenClaw's docs give for memory and swap) shows the total memory and whether swap is on. Then compare with our estimate for each agent, with a cloud model:

Agent4 GB8 GB16 GB
ZeroClawFitsFitsFits
NanobotFitsFitsFits
IronClawFits, without Docker jobsFitsFits
OpenClawGateway only, no room for the sandboxFits, with the Docker sandboxFits
Hermes AgentAt the floor, tightFits, browser tool offFits, browser tool on
NanoClawAt the installer's warning lineOne agent groupSeveral groups

Estimate from our sizing per agent (memory by agent), not a measurement. NanoClaw's installer warns below 3,700 MB, and a 4 GB machine often reports a little less than that after the kernel's reserve.

Some laptops take SO-DIMM modules and can be upgraded, but the memory type (DDR3, DDR4, DDR5) and whether the memory is soldered depend on the model: check your laptop's manual first. If it takes DDR4, a DDR4 SO-DIMM kit on Amazon is the usual upgrade; match the speed and the maximum your model supports.

Keep it running with the lid shut

systemd-logind decides what a closed lid does. Per its man page, HandleLidSwitch="defaults to "suspend"", which stops the agent. HandleLidSwitchExternalPower=applies when the laptop is on mains, but it "is completely ignored by default (for backwards compatibility)": "an explicit value must be set before it will be used". A third setting, HandleLidSwitchDocked=, defaults to ignore and applies when the laptop is docked or has more than one display.

For a server, set both to ignore, one of the values the man page accepts. The settings live in the [Login] section of /etc/systemd/logind.conf, or in a drop-in file under /etc/systemd/logind.conf.d/. For example, a file /etc/systemd/logind.conf.d/lid.conf containing:

[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

Then restart logind or reboot so the setting takes effect; a reboot is the simple choice. Close the lid and check from another machine that the laptop still answers.

Cap the battery charge

A laptop on mains all year sits at full charge. Linux exposes a charge limit on hardware that supports one (for hardware with a single fixed limit, the kernel names that mode "Long Life"). The kernel's ABI documentation describes /sys/class/power_supply/<supply_name>/charge_control_end_threshold as "a battery percentage level, above which charging will stop" (values 0 to 100), and charge_control_start_threshold as the level "below which charging will begin". It warns that "not all hardware is capable of setting this to an arbitrary value": drivers round to the nearest supported value, and hardware with a single fixed limit uses charge_types with "Long Life" instead. List /sys/class/power_supply/ to find your battery's name; if the files are not there, your laptop or its driver does not offer the setting.

TLP, the laptop power tool, sets the same limits at every boot. Its documentation gives the example values START_CHARGE_THRESH_BAT0=75 and STOP_CHARGE_THRESH_BAT0=80, notes that nothing is set by default, and is firm on one rule: "You must always specify both charge thresholds, start and stop, for a battery, otherwise TLP will reject both thresholds." Availability and values "always depend on laptop vendor or brand, Linux kernel version and TLP version".

Check the disk before you trust it

An old laptop's weakest part is often its drive. smartctl, from the smartmontools package, reads the drive's own health record. Its man page: -H "prints the health status of the device", -a "prints all SMART information about the device". Replace /dev/sda with your drive:

sudo smartctl -H /dev/sda
sudo smartctl -a /dev/sda

If the health check fails, or the laptop still has a spinning disk, move the system to an SSD. When the internal bay is awkward, a USB 3 SSD on Amazon is the simple fix, the same advice OpenClaw gives for small boards ("SD cards are slow and wear out").

Battery as a UPS, and the power bill

A working battery acts as a built-in UPS: when the power drops, the laptop keeps running and the agent keeps its state. How long depends on the battery's age and the load; we have no figure to give, and a worn battery may last only minutes. Capping the charge as above leaves less in reserve: pick the threshold with that in mind.

Laptop makers publish no idle figure at the wall for old models. A plug-in power meter on Amazon tells you what yours draws; put that figure into the power cost calculator to see the yearly cost against a small box. If the laptop is too old or too thirsty, a refurbished mini PC such as the ThinkCentre M75q is the next cheapest step, and Raspberry Pi 5 vs Intel N100 covers the new options.

What to buy

  • USB 3 SSD: to replace a worn or spinning disk without opening the laptop.
  • DDR4 SO-DIMM kit: only if your model takes DDR4 SO-DIMM and is not soldered: check the manual first.
  • Plug-in power meter: to measure what the laptop really draws before you leave it on all year.

Shop links go through /go/ and open Amazon (amazon.fr in the EU and Switzerland, amazon.com elsewhere). As an Amazon Associate we earn from qualifying purchases. Your price does not change and no brand pays for a place on this page (disclosure). We write no price down: it moves, the shop shows today's.

Questions

Can an old laptop run OpenClaw?
Yes, if it has a 64-bit processor and a 64-bit Linux install: OpenClaw needs Node 24.16.0 or later on the 24 line, or 26.1.0 or later. With 8 GB of memory there is room for its Docker sandbox, by our estimate.
How do I stop a Linux laptop from sleeping when I close the lid?
Set HandleLidSwitch=ignore and HandleLidSwitchExternalPower=ignore in the [Login] section of logind's configuration (a drop-in under /etc/systemd/logind.conf.d/), then reboot. The external power setting is ignored until you give it a value.
Is it bad to keep a laptop plugged in all the time?
If your hardware supports it, cap the charge with the kernel's charge_control_end_threshold or with TLP's START and STOP thresholds (both must be set).
How much RAM does an old laptop need for an AI agent?
Our estimate: 4 GB for ZeroClaw, Nanobot or IronClaw; 8 GB for OpenClaw with its sandbox or Hermes Agent without the browser tool; 16 GB for the browser tool or several NanoClaw groups.
Can an old laptop run a local model?
Not usefully, in most cases. Even recent low-power chips are slow on a 7B model (the Intel N150 writes 2.93 tokens per second on llama.cpp's Vulkan scoreboard). Use a cloud model.

Sources