Localhaven

Chapter 1 · free · 15 min

What you will build - and the 10 safety rules

By the end of this course you have your own private home AI assistant: you talk to it at home, you message it from your phone when you are out, it answers from a language model that runs on your own hardware, and it can do useful things - but only the things you allowed, and the risky ones only after you tap OK.

This first chapter needs no hardware and no typing. It is the map. Every later chapter builds one piece of it.

The picture

The private home AI in one picture: voice and phone go into the assistant core; it answers with the local language model or asks the tool gateway, which only runs allowed tools and asks you before risky ones.

The parts, in plain words

The 10 safety rules

These are the rules our own system runs by. Every chapter follows them; if a step breaks one, it is a bug.

  1. Nothing is exposed to the internet. No port forwarding. Remote access goes through a private VPN link or an outgoing chat-bot connection.
  2. The model never gets a shell. It can only request named tools through the gateway. No "run any command".
  3. Allowlist, not blocklist. Every tool is listed with what it may do. Anything not listed is refused.
  4. Risky actions need your OK - for that exact action. Single-use, expiring, bound to the exact arguments. If the arguments change, the OK is void.
  5. Least privilege everywhere. Each container runs as its own user, without sudo, without the Docker socket, and only on the networks it needs.
  6. Secrets are encrypted, split per service, and never printed - not in git, not in logs, not in chat.
  7. Everything important is logged (who asked, which tool, what happened) - without secrets.
  8. Backups are only real after a restore drill. Test a real restore every few months.
  9. Change one thing at a time, write it down, and prove the system still starts cleanly after a reboot.
  10. Keep a manual fallback. Lights, locks and heating must still work if the assistant is off.

What you need before chapter 2

What this course is not

Next (free): Chapter 2 - Plan it: hardware, memory, power and what one small box can really do.