Barnaby: Self-hosted Matrix agent that reads the room Developer Paul Kulak released Barnaby, a self-hosted Matrix chat server and AI agent that deploys from a domain, an SSH key, and an OpenRouter API key via one command. Barnaby Home bundles the tuwunel homeserver, Element at chat., LiveKit for voice and video calls, and Let's Encrypt certificates, while the Barnaby agent runs in a sandboxed NixOS container, reads the whole room rather than requiring @-mentions, and can write auditable new skills stored in git. The stack requires an x86_64 Linux machine with at least 2 GB of RAM and 20 GB of disk, runs in about 450 MB, and has so far been tested only on an AWS EC2 t3.small. A private group chat for your family or friends, with an AI agent that fits into it. One script turns a spare computer or a VPS into a complete Matrix server: Element chat, encrypted rooms, voice and video calls. A Barnaby https://github.com/pkulak/barnaby agent lives in the main room. The agent. Most chat bots want to be @-mentioned or talked to one-on-one. Barnaby reads the whole room, and a tiny decision model picks out the messages meant for it, so people talk normally and it chimes in when someone's talking to it. It remembers past conversations, and with just the OpenRouter key it can draw images, read voice messages, follow games, and write itself new skills when someone asks. The chat server. Self-hosting Matrix usually means wiring up a homeserver, a web client, certificates for several subdomains, TURN and LiveKit for calls, and some way to handle invites. Barnaby Home does all of it from a domain, an SSH key, and an OpenRouter key. You need Docker on your computer, not Nix experience. - The stack: tuwunel https://github.com/matrix-construct/tuwunel as the server, Element https://element.io at chat.