Skip to main content
Glama
README.md
# Vestibule

**You decide what your AI agents know about your home.**

Vestibule sits between your home's cameras and the AI agents you use, such as Hermes, Claude or any
MCP client. Everything your cameras see is processed on a computer in your home, and each agent gets
only what you choose to share with it. You can see every request, and take access back at any time.

<picture>
  <source srcset="docs/assets/app-home-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-home.webp" width="1600" alt="The Vestibule app: rooms with people and pets, quick confirmations, routine insights and today's changes.">
</picture>

## Why

Agents are getting useful around the house: "is anyone home?", "where did I leave my keys?", "did the
package arrive?", "has the dog eaten?". To help, they need to know what's going on at home. Today that
usually means handing a cloud service your camera feeds and trusting it with everything they show.

Vestibule puts you in charge of that instead. A vestibule is the small room between the front door and
the rest of the house, where visitors wait. Agents ask at the door, and you decide what they're told.

- **Your footage stays home.** A model on your own hardware watches the cameras. Nothing goes to a
  cloud model, agent or app unless you've chosen to share it.
- **You choose what each agent gets.** You set which rooms, which kinds of facts (who's home, pets,
  where things are, workouts), how much detail and how far back. A cloud assistant can be told only
  whether anyone is home, while your own agent can know what's happening in the living room.
- **House rules come first.** Children, valuables, health, private rooms and quiet hours are held back
  from every agent, whatever its access. A recommended set is on from the start.
- **Nothing is shared silently.** Every request is logged with what was answered and what was held
  back. You can test what an agent would see before it asks.

## What you can share

You set the level of detail for each agent. Text is the default, and it will stay the main way agents
learn about your home.

| Level | An agent asking about the living room gets |
|---|---|
| Yes or no | Whether anyone is home. No rooms, and times only to the hour. |
| Summary | "2 people, watching TV. Dog lying down. Keys on the bookshelf." |
| Full | A plain-language answer written by the local model, using only the facts that agent may see |
| Redacted image *(planned, opt-in)* | A picture with people and anything your house rules cover blurred out, for only the agents and rooms you turn it on for |

## How it works

<img src="docs/assets/how-it-works.svg" width="1000" alt="Camera frames are checked for changes and described by a vision model on a computer in your home. House rules and each agent's access decide what reaches that agent over MCP.">

1. A camera sends a frame, every 30 seconds by default, faster in short bursts when there's motion.
2. If the picture hasn't changed, nothing else happens. In one 90-second test, 89 frames needed 10
   model calls.
3. Otherwise the local vision model describes the frame: people, pets, objects and where they are,
   and what people are doing.
4. Vestibule compares that with the previous description and records only what changed.
5. When an agent asks, Vestibule answers from the changes that agent may see, after the house rules.
   A room it can't see gets the same reply as a room with no camera, so it can't even tell a rule
   applied.

## Features

**Ask your home.** Ask "where are my keys?" or "when did the package arrive?" from the app or through
an agent, and get an answer built only from what was recorded. You get a daily recap with exact totals too.

**House rules and a boundary tester.** Turn rules on and off, choose "never share" or "never record",
and see exactly what any agent would see over the last 24 hours, side by side with what was held back.
Testing doesn't write to the audit log.

<picture>
  <source srcset="docs/assets/app-boundaries-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-boundaries.webp" width="900" alt="Boundaries: house rules on the left; on the right, what an agent would see over the last 24 hours next to what was held back.">
</picture>

**Per-agent access with an audit log.** Each agent gets its own token, rooms, kinds of facts
(presence, activities, pets, objects, workouts, audio, food), detail level and history window. Every
request, answered or refused, is logged with what was held back. Revoke access at any time.

<picture>
  <source srcset="docs/assets/app-agents-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-agents.webp" width="900" alt="Agents: two connected agents with different access, and an activity log of answered and refused requests.">
</picture>

**Item finder.** Vestibule tracks where portable things were last seen and follows them from room to
room: keys, phones, parcels, mugs.

<picture>
  <source srcset="docs/assets/app-items-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-items.webp" width="900" alt="Items: the keys in view on the living room bookshelf, and a history of items appearing and moving between rooms.">
</picture>

**Watchers and alerts.** Set up local rules such as "a package appeared on the porch" or "activity in
the porch at night", with cooldowns. Alerts can call a webhook on your home network, and they obey the
same house rules.

<picture>
  <source srcset="docs/assets/app-watchers-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-watchers.webp" width="900" alt="Watchers: a form for a new watcher, two active watchers and recent alerts from the porch.">
</picture>

**Routines.** Over several days Vestibule learns what's normal, such as when pets are seen and which rooms are
active at which hours, and points out what's unusual.

**Rep coach.** Film yourself with a phone or laptop. Pose tracking runs on that device and counts
squats, push-ups, bicep curls and lunges, flags form problems, and optionally says the count out loud.
After each set the local model writes two sentences of coaching. Agents with the "workouts" permission
see the numbers, never the frames.

