# Vigiora Server use cases: setup, troubleshooting and day-to-day

Real requests people make, grouped by who asks, with what the agent does. Each use case gives:

- **Prompt:** what the user says.
- **What the agent does:** the steps in order: app screens and buttons, commands (asked first), and the API v1 calls or MCP tools in brackets when the agent is connected to the server.
- **Result:** what the user gets.
- **Watch out:** safety notes and the problems to expect.

For writing code against the API, use the vigiora-api skill and its use cases (https://vigiora.com/skills/vigiora-api/references/use-cases.md).

## Rules for every use case

- **Never ask for passwords, enrolment codes, API keys or passphrases in the chat.** Tell the user where to type them: the setup page, the app, or an environment variable.
- **Commands on the user's computer** (`sudo` commands, an install or uninstall, a restart) **follow the human-in-the-loop policy too.** Always show the command and say what it does. When `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. When it is false, run it and report. Never delete data unless the user asked for exactly that. "Ask before `sudo`" in the use cases below means this.
- **Actions on the Vigiora server (human in the loop):** when connected to the server, check the policy 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` (moving a PTZ camera, a network scan or camera probe, moving a camera to a new address, adding, changing or deleting cameras, changing many cameras at once, a public link, a diagnostic fix, settings…); Vigiora also shows an Allow/Deny prompt or returns `confirmation_required`. If false, do them directly, without asking. On `confirmation_required`, show the user `details.action` and call again with `confirm: true` only after they say yes. In the use cases below, "the HITL check" means exactly this. Clicks in the app are different: the user makes them.
- **Least privilege:** recommend **Read only** for an AI connector unless the user wants it to act, and an API key with only the scopes it needs.
- If something is not covered by the docs, say so and link the docs page. Don't guess menu names.

## Installer or IT

### 1. Install a new server and connect the cameras

- **Prompt:** "Install Vigiora on this Ubuntu box and add the cameras on the network."
- **What the agent does:**
  1. Checks the machine: `uname -m` and `cat /etc/os-release` (Linux x86_64 or ARM64; systemd; port 8080 free).
  2. Asks the user to sign in at https://vigiora.com/download and copy their install command (it carries a one-time pairing code), then, after a yes, runs it on the server.
  3. Tells the user to copy the admin password the installer prints under **Admin sign-in for the first login (shown only this once)**, without pasting it into the chat.
  4. Guides the setup wizard at `http://<server-ip>:8080/setup`: the new administrator. If the installer did not pair the server by itself (no internet, expired or used code), also the enrolment code from vigiora.com (**Servers → + Add server → Get an enrolment code**) and the site name.
  5. **Health check** (step 4): explains each Warning or Problem; **Fix** runs only safe fixes.
  6. **Find cameras** and **Connect cameras**: the user types each camera's login and clicks **Test**; **Use for all <maker> cameras** reuses one login.
  7. **Recording and AI**: retention and the 2 free AI cameras the wizard suggests.
- **With API access:** `GET /api/v1/setup/diagnostics` [`run_diagnostics`], `GET /api/v1/network/candidates?wizard_ready=true` [`list_camera_candidates`], `POST /api/v1/cameras/actions/detect` [`detect_camera`], `POST /api/v1/cameras/actions/add-detected` [`add_detected_cameras`], `GET /api/v1/setup/ai-camera-suggestions` [`suggest_ai_cameras`], `GET /api/v1/setup/checklist` [`get_setup_checklist`].
- **Result:** a running server at `https://<name>.vigiora.com`, cameras recording, AI on two of them.
- **Watch out:** a container without systemd can't run the installer. If ufw or firewalld is on, TCP 8080 must be allowed for other computers (ask before `sudo ufw allow 8080/tcp`). The enrolment code expires after 10 minutes.

### 2. The health check shows a problem

- **Prompt:** "The setup wizard's health check says Problem for network ports."
- **What the agent does:** reads the check's explanation and its **How to fix** steps for the platform; shows any command and asks before running it (they often need `sudo`); then **Re-run health check** on the dashboard's **Setup checklist**, or `/setup?step=4`.
- **With API access:** `GET /api/v1/setup/diagnostics` (`settings:read`) [`run_diagnostics`]; for a fix of kind `auto`, the HITL check, then `POST /api/v1/setup/diagnostics/actions/fix` (`settings:write`, admins) [`run_diagnostic_fix`].
- **Result:** the check back to OK, or a clear next step.
- **Watch out:** **Restart the video streaming service** (`restart_go2rtc`) stops live view and recording on every camera for a few seconds: say so (the wizard's button asks the user itself). Graphics acceleration is information only, not a fault.

### 3. "Wrong password, 2 tries left"

- **Prompt:** "The wizard says Wrong password and 2 tries left for the garage camera."
- **What the agent does:** stops retrying. Asks the user to check the camera's own login (the label, or the maker's app), or to make a camera account for Vigiora, before clicking **Test** again.
- **Result:** the camera connected with the right login, and not locked.
- **Watch out:** cameras lock their account after a few wrong passwords. Vigiora never resends a refused password to the same camera for 30 minutes and, after 3 refused logins in 30 minutes, sends it no login at all until the time shown (over the API: `429 rate_limited`, `details.reason: camera_login_budget`). Never suggest guessing passwords. **ONVIF login refused** means some cameras need a separate ONVIF user.

### 4. Add 10 Hikvision cameras with the same login

- **Prompt:** "I have 10 Hikvision cameras with the same login. Add them all."
- **What the agent does:** in **Connect cameras**, the user tests one camera first, then clicks **Use for all Hikvision cameras**, and **Add 10 cameras**.
- **With API access:** `POST /api/v1/cameras/actions/detect` on one camera, then `POST /api/v1/cameras/actions/detect-batch` [`detect_camera_batch`], `GET /api/v1/cameras/detect-batches/{batch_id}` [`get_detection_batch`] and `POST /api/v1/cameras/actions/add-detected` [`add_detected_cameras`].
- **Result:** ten cameras with sub-stream and PTZ set up.
- **Watch out:** a wrong shared password costs a try on every camera at once, which is why one is tested first.

### 5. A camera went offline after a router restart

- **Prompt:** "The Entrance camera went offline after we restarted the router."
- **What the agent does:** explains the camera probably got a new IP address from the router. Vigiora re-finds it by MAC within a few minutes when **Follow cameras when their address changes** is on (**System → Cameras**). Otherwise: open the camera, **Edit**, read **Hardware ID (MAC)** on the **General** tab, and change the address in **RTSP URL**.
- **With API access:** `GET /api/v1/network/lookup?mac=…` (`network:read`) [`lookup_network_address`], then `POST /api/v1/cameras/{camera_id}/actions/relocate` with `{"dry_run": true}` (`cameras:write`) [`relocate_camera`], and, after the HITL check, the real move.
- **Result:** the camera back online at its new address.
- **Watch out:** always dry run first. `503 network_busy` means Vigiora is already following cameras or has done several sweeps: wait the `Retry-After` time. To stop it happening again, reserve each camera's address on the router (DHCP reservation).

### 6. Find the cameras that aren't added yet

- **Prompt:** "Are there cameras on this network that Vigiora hasn't added?"
- **What the agent does:** **System → Cameras → Camera discovery → Scan now** (a scan sends traffic on the LAN, but no logins). New cameras bring up **New camera found** with **Start setup**, **Later** or **Ignore this device**.
- **With API access:** `GET /api/v1/network/candidates` [`list_camera_candidates`], or, after the HITL check, `POST /api/v1/network/auto-scan/actions/run` [`run_auto_scan`].
- **Result:** the list of cameras found and how to connect each one.
- **Watch out:** scans stay on the server's private subnets and camera ports and send no logins. Hosted servers and containers without host networking can't scan: use **Add by address**.

### 7. A Reolink with RTSP off ("Possible camera")

- **Prompt:** "Vigiora says Possible camera for my Reolink."
- **What the agent does:** explains the Reolink answers only on port 9000 because RTSP is off. In the Reolink app: **Settings → Network → Advanced → Server Settings** → turn on RTSP, ONVIF and HTTP. Then **Scan now**, and **Start setup** on the camera.
- **With API access:** the candidate has `hint_code: reolink_rtsp_off` in `GET /api/v1/network/candidates?wizard_ready=false`.
- **Result:** the Reolink connected like any other camera.

### 8. Why does the Reolink show no PTZ?

- **Prompt:** "My Reolink can move but Vigiora shows no joystick."
- **What the agent does:** explains Reolink serves ONVIF on port 8000, not 80; from server 1.6.8 Vigiora tries 80, 8000, 8899, 2020 and 8080 itself. If PTZ is still **Not detected**: turn on ONVIF in the Reolink app; open the camera, **Edit**, and in the PTZ block set **ONVIF address** to `http://<camera-ip>:8000/onvif/device_service`, click **Save**, then **Detect again**. Or set **Joystick** to **On**.
- **Result:** the joystick on the camera's **Live** tab.
- **Watch out:** an ONVIF address typed by hand is not updated when the camera's IP changes. If the camera's message under the joystick says the login was refused, the camera user needs PTZ rights.

### 9. My camera shows offline

- **Prompt:** "My camera shows offline, help me fix it."
- **What the agent does:** walks the checklist: open the camera's own web page from the same network; check its address, login and percent-encoding (`@` as `%40`); test the RTSP address in VLC; open **Pipeline** on the camera page to see where the video stops. "Connected — no video" or RTSP `404` means a wrong stream path.
- **Result:** the cause and the fix.
- **Watch out:** **standby** is not a fault: the camera isn't recording and nobody is watching.

### 10. I can't reach my site

- **Prompt:** "The site address doesn't open from my phone."
- **What the agent does:** on the LAN, tries `http://<server-ip>:8080`; from outside, checks **System → Vigiora cloud → Access from outside this network** is **On**, **Last contact with Vigiora** is recent, and the **Remote access** card's certificate is valid. Safe checks, asked first: `curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- status` and `sudo journalctl -u vigiora -n 200`.
- **Result:** the site reachable again, or the exact failing part.
- **Watch out:** on the free plan only one server per account gets remote access. Restart only with the user's OK (`sudo systemctl restart vigiora`).

### 11. Set up remote access for my shop

- **Prompt:** "Set up remote access for my shop."
- **What the agent does:** turns on **Access from outside this network**; explains the relay and the free plan's limit (20 GB a month, 2 streams at a time); offers forwarding TCP and UDP 8555 for direct live video, and the optional Cloudflare route (**System → Vigiora cloud**), saying first that Cloudflare can read pages and app data (never video).
- **Result:** the site address working from anywhere.

## Home owner (day to day)

### 12. Who rang the doorbell this afternoon?

- **Prompt:** "Who rang the doorbell this afternoon?"
- **What the agent does:** in the app, **Guardian → Chat → + New**, ask "Who came to the front door this afternoon?", then **Show sources** for the frames. Or the Briefing's **Moments**.
- **With an AI connector:** [`list_alerts`] with `label=person` on the door camera, and [`get_alert_snapshot`] for each.
- **Result:** the visits with times and pictures.
- **Watch out:** Vigiora sees people at the door, not button presses. Guardian chat needs **AI for this camera (Core AI)** on the camera.

### 13. Did the delivery arrive?

- **Prompt:** "Did my parcel arrive today?"
- **What the agent does:** Guardian chat: "Were any parcels left at the entrance today?"; then a look at the camera's **Live** tab.
- **Result:** the time of the delivery with its picture, or "nothing seen", with the time range checked.

### 14. Turn the Entrance camera left and show me both sides

- **Prompt:** "Turn the Entrance camera left, take a photo of each side and show me."
- **What the agent does:** in the app, on the camera's **Live** tab, each arrow click moves it for half a second; **Snapshot** in Playback saves a picture. With a connector that has **Read and control**: the HITL check, then [`get_camera_snapshot`], [`move_ptz`], a new snapshot after each move, and back with [`goto_ptz_preset`].
- **Result:** pictures of each side.
- **Watch out:** compare the pictures before reporting. If the "left" picture matches the first one, the camera is probably already at its pan limit: say so instead of claiming it turned. A **Read only** connection can't move cameras; viewers never can.

### 15. Is everything OK at home?

- **Prompt:** "Is everything OK at home?"
- **What the agent does:** **Home → Briefing**, **Today**: the headline and the status chips (*N to check*, *N cameras offline*), then the moments and the latest events. With a connector: the `daily_briefing` prompt.
- **Result:** "All 4 cameras are working; one alert to check at 03:12 in the garden."
- **Watch out:** each Briefing summary is one AI request and counts towards the monthly AI allowance.

## Shop or pharmacy owner

### 16. What were the busiest hours today?

- **Prompt:** "What were the busiest hours today?"
- **What the agent does:** **Dashboard → Briefing → Activity**: one bar per hour; click a bar for its moments. Or Guardian chat: "Which camera was busiest today, and when?"
- **Result:** the busy hours.
- **Watch out:** these are events, not unique visitors. For real counts in and out, set up [Analytics](https://vigiora.com/docs/ai/analytics.md) (server 1.6.13, a paid add-on with an object detector).

### 17. What did customers ask about?

- **Prompt:** "What did customers ask about at the counter today?"
- **What the agent does:** the Briefing's **Heard** tab lists what was said near the cameras' microphones; click a quote to hear it in Playback. Guardian chat answers "Any conversation about prices today?".
- **Result:** the main topics.
- **Watch out:** needs a camera with a microphone and [Voice detection](https://vigiora.com/docs/ai/voice-detection.md) ($4 per camera per month). Summarise topics; don't repeat customers' personal details. Recording conversations may be regulated where the shop is.

### 18. Send me the clip of 14:05 to share with the police

- **Prompt:** "Send me the clip of 14:05 at the till for the police."
- **What the agent does:** **Playback**, the till camera, 14:05: **Clip**, **Set start** a little before, **Set end** a little after, **Export clip**, wait for **Ready**; then **Links**, **Expires in 7 days**, **Create link** and copy it at once (it is shown only once). On a phone, **Share** on a Briefing moment does the same.
- **With API access:** `POST /api/v1/clips` [`create_clip`], `GET /api/v1/clips/{clip_id}` [`get_clip`], then `POST /api/v1/clips/{clip_id}/shares` (`clips:share`, API keys only).
- **Result:** a link that works for 7 days without a Vigiora account, or the MP4 with **Download**.
- **Watch out:** anyone with the link can watch: choose the shortest expiry that works. Revoke it under **Playback → Share links**. A clip is at most 30 minutes. To keep the original footage, protect the recordings too.

## AI assistant over MCP (claude.ai connector)

### 19. Connect Vigiora to claude.ai

- **Prompt:** "Connect my Vigiora server to Claude."
- **What the agent does:** checks remote access is on (claude.ai connects from the internet); then **Settings → Connectors → Add custom connector**, name *Vigiora*, URL `https://<name>.vigiora.com/api/v1/mcp`, OAuth fields empty, **Connect**, sign in, choose **Read only** or **Read and control**, **Approve**.
- **Result:** Claude can answer about cameras, alerts and recordings.
- **Watch out:** recommend **Read only** unless the user wants Claude to move PTZ cameras, change cameras, acknowledge alerts, make clips or scan the network. With **Read and control**, whether Claude asks before moves, scans, relocations and camera changes is the server's [human in the loop](https://vigiora.com/docs/developers/human-in-the-loop.md) setting, on by default; the sign-in page's **Ask me before actions** checkbox sets it for this app. Sign-in connections never get Guardian, share links, settings, users, webhooks or the configuration. Revoke under **API keys → Connected apps**; access also ends after 90 days or a password change.

### 20. What the assistant may do without asking

- **Prompt:** "Can Claude change things on my server by itself?"
- **What the agent does:** explains: with **Read only** it only reads (cameras, snapshots, alerts, recordings, clips, events). With **Read and control** it can also change cameras, turn AI on or off, move PTZ, acknowledge alerts, protect recordings, make clips, and scan the network and fix a camera's address. Whether it asks first is **human in the loop** [`get_agent_policy`]: on (the default), Vigiora makes it get the user's approval for each of those, with an **Allow / Deny** prompt where the app supports it; off, it acts directly. Admins set it for the server under **System → AI agents**; each connected app can follow it or choose **Always ask** or **Never ask** under **API keys → Connected apps** (only admins can choose **Never ask** while the server setting is on).
- **Result:** the user picks the access, and whether to be asked, that they are comfortable with.

### 21. Find people by what they wear

- **Prompt:** "Can Vigiora tell me when someone in a red shirt walks past the entrance?"
- **What the agent does:** explains that Guardian already describes clothing in its scene descriptions, so **Guardian → Chat** ("Was anyone in a red shirt at the entrance in the last hour?") works today on a camera with AI. For detections of named things, object recognition (`hal-objects`, a [HAL service](https://vigiora.com/docs/ai/hal-services.md)) is a preview available on request (https://vigiora.com/contact); it needs a machine with an NVIDIA GPU. Once it runs: the camera's **AI Guardian** tab, **Object recognition (any object)**, **Things to find**: `person, red shirt`; then a label alert rule on `red shirt` if the user wants an alert.
- **With API access:** `GET /api/v1/cameras/{camera_id}/detection-events?source=hal-objects&label=red shirt&from=…` (`alerts:read`) [`list_camera_detection_events`]; `POST /api/v1/cameras/{camera_id}/actions/detect-objects` (`cameras:read`) [`detect_objects`] for the live frame.
- **Result:** the moments someone in a red shirt was seen, with pictures.
- **Watch out:** describe the thing: "red shirt" or "black t-shirt" works better than "t-shirt". Scores of this kind of model are low (0.25 is the default threshold). Don't look for a public runner image or invent install commands: there is none yet.

## Accessibility

### 22. Spoken descriptions for a blind or low-vision user

- **Prompt:** "I'm blind. Set things up so I can ask who is at the door and hear the answer."
- **What the agent does:** connects the claude.ai connector with **Read only** (use case 19), then shows the questions that work by voice in an assistant that speaks: "Who is at the door?" ([`get_camera_snapshot`], then a short description), "Read me today's recap" (the `daily_briefing` prompt), "Did anyone come to the door while I was out?".
- **Result:** answers in one or two short sentences, most important first, with times in words and no ids, links or tables read aloud.
- **Watch out:** the agent says when a picture is not live. It describes what is visible and doesn't guess who someone is unless face recognition has named them.

## Home owner: alerts

### 23. Too many alerts from shadows and sunlight, or a missed alert

- **Prompt:** "Every sunny afternoon I get alerts that someone is in the driveway, and there's nobody there."
- **What the agent does:** checks the server version (**System → Updates**); from 1.6.11, motion detection ignores most shadows, sunlight and lighting changes, so update first. Then, on a camera with a person detector (object recognition), checks that the alert rule about people has **Only alert when the object detector also sees a person** ticked (camera → **AI Guardian** tab → **Alerts**; it is on by default). If motion still fires on a busy scene, raises **Motion threshold**, for example from 25 to 35.
- **With API access:** `GET /api/v1/guardian/entries?camera_id={camera_id}&from=…` (`guardian:read`) [`list_guardian_entries`]: entries with `unconfirmed_alerts` were held back by the detector; `PATCH /api/v1/alert-rules/{alert_rule_id}` `{"require_detector_confirmation":true}` (`alerts:write`) [`update_alert_rule`] after the HITL check.
- **Result:** fewer false alerts. Held-back matches stay in the Guardian history as **Not alerted: the object detector saw no person**.
- **Watch out:** a detector can miss a small, distant or seated person. If the user says an alert was missed, open the entry's picture; if a person is visible, untick the option on that rule. Cars or people passing on a street in view are real motion; only re-aiming the camera removes those events.
