HardwareMemory

How much RAM a self-hosted AI agent needs: cloud model or local

Memory decides what you can run, more than the processor does. An agent that calls a cloud model needs little; a local model has to fit in memory next to it. No agent project publishes a minimum, so the sizing below is ours, an estimate, and labelled as one.

In short: with a cloud model, 8 GB for OpenClaw or Hermes Agent, 16 GB with the browser tool or several Docker containers. Add about 8 GB for a 7-8B local model, about 48 GB for a 70B model. Memory on a Raspberry Pi or a Mac mini cannot be added later: buy the size you will need.

By agent: cloud model, 7B or 70B

AgentCloud model: minimum / comfortablePlus a 7-8B modelPlus a 70B modelMachine the picker gives
Hermes Agent4 GB / 8 GB16 GB56 GBRaspberry Pi 5, 8 GB
OpenClaw2 GB / 8 GB16 GB56 GBRaspberry Pi 5, 8 GB
Nanobot1 GB / 4 GB12 GB52 GBRaspberry Pi 5, 4 GB
NanoClaw4 GB / 16 GB24 GB64 GBRaspberry Pi 5, 16 GB
IronClaw2 GB / 4 GB12 GB52 GBRaspberry Pi 5, 4 GB
ZeroClaw512 MB / 2 GB10 GB50 GBRaspberry Pi 5, 2 GB

Our sizing, not a measurement. Why each figure is what it is:

  • Hermes Agent: 8 GB without the browser tool; plan 16 GB if you turn on the Chromium browser tool, which is what gets a Pi 5 8 GB swapping.
  • OpenClaw: The gateway alone runs in 2 to 4 GB with swap (the project's Pi page); with a Docker sandbox beside it, 8 GB leaves room for both.
  • Nanobot: A Python process calling a cloud model: small. Its docs state no minimum.
  • NanoClaw: One container per agent group, plus Docker itself: 16 GB if you run more than one group.
  • IronClaw: A single Rust binary; add 4 GB more if jobs run in Docker containers.
  • ZeroClaw: The smallest footprint of the agents followed here; its Raspberry Pi doc says there is no meaningful memory floor for the runtime.
  • a 7-8B model next to the agent: A 7B model at 4-bit is a 4 to 5 GB download in the Ollama library; we add 8 GB to leave room for its context.
  • a 70B model: Llama 3.3 70B at 4-bit is a 43 GB file: 64 GB of fast unified memory is where it fits with room to spare.

Moltworker needs no memory of yours: it runs on Cloudflare. For a local model with the agent, the picker answer changes: see Hermes Agent with a 7B model or OpenClaw with a 70B model.

How big the models are

A quantised model has to sit in memory next to its context, the operating system and the agent. The download size is the floor. Sizes of the 4-bit (Q4_K_M) builds in the Ollama library:

ModelOllama tagDownload
Llama 3.2 1Bllama3.2:1b-instruct-q4_K_M808 MB
Qwen 2.5 3Bqwen2.5:3b-instruct-q4_K_M1.9 GB
Mistral 7Bmistral:7b-instruct-q4_K_M4.4 GB
Llama 3.1 8Bllama3.1:8b-instruct-q4_K_M4.9 GB
Mistral Small 22Bmistral-small:22b-instruct-2409-q4_K_M13 GB
Qwen 2.5 32Bqwen2.5:32b-instruct-q4_K_M20 GB
Llama 3.3 70Bllama3.3:70b-instruct-q4_K_M43 GB

On a Raspberry Pi 5, the Slips project saw llama3.2:3b use 4.7 GB of memory: a 3B model wants the 8 GB board. Llama 3.3 70B at 43 GB does not load on a 24 GB Mac mini M4 Pro, and leaves about 5 GB at 48 GB; 64 GB is the size that leaves room. Speeds per machine are in local LLM benchmarks.

Can you add memory later?

MachineMemory soldAdd later?Shop
Raspberry Pi 51 / 2 / 4 / 8 / 16 GB LPDDR4XNo: the memory is on the board. Choose 8 or 16 GB at purchase.Raspberry Pi 5 · Raspberry Pi 5, 16 GB
Mac Mini M4 / M4 Pro16 / 24 / 32 / 48 / 64 GB unified memoryNo: unified memory is configured when you order. Take 24 GB or more for local models, 64 GB (M4 Pro) for 70B.Mac mini M4
Intel NUC 13 and Geekom IT1316 / 32 / 64 GB DDR4 / DDR5Yes: two SO-DIMM slots. Check DDR4 or DDR5 for your exact model before ordering.DDR4 SO-DIMM kit · DDR5 SO-DIMM kit
Minisforum UM790 Pro16 / 32 / 64 GB DDR5Yes: DDR5 SO-DIMMs, up to 64 GB.DDR5 SO-DIMM kit
Lenovo ThinkCentre M75q (used)8 / 16 / 32 GB DDR4Yes: DDR4 SO-DIMMs. Refurbished units often ship with 8 GB.DDR4 SO-DIMM kit

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.

When the memory runs out

Linux starts swapping to storage, and an agent that answered in seconds takes much longer. On a microSD card that also wears the card. If free -h shows swap in use while the agent works, either turn off the heavy tool (the browser tool is the usual one) or move to the next size. On a Pi, that means a new board; on a mini PC, a memory kit.

For most readers: an agent with a cloud model fits on a Raspberry Pi 5 with 8 GB, 16 GB with the browser tool. The full parts list.
Buy the Raspberry Pi 5 on Amazon

Sources