← All setups

Documented build

Mac mini M4 (16GB) personal RAG assistant reachable from your phone

AnythingLLM + Ollama (llama3.1:8b) on a Mac mini M4, exposed through a Cloudflare Tunnel protected by Cloudflare Access, queried from Telegram via n8n.

SoloDocument search / chat with filesUnder $1kSensitivity: Standard

Hardware

ItemApprox. price (as of 2026-10-16)
Apple Mac mini (M4, 16GB RAM, 256GB)Not stated in source
Apple Mac mini M4 (16GB, 256GB) (Best Buy, related current price)$599.00

Source prices are as stated by the source. Retailer offers: prices checked 2026-10-16, may change. Some links may be affiliate links; we may earn a commission at no extra cost to you. This never changes what we list.

Software stack

  • Ollama
  • AnythingLLM
  • LanceDB
  • Cloudflare Tunnel + Access
  • n8n (hosted on Hostinger)
  • Telegram

Models used

  • llama3.1:8b

Good at

  • Responses in 3-8 seconds
  • 'Costs nothing beyond electricity' (per author)
  • Usable from a phone

Weak at

  • Queries pass through Telegram, a hosted n8n and Cloudflare - not fully offline

Rough total cost

Hardware price not stated; author reports no running cost beyond electricity (n8n hosting aside).

Getting started

  1. Install Ollama and pull llama3.1:8b.
  2. Install AnythingLLM, point it at Ollama, create a workspace and drag in files.
  3. cloudflared tunnel create rag-tunnel; route your domain to localhost:3001.
  4. Add a Cloudflare Access service-token policy so only your automation can call it.
  5. Connect n8n + Telegram bot to the AnythingLLM API.

Source & credit

Building a personal RAG assistant you can actually use — Ovidiu Eftimie (Substack)

Summarized from the source; quotes are the source author's words. Check the original before buying.

Get new tested setups monthly

One email a month with new real-world builds. No spam.