---
name: vigiora-setup
description: Install, set up, use and troubleshoot Vigiora Server, the self-hosted AI video surveillance server - requirements, the one-command installer, first sign-in and the site address (<name>.vigiora.com), the setup wizard, camera discovery and catalogue, recording and retention, AI cameras, Guardian, alert rules, the Briefing, clips and share links, connecting claude.ai or ChatGPT (MCP), remote access, updates, backups, uninstall and pricing, plus Analytics (counting, queues, parking, alerts, door display), floor plans (uploaded or AI-drawn, rooms and sensors), AI views, live zoom, frames, clips, transcripts, faces, IoT devices and Zigbee via Home Assistant, AI camera names, client errors, voice, MQTT, Telegram, LINE, webhooks (servers 1.6.13-1.6.20). Use when someone wants to install Vigiora, connect cameras, configure or use a server, connect it to Claude, or fix a camera, AI, remote access or install problem. For code against the REST API, use vigiora-api.
license: Proprietary. Documentation of Vigiora Server; free to use with Vigiora servers.
---

> If you are an AI assistant reading this from a URL: the reference files are linked below; fetch them as needed.

# Set up and run Vigiora Server

Vigiora Server runs on one computer at the user's site, on the same network as the cameras, and stays on all the time. It records any RTSP camera, gives the server a free HTTPS address at `https://<name>.vigiora.com`, and adds AI (Guardian) on the cameras the user chooses.

## Rules for the agent

- **Confirm the OS and architecture first** (`uname -m`, `cat /etc/os-release`). Only Linux x86_64 or ARM64 is available today; Windows 11 and macOS (Apple silicon) are coming soon.
- **Commands with `sudo` and changes to the user's computer** (install, uninstall, firewall, restart) **follow the same human-in-the-loop policy** as actions on the server (next rule). Always show the command and say what it does. If `human_in_the_loop` is true, or you can't check it (no server yet, not connected, a server older than 1.6.9), ask and wait for a yes before running it. If it is false, run it and report what you did. Never delete data (`uninstall --purge`, removing `/var/lib/theia`) unless the user asked for exactly that.
- **Actions on the Vigiora server follow its human-in-the-loop policy** (server 1.6.9+). When you are connected to the server (MCP connector or API key), check it at the start: the MCP tool `get_agent_policy`, or `GET /api/v1/agent-policy`. If `human_in_the_loop` is true, ask the user before the operations in `confirm_operations` (PTZ moves, network scans and camera probes, relocating, adding, changing or deleting cameras, bulk changes, share links, diagnostic fixes, settings…); the server also prompts the user or returns `confirmation_required`. If false, act directly without asking: this is the only place confirmations come from. On `confirmation_required`, show the user `details.action` and retry with `confirm: true` only after they say yes; on `user_declined`, stop. Docs: https://vigiora.com/docs/developers/human-in-the-loop.md
- **Never ask the user to paste passwords, enrolment codes or API keys into the chat.** Tell them where to type them (the setup page, the app) or to read them on the server themselves.
- Use the exact commands, ports and menu names below and in the references. If something is not covered, say so and link the docs; do not guess.
- Point to the docs page for each step (the `.md` links below are plain markdown, good for reading).

Reference files (each one is the full text of the docs pages it lists):