<picture>
  <source srcset="docs/assets/app-workouts-dark.webp" media="(prefers-color-scheme: dark)">
  <img src="docs/assets/app-workouts.webp" width="900" alt="Workouts: a set of 8 squats with rep 7 flagged as not deep enough, and two sentences of coaching written by the local model.">
</picture>

**Sound events.** Doorbells, barking, smoke alarms, crying and glass breaking become text events. No
audio is stored.

**Gets better with your help.** Tell it which pets you have and what each camera usually sees, confirm or fix
labels from the timeline, and benchmark the vision models you have installed on your own confirmed
frames, all on your computer. Hard frames (dark, infrared, a watched item) can go to a larger local model.

**Modules.** Features are declared as modules, and you can add your own in `~/.vestibule/modules`.

## Quick start

You need Python 3.11 or newer, and [Lemonade](https://lemonade-server.ai) on the same computer for
real cameras.

```bash
git clone https://github.com/rishiruben/vestibule.git
cd vestibule
python3 install.py           # sets up .venv, downloads the vision model (1.4 GB), runs a check
```

```bash
.venv/bin/vestibule start    # your home: http://localhost:8080
.venv/bin/vestibule sample   # a sample home with no cameras: http://localhost:8090
.venv/bin/vestibule doctor   # checks Python, Lemonade, the model and a test frame
```

On Windows, use `py install.py`. Then add cameras and connect agents from the app.

| Cameras | How |
|---|---|
| This computer's webcam | In the app, Cameras → add |
| A phone | `vestibule start --phone`, then open the pairing link on the phone (HTTPS on your network) |
| Reolink | Over Reolink's own protocol, with a view-only user |
| Anything with a snapshot URL | IP Webcam, go2rtc, Frigate, Home Assistant camera proxy |

Details: [docs/CAMERAS.md](docs/CAMERAS.md).

## Connect an agent

In the app, **Agents → Connect Hermes** gives you one command that adds Vestibule to Hermes and tests
the connection. For agents on another computer, run `vestibule start --lan`. Claude Code, other MCP
clients and manual setup are covered in [docs/AGENTS.md](docs/AGENTS.md).

| Tool | Returns |
|---|---|
| `what_can_i_see` | The agent's own access: rooms, kinds of facts, detail, history, expiry |
| `who_is_home` | Whether anyone is home, and per room: people and what they're doing |
| `where_is` | Where an item is now, or where it was last seen |
| `pets_status` | Pets now and over the last 12 hours |
| `recent_events` | The timeline of changes |
| `ask_home` | An answer built only from facts the agent may see |
| `daily_recap` | A summary of the day with exact totals |
| `workout_summary` | Sets, reps, form problems and coaching for a day |
| `routine_status` | Routine baselines and anything unusual |
| `recent_alerts` | Recent watcher alerts |

## What leaves your home

- Camera frames go only to a model on this computer or your home network. The check runs before any
  network call ([`vestibule/privacy.py`](vestibule/privacy.py)).
- Agents receive only what their access and your house rules allow. Answers written by the local
  model come from that same filtered set of facts, so nothing outside it can slip into the wording.
- For each change, one frame is kept on this computer so you can check the label. It's encrypted,
  deleted after 3 days by default, never kept for private rooms, and no agent can read it
  ([`vestibule/frames.py`](vestibule/frames.py)).
- Camera passwords are kept out of the database and out of error messages. Agent tokens are stored
  as hashes and shown once.

## What's next

- **Redacted images, opt-in.** For agents and rooms you choose, share a picture with people and
  anything your house rules cover blurred out on your computer before it leaves. Off unless you turn it on.
- **More sensors.** Sound events are in; more kinds of sensors will arrive as modules.

## Hardware and accuracy

Vestibule itself uses under 50 MB of memory. The vision model needs about 2 GB. It's developed and
used daily on an Apple M2 Mac with 16 GB of memory, with a MacBook webcam, a Reolink camera and
Hermes. Accuracy on public test images and exercise clips is measured, not claimed:
[eval/RESULTS.md](eval/RESULTS.md).

**Known limitations**

- In the dark, the 2B model sometimes calls a dog a cat. Telling Vestibule which pets you have, and
  fixing labels, corrects it.
- The installer supports Windows and Linux, but has mostly been tested on macOS.
- The agent server uses plain HTTP on your home network unless you start it with `--tls-auto`.

## Built with

[Lemonade](https://lemonade-server.ai) serves the local models. The
[MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) (MIT) handles agent connections,
[reolink-aio](https://github.com/starkillerOG/reolink_aio) (MIT) handles Reolink cameras (it pulls in
aiortsp, LGPL-3.0, used unmodified as a library), and
[MediaPipe](https://developers.google.com/mediapipe) handles pose tracking in the browser.

## License

[MIT](LICENSE)