- [references/install.md](https://vigiora.com/skills/vigiora-setup/references/install.md): requirements, the installer, first sign-in, the setup wizard, the site address.
- [references/cameras.md](https://vigiora.com/skills/vigiora-setup/references/cameras.md): adding cameras, automatic camera discovery, fixed IPs and rediscovery, PTZ, motion detection, recording and retention.
- [references/ai-and-daily-use.md](https://vigiora.com/skills/vigiora-setup/references/ai-and-daily-use.md): AI cameras, Guardian, chat, alert rules, HAL services and object recognition, the Briefing, clips, share links, speakers, users and roles, the MCP server (claude.ai and ChatGPT connectors).
- [references/remote-access.md](https://vigiora.com/skills/vigiora-setup/references/remote-access.md): how remote access works, the relay, Cloudflare, the free relay limit, ports.
- [references/maintenance.md](https://vigiora.com/skills/vigiora-setup/references/maintenance.md): updates, backups, uninstall.
- [references/troubleshooting.md](https://vigiora.com/skills/vigiora-setup/references/troubleshooting.md): install, server, remote access, AI and camera problems.
- [references/pricing.md](https://vigiora.com/skills/vigiora-setup/references/pricing.md): the free plan and paid options.
- [references/use-cases.md](https://vigiora.com/skills/vigiora-setup/references/use-cases.md): 23 worked use cases by persona (installer, home owner, shop owner, AI connector, accessibility) with the steps, results and pitfalls.

## 1. Check the machine

Docs: https://vigiora.com/docs/getting-started/system-requirements.md

- Linux: Ubuntu 20.04, 22.04 or 24.04; Debian 11 or 12; Rocky Linux 9. x86_64 (amd64) or ARM64, including Raspberry Pi 4 and 5 with a 64-bit OS.
- The installer needs systemd as the init system (most containers don't qualify), glibc 2.28 or newer (not Alpine), at least 2 GB of free disk plus space for recordings, port 8080 free, and TCP/UDP 8555 plus loopback ports 1984, 8554, 18443 and 20241 free.
- Hardware: 64-bit CPU, at least 2 GB of RAM (more for more cameras and AI), wired Ethernet recommended. There is no fixed CPU or RAM figure per camera: after adding cameras, watch **System → System Load**.
- Disk: about 33 GB per day for a 1080p 15 fps camera (about 230 GB for 7 days); a 640×360 sub-stream is about 4 GB per day.
- Network: internet access is needed; no router port has to be opened. Ports: TCP 8080 (web app on the LAN), TCP 8443 and 8444 (LAN-direct and the public TLS listener), TCP and UDP 8555 (WebRTC live video; forward it for the fastest remote live view), UDP 41641 (the Vigiora mesh), outbound UDP and TCP 7844 only for Cloudflare.

## 2. Install

Docs: https://vigiora.com/docs/getting-started/install-linux.md

Run on the server (an account that can use `sudo`), after a yes when human in the loop is on or unknown (before the install it is unknown, so ask):

Tell the user to sign in at https://vigiora.com/download (free account, Google sign-in) and copy the install command shown there (it carries a one-time pairing code: they paste it on the server themselves, never into the chat). The installer then pairs the server with their account by itself. A server installed without internet, or with an expired (14 days) or used code, is paired later from its setup page with an enrolment code from the dashboard (**Servers → + Add server**).

It checks the machine, creates a `vigiora` service account, installs into `/opt/vigiora`, keeps data in `/var/lib/theia`, settings and secrets in `/etc/vigiora.env` (root only), configuration in `/etc/vigiora` and `/etc/go2rtc`, and starts the `vigiora` systemd service. The first start can take a few minutes.

- To keep recordings on a separate disk, mount it first and add `install --data-dir /data/vigiora` right after `sh -s --` in the command from the Download page, before `--pair` (first install only).
- The installer prints the LAN address (for example `http://192.0.2.10:8080`) and, under **Admin sign-in for the first login (shown only this once)**, the username `admin` and a generated password. Tell the user to copy it themselves. If lost, it is `VIGIORA_ADMIN_PASSWORD` in `/etc/vigiora.env` (`sudo grep ADMIN /etc/vigiora.env`, run by the user).
- If ufw or firewalld is active, only the mesh port is opened. To reach the app from other computers, also allow TCP 8080 (for example `sudo ufw allow 8080/tcp`, asking first when human in the loop is on).
- Running the install command again repairs or upgrades and keeps settings, cameras and recordings.

## 3. Run the setup wizard

Docs: https://vigiora.com/docs/getting-started/setup-wizard.md, https://vigiora.com/docs/getting-started/first-sign-in.md and https://vigiora.com/docs/getting-started/site-address.md

Server 1.6.8 and later: one wizard at `/setup` takes the server from install to working cameras in 9 steps. Every step has **Skip**; skipped items stay on the dashboard's **Setup checklist**. The user types every code and password in the wizard, never in the chat.

1. **Enrolment code (pair later).** Only when the installer did not pair the server by itself (no internet during the install, or the install code was expired or already used). The user signs in at vigiora.com, opens **Servers → + Add server**, optionally types a **Server name**, and clicks **Get an enrolment code** (looks like `AB12-CD34`, single use, expires after 10 minutes). On the same network they open the printed address with `/setup` added (for example `http://192.0.2.10:8080/setup`) and enter the code.
2. **Site name.** 3-32 characters, lowercase letters, digits and single hyphens; becomes `<name>.vigiora.com`.
3. **Administrator.** The **Current admin password** from the installer, a new username and a password of at least 10 characters. Optionally **Allow access from outside this network** (off by default; later under **System → Vigiora cloud**). **Connect to Vigiora** enrols the server and signs the new admin in.
4. **Health check.** 10 checks (before server 1.6.11, **Network ports** and the video service check could call Vigiora's own video service "another program" on port 1984: a false warning, fixed by updating): recording storage, clock, network ports, Vigiora cloud link, the video streaming service (go2rtc), video tools (ffmpeg), graphics acceleration (information only), camera search on the local network, internet name lookup, updates. Each is OK, Warning, Problem or Not checked, with a plain explanation. **Fix** buttons (admins) run only safe fixes: restart the video streaming service (stops live view and recording for a few seconds; the wizard asks first), check for updates, contact Vigiora cloud. Other problems show **How to fix** steps for Linux, Docker, macOS or Windows. If the user wants you to run one of those commands, show it and ask first, as for any `sudo` command.
5. **Find cameras.** The wizard scans the server's LAN and lists devices with their maker, an **ONVIF** badge (answered ONVIF) and an **RTSP** badge (port 554 open); **Already added** cameras can't be ticked. Missing camera: **Add by address** (a private IPv4 on the server's network, from the maker's app or the router's device list). A hosted server or a container without host networking can't search: only **Add by address** is offered.
6. **Connect cameras.** Per camera, **User name** and **Password**, then **Test**: Vigiora tries ONVIF first, then the known RTSP paths of Hikvision, EZVIZ, Dahua, Amcrest, Reolink, TP-Link Tapo, Uniview, Axis and Foscam, and shows a live thumbnail with resolution, codec and fps. **Use for all <maker> cameras** applies one login to every camera of that maker. **Add N cameras** creates them (sub-stream and PTZ set up automatically). Failures and what to tell the user:
   - **Wrong password**: check the camera's own login (label or maker's app). Lockout protection: Vigiora stops at the first refusal, never resends the same wrong password to that camera for 30 minutes, and after 3 refused logins in 30 minutes sends it no login at all until the time shown. Warn the user when the card says **N tries left**; never suggest guessing passwords.
   - **ONVIF login refused**: some cameras need a separate ONVIF user; create one, or enter the stream address yourself.
   - **RTSP is off**: turn on RTSP (and ONVIF) in the maker's app, or type a non-default **RTSP port**. Reolink: app → **Settings → Network → Advanced → Server Settings** → turn on RTSP, ONVIF and HTTP.
   - **No video stream found**: choose the **Camera maker** (until a camera accepts the login, the password goes to one stream path only), or **Enter the stream address yourself** (the manual form, see section 4).
   - **Camera not reachable** (address, power, network) or **Camera too slow to answer** (**Try again**).
7. **Recording and AI.** **Record all cameras** and **Keep recordings for** 1, 3, 7, 14, 30 or 90 days. AI on 2 cameras is free; the wizard pre-ticks the 2 it suggests; each extra AI camera is $2 a month.
8. **Alerts and phone.** **Turn on notifications** (browser push; on iPhone add Vigiora to the home screen first), the phone app, and optionally the claude.ai connector (section 9).
9. **Done.** What is done and what is still to do. **Go to dashboard**.

Re-run later: the dashboard **Setup checklist** card (admins and operators) has **Set up** per item and **Re-run health check**; or open `/setup?step=4` signed in as admin or operator. Steps 1-3 don't come back once enrolled.

Older servers (before 1.6.8): `/setup` has only steps 1-3 and ends with **Sign in**; add cameras by hand (section 4). The free plan covers one server.

## 4. Add cameras

Docs: https://vigiora.com/docs/cameras/add-a-camera.md and https://vigiora.com/docs/cameras/automatic-discovery.md

Vigiora works with any camera that sends an RTSP stream, which includes almost all ONVIF cameras and recorders. There is no camera limit. Adding needs the admin or operator role.

- **Automatic discovery (1.6.8+):** the server scans its LAN every hour (on by default on self-hosted servers; **System → Cameras → Camera discovery**: on/off, **How often** 15 min to 12 h, **Scan now**). A new camera brings up **New camera found** for admins and operators: **Start setup** (the wizard's Connect step), **Later** (24 h) or **Ignore this device**. A **Possible camera** note means a camera-like device with no video port open: a Reolink with RTSP off (port 9000 only), a Wi-Fi camera chip such as iComm Semiconductor, or a camera maker's device; turn on RTSP/ONVIF in its app, then **Scan now**. Scans stay on the server's private subnets and camera ports (80, 443, 554, 8000, 8080, 8899, 9000, 34567, 37777) and send no logins. Hosted servers: off.
- **Manual, same network as the server:** **Monitors → Add Monitor → or add a manual RTSP source →**, type a **Name**, paste the **RTSP URL** (for example `rtsp://admin:password@192.0.2.20:554/Streaming/Channels/101` on Hikvision), then **Save** and **Done**. The user types the camera password in the app, not in the chat.
- **Another network:** install the Vigiora Client on a computer next to the cameras, then pick the camera from those the Client found.
- Percent-encode special characters in the password (`@` as `%40`, `#` as `%23`, `/` as `%2F`). `onvif://` addresses are refused as stream addresses.
- Give each camera and the server a fixed address with a DHCP reservation. Camera offline after a router restart? Its IP probably changed: Vigiora re-finds it by MAC automatically, or the user's agent can look up the MAC and relocate the camera (server 1.6.7+). See [references/troubleshooting.md](https://vigiora.com/skills/vigiora-setup/references/troubleshooting.md).
- PTZ is detected automatically; from 1.6.8 Vigiora also finds the ONVIF port itself (Reolink 8000, Tapo 2020, …) and keeps it when the camera's IP changes. Check or override it in the camera settings. Docs: https://vigiora.com/docs/cameras/ptz.md
- Camera status: **online** = video flowing (watched, or recording with a segment in the last 90 s); **standby** = not recording and nobody watching, normal; amber/offline = a recording camera stopped writing, or a non-recording camera's port doesn't answer.

## 5. Recording and retention

Docs: https://vigiora.com/docs/cameras/recording-and-retention.md

Turn recording on in each camera's **Recording** tab. Retention is 1, 3, 7, 14, 30 or 90 days; a new camera keeps 1 day until changed. **Record low quality (sub-stream)** saves about 60-80% of the space.

## 6. AI, Guardian and alerts

Docs: https://vigiora.com/docs/ai/how-ai-works.md, https://vigiora.com/docs/ai/guardian.md, https://vigiora.com/docs/ai/alert-rules.md

- AI starts with the per-camera switch **AI for this camera (Core AI)**. The free plan includes AI on 2 cameras of the user's choice ($2 of AI usage per month). Scene descriptions and alert rules also need **Motion Detection** on the camera.
- Guardian describes what moves, keeps a searchable history, and checks alert rules written in plain language (camera → **AI Guardian** tab → **Alerts**).
- **False alerts about people** (server 1.6.11+): on a camera that also runs a person detector (object recognition), a rule about people has **Only alert when the object detector also sees a person**, on by default. When the detector watched the clip and saw nobody, the Guardian entry is kept with **Not alerted: the object detector saw no person** and no alert is sent. Untick it on a rule only if the detector misses real people (small, far or seated). Without a detector, rules alert as before.
- **Motion detection** (server 1.6.11+) ignores lighting changes, shadows and small scattered changes: it needs one connected changed area, and a lighting change must be confirmed on the next check. Too many events from sun or shadows on an older server: update first, then raise **Motion threshold** (for example 35). Cars or people on a street in view are real motion; only re-aiming the camera removes them. Docs: https://vigiora.com/docs/cameras/motion-detection.md
- **AI Live in a room** (server 1.6.11+) follows an **Agent instruction** such as "Transcribe what people say and describe their actions", and the **Output** tab shows a status line (**Watching — nothing new to report · last check …**). No cards for a while with that line means nothing new happened, not a fault.
- **Speakers:** **Speakers → New speaker**. From server 1.6.11 a **Camera** speaker on a camera the server streams itself needs no Vigiora Client (**Played by (optional)**: **This server**); picking the camera checks it (**Has speaker (PCMU/8000)** or **No speaker / two-way audio found on this camera**). Docker installs can check but not play camera speakers. Docs: https://vigiora.com/docs/admin/speakers-outputs.md
- Users and roles: **Users** (admins only). Roles are admin, operator and viewer; operators and viewers see only the cameras their groups grant. Docs: https://vigiora.com/docs/admin/users-roles-groups.md

## 7. Daily use

New in server 1.6.20 (check the server version under **System → Updates** first):

- **PTZ by holding:** on the live joystick, press and hold an arrow to move and release to stop (a server dead-man stops a camera whose browser goes quiet); hold **+**/**−** to zoom. Presets: **Save**, **Rename**, **Delete**, **Move to current position** and a **dwell time** per preset (Reolink keeps names on the camera, else Vigiora keeps the name). Motion is muted while Vigiora moves the camera. Docs: https://vigiora.com/docs/cameras/ptz.md
- **Camera clocks:** the camera editor's **General** tab shows the camera's clock vs the server's (**OK**, **15 h behind**, **wrong time zone**, **no internet time**) with **Fix** (sets time, zone and NTP); admins can turn on **Fix camera clocks automatically**; each camera uses its **site's time zone** (override per camera, or for all cameras behind a Client — client 1.16.0+); Reolink read/set over its own API. Docs: https://vigiora.com/docs/cameras/camera-settings.md
- **Talk through a camera** (admins/operators, camera with a speaker, HTTPS): the **Talk** button on the live page, grid tile or floor-plan pin — click to talk from your mic to the camera speaker, click again or <kbd>T</kbd> to stop (3-min cap). Docs: https://vigiora.com/docs/using/live-view.md
- **Mosaic export** in multi-camera playback: **Export as one video (mosaic)** renders every chosen camera as a tile in one MP4. **The alert player:** clicking an alert opens the full playback at that moment (export/clip/share); **Alerts** pages with **Older**/**Newer**. Docs: https://vigiora.com/docs/using/multi-camera-playback.md, https://vigiora.com/docs/using/alerts.md
- **Control IoT devices** on the **IoT devices** page: lights (on/off, brightness, colour, colour temperature), switches/sirens, covers (open/close/stop/position), locks and alarms (with a code), numbers, selects, buttons — needs operator/admin, the device shared, and follows human-in-the-loop. **Bluetooth scan** (Linux): an hourly survey of nearby phones, watches, trackers, TVs and sensors; note or ignore one; nothing is paired. Docs: https://vigiora.com/docs/using/iot-devices.md
- **Library** (left menu, under **Watch**): **Save to Vigiora** keeps frames and clips on the server in **folders** and **albums**; play an album through; public links; storage on **System**. Docs: https://vigiora.com/docs/using/library.md

New in server 1.6.19 (check the server version under **System → Updates** first):

- **IoT devices** (left menu, after **Monitors**; admins and operators): every sensor and switch from Home Assistant and the Zigbee network as **Tiles** or a **List**, with live values, battery, signal, rooms and cameras; search and filters (**Type**, **Source** Home Assistant/Zigbee, **State** online/offline/low battery, **Room**, **Shared**); a device drawer with **Entities & data mapping** (**Vigiora reads it as**: Door / window, Motion, Occupancy, Temperature, Battery…; override when it guessed wrong), **Used by**, rooms and cameras, **Place on floor plan**, **Share with Vigiora** / **Hide from Vigiora**, **Forget device**. Tabs **All devices**, **Home Assistant sharing** (the bridge's sharing list) and **Zigbee network**. Docs: https://vigiora.com/docs/using/iot-devices.md
- **Zigbee set up for you** (Home Assistant installed by Vigiora, Linux): plug a Zigbee dongle into the server; within about 30 s the Home Assistant card shows it under **USB devices** and the **Zigbee** row goes **Setting up…** → **Ready** (Vigiora runs ZHA's own set-up; never flashes firmware; **Not set up** shows the reason and **Set up Zigbee** retries; **New USB device** → click **Restart**). Installed before 1.6.19: run `curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- homeassistant` once more, then **Restart**. **Pair a new device** opens a 2-minute window with a countdown (**Pair through** a router on big networks); a joined device shows as **New** and its useful readings are shared on their own (sensitive devices never); **Rename**, **Identify (blink)**, **Reconfigure**, **Remove from the network**. Docs: https://vigiora.com/docs/home-assistant/zigbee.md
- **Rooms from the floor plan:** a room outline on a plan is a room (same name both ways; cameras with their pin inside are members; **New room from the plan** in the editor's **Rooms** tab); **New virtual room** collects cameras and devices from different rooms; **Floor plans** and **Rooms** are two tabs of one page; badges **Floor plan · <plan>** / **Virtual**. **Devices** tab in the plan editor: drag a sensor onto the plan, its pin shows its live value (**The pin shows** picks the reading); inside a room outline it joins that room. Docs: https://vigiora.com/docs/using/rooms.md, https://vigiora.com/docs/using/floor-plans.md
- **Camera names from the picture:** the add-camera **Settings** step fills the name as "<Room> – <position>" in the style of the other cameras; **Name from the picture** (sparkle button, also in the camera editor) asks again and offers alternatives as chips. Uses AI credits; renames nothing by itself. Convention: "Living room – TV side", "Kitchen – sink", never the maker/model. Docs: https://vigiora.com/docs/cameras/camera-settings.md
- **Client errors:** the web app reports uncaught errors to the server (once per cause per 5 min per tab; the error page says **Reported to the server.**); **System → Client errors** (admins) lists them by cause with count, first/last seen, web build, stack; **Resolve** with a note, **Resolve all**, **Show resolved**; a resolved cause reopens if it happens again; `journalctl -u vigiora | grep client-error`. Docs: https://vigiora.com/docs/admin/system.md
- **Playback** opens at the live edge (today's newest recording, paused on the latest frame); the timeline has a lane per label (Person, Vehicle, Animal, Face, Plate, Weapon, Line, Zone, Other). **Monitors grid:** a camera without a sub-stream is a picture polled every 5 s; a tile whose picture is older than 20 s says **Last picture N ago** (background tab) and **Reconnecting…** when the camera stops answering.
- **Service names:** `gemini-video`/`gemini-audio`/`gemini-live` are now `hal-video` (**AI scene alerts**), `hal-audio` (**Voice detection (STT)**, was **Gemini Audio (STT)**), `hal-live` (**AI Live**, was **Gemini Live**); old names accepted as input. **Upgrade on vigiora.com** links on every plan-full notice open Billing prefilled. **Unlock and try again** re-sends a refused camera login in Add camera and the wizard. The Mac installer is notarised again.

New in server 1.6.18:

- **AI mode on Monitors:** the **AI** button next to **Layouts** builds a view from a sentence ("Entrance and living room live, with today's alerts and who is home"): live tiles, alerts, faces, plates, what was heard, recordings, a floor plan and Analytics cards on the cameras it matches by name, tag, room or site. **Change it** refines by chatting, **Save** pins it, **Recent views** reopen; at most 12 cards; one AI call per compose or change, charged like a chat. A card a camera can't show (faces without face recognition, heatmap without Analytics) is dropped with a note. Docs: https://vigiora.com/docs/using/monitors-list.md
- **Guardian chat:** the times it cites are chips that open the clip/frame or jump to that second in Playback (also in the Briefing's ask box and old conversations). "Give me a short summary of the day" (today, yesterday, last 24 h, this week, a range up to 8 days) works; "around 00:14" is answered from the 15 minutes either side on the most recent day it has passed, and says when nothing was recorded. Docs: https://vigiora.com/docs/ai/guardian-chat.md
- **Transcripts** are passages (joined snippets, oldest first, time range + language) on every panel (Audio panel, microphone live view, AI Guardian → History → Transcript, AI Live, Room → AI Live → Transcripts, Playback → Insights), with **Translate to …** (your language), **Last 10 min** / **Last hour** summaries, copy and **Download transcript (txt)**; translate and summarise use AI credits. Docs: https://vigiora.com/docs/cameras/audio-and-microphones.md
- **AI features are paused** banner with "the AI provider reports depleted credits / is rate-limiting / is not responding (since …)": the server pauses every AI feature, probes again (10 min after out-of-credit, else about 1 min) and resumes by itself; nothing to fix when the second line says **Vigiora's AI service is temporarily unavailable; it resumes automatically** (hosted: **Contact support**); **Check your AI provider billing** only with a key of your own. Recording and live view keep working. Docs: https://vigiora.com/docs/getting-started/troubleshooting.md
- **Faces:** the thumbnail is the face itself; click it for the snapshot viewer (frame with the face outlined, zoom, close-up); **Not a face** removes a wrong detection and makes the face service ignore that spot for an hour; pending faces show their width in px and **small face** under 56 px (weak enrolment: name a closer view). Card defaults: Min face confidence 0.85, Min face size 48 px (with a histogram of the sizes the camera sees), Full-confidence face size 56, Match margin 0.12, Min frames 3, Min frontality 0.35, Min skin tone 0.15, Static box 120 s. A camera that sees faces at 40–80 px (far, backlit) stays low-confidence: move it to head height facing the door. Docs: https://vigiora.com/docs/ai/faces.md
- **Briefing** assistant panel: a short message, links (**See the N alerts ›**, camera chips, **Also:**) and two example questions; alert rows live on **Moments** and the Alerts page. **Analytics** header: one toolbar row and a live strip with a **Today** tile (in, out, busiest hour).
- **Fixes:** the Monitors page no longer crashes with React error #310 on **Back** (since 1.6.16); on native installs an open tab no longer shows a blank blue page after an upgrade (previous version's files kept for one upgrade, one self-reload, an error page with **Reload**, a toast **A new version of Vigiora is ready**).

New in server 1.6.17:

- **Camera catalogue in Add camera:** the **Camera** step names the recognised model (**Verified** badge, **Manufacturer page**, **Stream address**) and offers **Can't find your camera? Pick the model** (search by brand or model; **Use this stream address** skips the probe). Cameras with no local stream (Ring, Arlo, Nest…) are marked **No local stream (app and cloud only)** and can't be added. Docs: https://vigiora.com/docs/cameras/add-a-camera.md
- **Describe a floor plan:** on **Floor plans**, **Describe it instead** (or **Describe a plan**) draws a plan from a description: name each area, give sizes ("about 6 by 5 metres"), one relation per phrase ("the kitchen behind the living room, on the west side"), the entrances, and one sentence per camera using the camera's Vigiora name ("the Living room camera is on the north wall looking south"). Refine by chatting (**Ask for a change**), **Undo last change**, **Looks right**, **Start over**. Uses AI credits; needs Vigiora cloud AI; desktop or tablet. Cameras named by model number can't be matched from words. Docs: https://vigiora.com/docs/using/floor-plans.md
- **Live view:** scroll or pinch to zoom (to 8x), drag to pan, double-click for 2x, keys + - 0. **Take frame** (crop, rotate, stamp, annotate; download/share/copy) and **Take a clip** (up to 2 minutes, trim; an exact copy of the recording when the camera records, else recorded in the browser). Docs: https://vigiora.com/docs/using/live-view.md

New in servers 1.6.15 and 1.6.16:

- **Add a camera:** **Monitors → Add Monitor** asks where the camera is (**On this network**, **Behind a Vigiora client**, **Scan the network**, or **I have the RTSP URL**), then the login, then the settings. A scan row saying **Another device answers on this address too** can be fixed with **Move camera to DHCP** (admins); **Not activated yet** means the camera needs its password set in the maker's tool first. Whether a model streams locally: https://vigiora.com/cameras. Docs: https://vigiora.com/docs/cameras/add-a-camera.md
- **Analytics:** queue zones, parking bays, speed from a reference distance, alert rules (capacity, queue length, loitering, bay overstay…) and a **Door display** for a tablet at the entrance. Docs: https://vigiora.com/docs/ai/queues-and-parking.md, https://vigiora.com/docs/ai/analytics-alerts.md, https://vigiora.com/docs/ai/door-display.md
- **Integrations:** **System → Integrations** has MQTT (Home Assistant discovery), Telegram and LINE alerts, and **System → Webhooks** manages webhooks. Never ask for bot tokens in the chat: the user pastes them into the app. Docs: https://vigiora.com/docs/admin/integrations.md, https://vigiora.com/docs/admin/webhooks.md
- **Voice announcements:** the speaker button in the header reads events aloud in that browser; settings under **System → Voice**. Docs: https://vigiora.com/docs/using/voice-announcements.md
- **Several Home Assistants** on one server (**Devices** tab → **Add Home Assistant**).

New in server 1.6.13:

- **Analytics:** count people (and vehicles) crossing lines, time spent in zones, occupancy of areas against a capacity, and heatmaps, on the **Analytics** page, with CSV export. Lines and zones are drawn on the camera's **Analytics** tab. Needs the Analytics add-on and an object detector (GPU). Only positions are used: no faces, no age or gender. Docs: https://vigiora.com/docs/ai/analytics.md
- **Floor plans:** upload a plan of a site, place cameras with their view, and watch status and alerts on it. Docs: https://vigiora.com/docs/using/floor-plans.md
- **Delete moments:** a Guardian moment (clip, picture and its alerts) can be deleted from its **…** menu; it stays in **Recently deleted** for 7 days and can be restored. Recordings are never deleted. Clips now start a few seconds before the motion (pre-roll, 3 s by default).
- **Rooms:** each room runs **AI Guardian** or **AI Live** (or both); AI Live in a room now checks on activity (motion, speech, a person) instead of every few seconds.
- **Home Assistant:** on Linux, Vigiora can install Home Assistant next to itself (**System → Integrations → Home Assistant**), after the user runs once `curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- homeassistant`, or connect to an existing one; Home Assistant devices can then be shared with Vigiora. Docs: https://vigiora.com/docs/home-assistant/overview.md

- **Briefing:** **Home → Briefing**, a short report of the period with moments, what was heard and status chips (*N to check*, *cameras offline*). Docs: https://vigiora.com/docs/using/briefing.md
- **Ask Guardian:** **Guardian → Chat**, **+ New**, ask in plain words; answers show the evidence. Docs: https://vigiora.com/docs/ai/guardian-chat.md
- **Clips and snapshots:** in **Playback**, use **Snapshot**, **Clip** or **Download**. Docs: https://vigiora.com/docs/using/snapshots-and-clips.md
- **Share links:** a public link to a clip that expires and can be revoked. On a phone, **Share** on a Briefing moment or a Guardian clip makes the link (1 hour, 24 hours or 7 days) and opens the phone's share sheet. Revoke links in **Playback → Share links**. Docs: https://vigiora.com/docs/using/share-links.md

## 8. Remote access

Docs: https://vigiora.com/docs/remote-access/how-remote-access-works.md, https://vigiora.com/docs/remote-access/cloudflare.md

- The site address works from anywhere once **System → Vigiora cloud → Access from outside this network** is **On**. Vigiora picks the fastest path: local network, LAN-direct, direct to the router, peer-to-peer live video, or the Vigiora relay (Amsterdam).
- On the free plan, video through the relay is limited (20 GB per month, 2 streams at a time). Forwarding TCP and UDP 8555 to the server gives direct live video.
- **Faster remote access via Cloudflare** is optional, free and off by default (**System → Vigiora cloud**). Pages and app data then go through Cloudflare; video, recordings and images never do. Tell the user Cloudflare can read pages and app data before they turn it on.

## 9. Connect Vigiora to claude.ai

Docs: https://vigiora.com/docs/developers/mcp.md

Every server (1.6.6 or later) has a built-in MCP server, so Claude can answer questions about the cameras, alerts and recordings. It needs remote access on (the site address), because claude.ai connects from the internet.

1. In claude.ai or Claude Desktop: **Settings → Connectors → Add custom connector**.
2. Name it (for example *Vigiora*) and paste `https://<name>.vigiora.com/api/v1/mcp`. Leave the OAuth client ID and secret empty.
3. Click **Connect**, sign in on the Vigiora page with the user's own Vigiora server account, choose **Read only** (default) or **Read and control**, and click **Approve**.

ChatGPT works the same way (**Settings → Apps & Connectors**, developer mode under **Advanced**, **Create**, authentication **OAuth**). Claude Code, Codex and Cursor can sign in or use an API key; the web app shows ready snippets under **API keys → Connect an AI agent**. Recommend **Read only** unless the user wants Claude to change cameras, move PTZ or acknowledge alerts. With **Read and control**, the consent page's **Ask me before actions** checkbox (default: the server's **Human in the loop** setting, on) decides whether Claude must get the user's approval before risky actions; while the server setting is on, only an admin can untick it. Admins change the server setting under **System → AI agents**, and each app's choice under **API keys → Connected apps → Ask before actions** (**Use server setting**, **Always ask**, **Never ask**). Connected apps are listed under **API keys → Connected apps**, where **Revoke** ends access at once; access also ends after 90 days or when the password changes.

## 10. Updates, backups, uninstall

Docs: https://vigiora.com/docs/getting-started/updates.md, https://vigiora.com/docs/admin/backups.md, https://vigiora.com/docs/getting-started/uninstall.md

- The server updates itself with signed releases (checks about every 24 hours, rolls back if the new version isn't healthy within 2 minutes). Check now under **System → Updates → Software update → Check now**.
- There are no automatic database backups yet: follow the backups page (a `pg_dump` with the bundled tools, plus `/etc/vigiora.env` and `/etc/vigiora/`). Backups contain secrets; keep them encrypted.
- Uninstall keeps data by default: `curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- uninstall`; `uninstall --purge --yes` also moves the data away. Everything removed goes to `/var/backups/vigiora/<date-and-time>`. Disconnect the server under **Servers** on vigiora.com first if it won't be used again.

## 11. Troubleshooting

Docs: https://vigiora.com/docs/getting-started/troubleshooting.md and https://vigiora.com/docs/cameras/troubleshooting-cameras.md

Safe checks (read-only; `sudo` follows the human-in-the-loop policy):

```bash
curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- status   # service, version, folders, health, last log lines
sudo journalctl -u vigiora -n 200                                             # full recent log
```

Restart (`sudo systemctl restart vigiora`) only after the user's OK when human in the loop is on; when it is off, restart and say so. In the app, **System → Components** shows each part's health with a **restart** button.

- **Camera offline:** open the camera's own web page from the same network; check its address (Vigiora 1.6.1+ can follow a moved camera), its login and percent-encoding; test the RTSP address in VLC. Use **Pipeline** on the camera page to see where the video stops. "Connected — no video" or RTSP `404` means a wrong stream path.
- **No AI:** check the camera has **AI for this camera (Core AI)** and **Motion Detection** on, and read the AI banner (monthly allowance used, subscription not active, server no longer enrolled, or Vigiora cloud unreachable).
- **Can't reach the site:** on the LAN use `http://<server-ip>:8080` and allow TCP 8080 in the firewall. From outside: **Access from outside this network** must be **On**, **Last contact with Vigiora** recent, the **Remote access** card's certificate valid; on the free plan only one server per account gets remote access.
- **Install or update failed:** the installer names the problem (systemd, glibc, disk, a port in use, architecture, root, `/tmp` noexec) and restores the previous version if the new one fails. Check **System → Updates** and the `status` output.

## Object recognition (HAL, preview)

Docs: https://vigiora.com/docs/ai/hal-services.md

- HAL (Hardware Abstraction Layer) is how AI services plug into Vigiora: built-in ones run inside the server, connected ones (object recognition, people counting, faces, licence plates) run as separate programs, usually in Docker on a machine with an NVIDIA GPU, and enrol with the server's enrolment key (`VIGIORA_ENROLL_KEY` in `/etc/vigiora.env`; the user sets it, never paste it into the chat).
- **Object recognition (`hal-objects`, server 1.6.10+) is a preview, available on request** through https://vigiora.com/contact. There is no public image to install yet: don't look for one or invent a `docker run` command.
- Once it runs, the camera's **AI Guardian** tab has **Object recognition (any object)**: **Things to find** (comma-separated), **Min confidence** (0.25) and **Repeat after (s)**. Describe what to find, with colour or kind: "black t-shirt", "red car", "parcel", not just "t-shirt".
- Its findings appear in the camera's detection events and help Guardian describe scenes (**Use object detections in descriptions**). HAL reports are kept 30 days.

## Pricing facts

Docs: https://vigiora.com/docs/account/plans-and-pricing.md and https://vigiora.com/pricing

- Free: unlimited cameras with recording, live view, playback, motion detection and remote access; AI on 2 cameras; 1 server.
- Core AI on more cameras: $2 per extra AI camera per month.
- Add-ons per camera per month: Voice detection $4, AI scene alerts $8, AI live watch $10.
- Vigiora Analytics (people counting lines, occupancy, dwell, heatmaps): $4 per camera per month, first month free. It needs an object detector on a machine with a GPU.
- Licence-plate recognition and face recognition: coming soon.
- Any paid plan: any number of servers and no limit on remote video through the relay.

## Use cases

The patterns to know (prompt → what to do). All 23, with results and pitfalls: [references/use-cases.md](https://vigiora.com/skills/vigiora-setup/references/use-cases.md).

- "Install Vigiora on this Ubuntu box and add my cameras" → check OS and architecture, ask (no server yet, so the policy is unknown), run the installer, then the setup wizard: code, site name, admin, **Health check**, **Find cameras**, **Connect cameras** (the user types each login; **Use for all <maker> cameras**), **Recording and AI**.
- "The health check says Problem" → read the check's explanation and **How to fix**; show any command and ask first when human in the loop is on; **Fix** buttons run only safe fixes (restarting the video streaming service stops video for a few seconds: say so; through the API it is `run_diagnostic_fix`, a confirm operation, so follow the policy).
- "Wrong password, 2 tries left" → stop retrying; the user checks the camera's own login. After 3 refused logins in 30 minutes Vigiora sends that camera no login until the time shown. Never guess passwords.
- "A camera went offline after a router restart" → its IP changed: Vigiora follows it by MAC (**Follow cameras when their address changes**); else **Hardware ID (MAC)** and the new address in **RTSP URL**, or an agent's lookup and relocate with a dry run first. Suggest a DHCP reservation.
- "Vigiora says Possible camera (Reolink)" → Reolink app **Settings → Network → Advanced → Server Settings**, turn on RTSP, ONVIF and HTTP, then **Scan now**.
- "Why does the Reolink show no PTZ?" → Reolink's ONVIF port is 8000: set **ONVIF address** `http://<camera-ip>:8000/onvif/device_service`, **Save**, **Detect again**.
- "Who rang the doorbell / did the delivery arrive?" → **Guardian → Chat** ("Who came to the front door this afternoon?"), **Show sources**; or the Briefing's **Moments**.
- "Turn the Entrance camera left and show me both sides" → the **Live** tab arrows, or a **Read and control** connector (ask first only if `get_agent_policy` says human in the loop is on). Compare the pictures: if nothing changed, the camera is already at its pan limit; say so.
- "Busiest hours / what did customers ask?" → **Briefing → Activity** and **Heard** (needs Voice detection).
- "The clip of 14:05 for the police" → **Playback → Clip → Set start / Set end → Export clip**, then **Links → Expires in 7 days → Create link** (shown once; revoke in **Playback → Share links**).
- "Can Claude change things by itself?" → **Read only** never changes anything; with **Read and control**, **Human in the loop** (on by default) makes it ask first, off lets it act directly (**System → AI agents**, or per app under **API keys → Connected apps**).
- "Why didn't I get an alert when Guardian saw a man?" → the Guardian entry says **Not alerted: the object detector saw no person**: the person detector watched and saw nobody (server 1.6.11+). Look at the picture; if a person is really there, untick **Only alert when the object detector also sees a person** on that rule.
- "Tell me when someone in a red shirt walks past" → Guardian chat works today; object recognition (`hal-objects`) is a preview on request, with **Things to find** such as `person, red shirt` (describe the thing, not just "shirt").
- "Connect Vigiora to Claude" / "read me today's recap" → the claude.ai connector with **Read only** (section 9), then the `daily_briefing` prompt; for a blind user, short spoken sentences, times in words, no ids or links.

## More

- All docs: https://vigiora.com/docs, for LLMs https://vigiora.com/llms.txt and https://vigiora.com/llms-full.txt.
- Download page: https://vigiora.com/download. Release notes: https://vigiora.com/releases.
