---
title: "Human in the loop"
description: "Claude, ChatGPT, Codex 같은 AI 에이전트가 카메라를 움직이거나, 네트워크를 스캔하거나, 설정을 바꾸기 전에 사용자의 승인을 받아야 하는지, 아니면 바로 실행할지 선택합니다."
url: https://vigiora.com/ko/docs/developers/human-in-the-loop
updated: 2026-12-02T10:45:23.000Z
---

# Human in the loop

> Claude, ChatGPT, Codex 같은 AI 에이전트가 카메라를 움직이거나, 네트워크를 스캔하거나, 설정을 바꾸기 전에 사용자의 승인을 받아야 하는지, 아니면 바로 실행할지 선택합니다.

**Human in the loop**(사람의 확인)는 서버에 연결된 AI 에이전트가 PTZ 카메라 이동, 네트워크 스캔, 카메라 삭제, 설정 변경 같은 위험한 작업을 하기 전에 사용자에게 먼저 물어봐야 하는지를 결정합니다.

- **켜짐:** 에이전트는 위험한 작업마다 사용자의 승인을 받아야 합니다. 이를 지원하는 앱은 Vigiora가 보내는 **Allow / Deny** 프롬프트를 보여 주고, 그렇지 않은 앱은 먼저 채팅에서 물어봐야 합니다.
- **꺼짐:** 에이전트는 묻지 않고 바로 실행합니다.

이 설정은 [MCP 서버](https://vigiora.com/docs/developers/mcp)를 사용하는 AI 에이전트(claude.ai, Claude Desktop, ChatGPT, Claude Code, Codex, Cursor 등)에 적용됩니다. [REST API](https://vigiora.com/docs/developers/api-v1)를 호출하는 스크립트에는 절대 프롬프트가 표시되지 않습니다. 읽기(카메라, 스냅샷, 알림, 녹화)에는 승인이 필요하지 않습니다.

Human in the loop는 **기본적으로 켜져** 있습니다. 에이전트가 무엇을 할 수 있는지는 전혀 바꾸지 않습니다. 그것은 여전히 키의 스코프나 사용자가 승인한 접근 범위, 사용자의 역할, 카메라 권한이 결정합니다. 이 설정은 에이전트가 먼저 물어보는지만 결정합니다.

## 설정 위치

설정할 수 있는 곳은 네 군데입니다. 서버 설정은 모든 사람에게 적용되고, 각 API 키와 각 연결된 앱은 그 설정을 따르거나 재정의할 수 있습니다.

| 위치 | 대상 | 선택 항목 |
| --- | --- | --- |
| **Settings** → **AI and add-ons** → **AI agents** | admin이 변경하고, operator는 볼 수 있음 | 서버 전체에 대해 **Human in the loop** 켜기 또는 끄기. |
| **Settings** → **People and access** → **API keys**의 **Ask before actions** 열 | 각 사용자는 자기 키에 대해, admin은 모든 키에 대해 | **Use server setting**, **Always ask** 또는 **Never ask**. |
| **API keys → Connected apps**의 **Ask before actions** 열 | 각 사용자는 자기 앱에 대해, admin은 모든 앱에 대해 | **Use server setting**, **Always ask** 또는 **Never ask**. |
| 커넥터의 로그인 페이지, **Ask me before actions** | 로그인하는 사람 | 이 앱에 대해 체크 또는 체크 해제. |

변경은 에이전트의 다음 작업부터 적용됩니다. 에이전트를 다시 연결할 필요는 없습니다.

### 서버 설정

1. **AI agents 탭 열기**

   **Settings** → **AI and add-ons** → **AI agents**를 엽니다.

2. **스위치 켜기 또는 끄기**

   **Human in the loop**를 켜거나 끕니다. 바로 저장됩니다.

![System 페이지의 AI agents 탭. Human in the loop 스위치가 켜져 있고, 에이전트가 먼저 묻는 작업 목록이 표시됨](https://vigiora.com/docs/img/developers/human-in-the-loop-1-server-setting.png)

*System → AI agents. 스위치가 켜져 있는 동안 에이전트가 먼저 묻는 작업을 상자에 나열합니다.*

![휴대폰에서 본 같은 AI agents 탭. 스위치와 작업 목록이 표시됨](https://vigiora.com/docs/img/developers/human-in-the-loop-2-server-setting-phone.png)

*휴대폰에서는 탭 표시줄을 옆으로 스크롤하여 AI agents에 도달합니다.*

### API 키별, 연결된 앱별

**Settings** → **People and access** → **API keys**에서 각 키에는 **Ask before actions** 메뉴가 있고, **Connected apps** 아래의 각 앱에도 같은 메뉴가 있습니다.

| 선택 | What it does | Default |
| --- | --- | --- |
| Use server setting | Settings → AI and add-ons → AI agents를 따릅니다. 메뉴에 서버 설정이 괄호 안에 표시됩니다(예: (Always ask)). | Yes |
| Always ask | 이 키 또는 앱을 사용하는 에이전트는 서버 설정이 꺼져 있어도 항상 먼저 묻습니다. |  |
| Never ask | 이 키 또는 앱을 사용하는 에이전트는 바로 실행합니다. 서버 설정이 켜져 있는 동안에는 admin만 선택할 수 있습니다. |  |

![키마다 Ask before actions 메뉴가 있는 API 키 목록: Use server setting (Always ask), Set by an admin으로 표시된 Never ask, Always ask](https://vigiora.com/docs/img/developers/human-in-the-loop-3-api-keys.png)

*달리 선택하지 않는 한 각 키는 서버 설정을 따릅니다. admin이 선택한 값은 Set by an admin으로 표시됩니다.*

![Connected apps 목록. Claude는 Use server setting (Always ask), ChatGPT는 Always ask](https://vigiora.com/docs/img/developers/human-in-the-loop-4-connected-apps.png)

*연결된 앱에도 같은 메뉴가 있습니다.*

### 앱을 연결할 때

claude.ai, ChatGPT 또는 로그인하는 다른 앱에 Vigiora를 추가하면, Vigiora 로그인 페이지의 접근 선택 아래에 **Ask me before actions** 체크박스가 있습니다. 처음에는 서버 설정과 같은 값으로 시작합니다. 그대로 두면 앱은 서버 설정을 따르고, 바꾸면 앱은 자체 **Always ask** 또는 **Never ask** 값을 갖게 되며, 나중에 **Connected apps**에서 변경할 수 있습니다.

![Claude용 Vigiora 로그인 페이지. Read only가 선택되고 Ask me before actions 체크박스가 체크되어 있으며, 이 서버에서 human in the loop가 켜져 있다는 안내가 표시됨](https://vigiora.com/docs/img/developers/human-in-the-loop-5-consent.png)

*서버 설정이 켜져 있는 동안에는 admin만 Ask me before actions를 체크 해제할 수 있습니다.*

## 끌 수 있는 사람

- 서버 설정은 **admin만** 변경할 수 있습니다.
- 서버 설정이 **켜져** 있는 동안에는 admin만 키나 앱에 대해 **Never ask**를 선택할 수 있습니다(또는 앱을 연결할 때 체크박스를 해제할 수 있습니다). 다른 사용자는 **Use server setting** 또는 **Always ask**를 선택할 수 있습니다.
- 서버 설정이 **꺼져** 있는 동안에는 모든 사용자가 자기 키와 앱에 대해 어떤 값이든 선택할 수 있습니다.
- 사용자가 서버 설정이 꺼져 있을 때 **Never ask**를 선택했는데 admin이 나중에 서버 설정을 켜면, 그 선택은 더 이상 유효하지 않습니다. 키 또는 앱은 다시 묻게 됩니다. 이때 메뉴에는 **Asks anyway: an admin turned it on for the server.**라고 표시됩니다. admin이 선택한 **Never ask**는 계속 유효하며, **Set by an admin**으로 표시됩니다.
- 에이전트가 스스로 끌 수는 없습니다. API 키와 연결된 앱은 키나 앱을 관리할 수 없고, 커넥터로 로그인한 앱은 설정 도구를 절대 받지 못하며, 서버 설정을 바꾸는 것 자체가 승인이 필요한 작업입니다.

## 승인이 필요한 작업

Human in the loop가 켜져 있는 동안 에이전트는 다음 종류의 작업 전에 묻습니다.

- PTZ 카메라 이동 또는 프리셋으로 이동;
- 네트워크 스캔 또는 탐색, 카메라 주소 조회;
- 카메라 추가, 변경, 이동, 켜기/끄기, 삭제, 그리고 카메라 AI 켜기/끄기;
- 클립 공유 또는 삭제, 녹화 보호 해제;
- 설정 변경(이 설정과 카메라 검색 포함), 상태 점검의 자동 수정 실행, 구성 가져오기;
- 사용자 생성, 변경, 삭제;
- 웹훅 생성, 변경, 삭제, 그리고 웹훅 시크릿 교체;
- 알림 발생 또는 삭제, 알림 규칙 생성, 변경, 켜기/끄기, 삭제(1.6.10부터);
- 카메라의 AI 서비스 켜기/끄기 또는 설정 변경, PTZ 프리셋 저장, 기준 프레임 삭제(1.6.10부터);
- 사이트, 그룹, 방, 스피커, 레이아웃 생성, 변경, 삭제, 얼굴 이름 지정 또는 삭제, 방에서 말하기 또는 오디오 재생, 스피커 테스트(1.6.10부터);
- AI Live 시작, Guardian 대화 삭제, vigiora-client 재시작, 업데이트, 제거, 서버 업데이트 확인(1.6.10부터);
- Guardian 순간 삭제, 최근 삭제 항목 비우기, 사진과 클립 다시 계산, 클립 프리롤과 삭제된 순간 보관 기간 변경(1.6.13부터);
- Analytics 라인, 존, 영역 생성, 변경, 삭제, 카메라의 분석 설정, 영역의 재실 인원 설정, 평면도와 평면도 항목 생성, 변경, 삭제(1.6.13부터);
- 방 알림 규칙, 카메라 스피커로 말하기, Home Assistant 설치, 업데이트, 재시작, 연결, 제거(1.6.13부터);
- Home Assistant 브리지 연결, 공유할 장치 선택, 장치 연결, 트리거, 규칙 동작, 방 신호, 장치에 명령 보내기(1.6.13부터);
- MQTT, Telegram, LINE 연동 변경(1.6.15부터);
- Analytics 알림 규칙 생성, 변경, 삭제, 출입구 디스플레이 생성 또는 취소, 카메라를 DHCP로 이동, Home Assistant 인스턴스 추가, 변경, 연결, 연결 해제, 제거 및 공유 장치 선택(1.6.16부터);
- 카메라의 사이렌 울리기, 그리고 끄지 못한 사이렌을 조용함으로 표시하기(1.7.3부터).

> **민감한 장치는 항상 묻습니다**
>
> `command_home_assistant_device`를 통해 **민감한** Home Assistant 장치(잠금장치, 경보 패널, 사이렌)에 보내는 명령은 human in the loop가 꺼져 있어도 항상 사용자의 승인이 필요합니다.

읽기에는 승인이 필요하지 않으며, 무해한 몇 가지 쓰기도 마찬가지입니다: PTZ 이동 중지, 사이렌과 모든 소리 멈추기(1.7.3부터), 알림 확인 처리, 녹화 보호, 클립 또는 다운로드 링크 만들기, 웹훅 테스트, 삭제된 순간 복원, 연동 또는 Home Assistant 인스턴스 테스트(1.6.15와 1.6.16부터), 설명으로 평면도 그리기, 변경하기, 변경 되돌리기(1.6.17부터), AI 보기 구성 또는 다듬기와 변환 텍스트 번역 또는 요약(1.6.18부터), 그리고 카메라 화면에서 이름 짓기, 평면도의 방 동기화, Zigbee 또는 IoT 기기의 이름 바꾸기·재구성·식별, 클라이언트 오류 보고의 해결 처리 또는 다시 열기(1.6.19부터). AI를 쓰는 작업은 AI 크레딧을 사용하므로 에이전트는 실행 직전에 알려 주는 것이 좋습니다. AI 보기 삭제는 확인을 요청하며(1.6.18부터), Zigbee 설정, 페어링 허용 시간 열기, 기기 공유·숨기기·잊기·제거, IoT 기기 변경도 마찬가지입니다(1.6.19부터). 서명된 실시간 영상 및 스냅샷 링크(`create_camera_stream_url`, `create_camera_snapshot_url`)는 읽기입니다. 카메라 프레임이나 업로드한 사진에서 물체 찾기(`detect_objects`, `analyze_image`)와 녹화에서 프레임 가져오기도 읽기입니다.

정확한 목록은 [API 레퍼런스](https://vigiora.com/docs/developers/api-reference)에서 생성됩니다(`x-vigiora-confirm`으로 표시된 작업과 파괴적 작업). 외부 AI 도구처럼 사용자 세션 전용인 작업은 제외됩니다. 에이전트는 호출할 수 없기 때문입니다.

| MCP tool | API v1 operation | What it does |
| --- | --- | --- |
| `accept_ptz_patrol_scan` | `POST /api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}/actions/accept` | Save the proposed patrol |
| `add_detected_cameras` | `POST /api/v1/cameras/actions/add-detected` | Add detected cameras |
| `apply_perception_coach` | `POST /api/v1/cameras/{camera_id}/actions/apply-perception-coach` | Apply the Perception Coach suggestion |
| `apply_room_perception_coach` | `POST /api/v1/rooms/{room_id}/actions/apply-perception-coach` | Apply the Perception Coach suggestion to a room |
| `bulk_update_cameras` | `POST /api/v1/cameras/actions/bulk-update` | Change several cameras at once |
| `check_system_update` | `POST /api/v1/system/update/actions/check` | Check for an update |
| `client_action_install_ffmpeg` | `POST /api/v1/clients/{client_id}/actions/install-ffmpeg` | Install ffmpeg on a client |
| `client_action_restart` | `POST /api/v1/clients/{client_id}/actions/restart` | Restart a vigiora-client |
| `client_action_resync_cameras` | `POST /api/v1/clients/{client_id}/actions/resync-cameras` | Resync a client's cameras |
| `client_action_update` | `POST /api/v1/clients/{client_id}/actions/update` | Update a vigiora-client |
| `command_home_assistant_device` | `POST /api/v1/integrations/home-assistant/devices/{entity_id}/actions/command` | Run a command on a device |
| `connect_existing_home_assistant` | `POST /api/v1/integrations/home-assistant/actions/connect-existing` | Connect an existing Home Assistant |
| `connect_home_assistant_bridge` | `POST /api/v1/integrations/home-assistant/bridge/actions/connect` | Connect Home Assistant's devices |
| `connect_home_assistant_instance` | `POST /api/v1/integrations/home-assistant/instances/{instance_id}/actions/connect` | Connect a Home Assistant instance |
| `create_alert` | `POST /api/v1/alerts` | Report an alert |
| `create_alert_rule` | `POST /api/v1/cameras/{camera_id}/alert-rules` | Create a Guardian alert rule |
| `create_analytics_alert_rule` | `POST /api/v1/analytics/alert-rules` | Create an analytics alert rule |
| `create_analytics_area` | `POST /api/v1/analytics/areas` | Create an analytics area |
| `create_analytics_display` | `POST /api/v1/analytics/displays` | Create a door display |
| `create_analytics_line` | `POST /api/v1/analytics/lines` | Create a counting line |
| `create_analytics_zone` | `POST /api/v1/analytics/zones` | Create an analytics zone |
| `create_automation` | `POST /api/v1/automations` | Create an automation |
| `create_camera` | `POST /api/v1/cameras` | Add a camera |
| `create_camera_live_share` | `POST /api/v1/cameras/{camera_id}/live-shares` | Create a live share link |
| `create_client_camera` | `POST /api/v1/clients/{client_id}/cameras` | Add a camera on a client's network |
| `create_clip_share` | `POST /api/v1/clips/{clip_id}/shares` | Create a public share link |
| `create_floor_plan` | `POST /api/v1/floor-plans` | Upload a floor plan |
| `create_group` | `POST /api/v1/groups` | Create a group |
| `create_home_assistant_instance` | `POST /api/v1/integrations/home-assistant/instances` | Add a Home Assistant instance |
| `create_home_assistant_trigger` | `POST /api/v1/integrations/home-assistant/triggers` | Create a device trigger |
| `create_label_alert_rule` | `POST /api/v1/cameras/{camera_id}/label-alert-rules` | Create a label alert rule |
| `create_library_album_share` | `POST /api/v1/library/albums/{album_id}/shares` | Create a public link to an album |
| `create_library_item_share` | `POST /api/v1/library/items/{item_id}/shares` | Create a public link to a saved item |
| `create_motion_rule` | `POST /api/v1/cameras/{camera_id}/motion-rules` | Create a smart-motion rule |
| `create_motion_zone` | `POST /api/v1/cameras/{camera_id}/motion-zones` | Add a motion zone to a camera |
| `create_output` | `POST /api/v1/outputs` | Add a speaker |
| `create_robot_place` | `POST /api/v1/cameras/{camera_id}/robot/places` | Save the robot's current spot as a place |
| `create_room` | `POST /api/v1/rooms` | Create a room |
| `create_room_alert_rule` | `POST /api/v1/rooms/{room_id}/alert-rules` | Create a room Guardian alert rule |
| `create_runner_install_token` | `POST /api/v1/runners/install-token` | Mint a runner install token |
| `create_site` | `POST /api/v1/sites` | Create a site |
| `create_user` | `POST /api/v1/users` | Add a user |
| `create_webhook` | `POST /api/v1/webhooks` | Create a webhook |
| `delete_alert` | `DELETE /api/v1/alerts/{alert_id}` | Delete an alert |
| `delete_alert_rule` | `DELETE /api/v1/alert-rules/{alert_rule_id}` | Delete a Guardian alert rule |
| `delete_analytics_alert_rule` | `DELETE /api/v1/analytics/alert-rules/{analytics_alert_rule_id}` | Delete an analytics alert rule |
| `delete_analytics_area` | `DELETE /api/v1/analytics/areas/{analytics_area_id}` | Delete an analytics area |
| `delete_analytics_line` | `DELETE /api/v1/analytics/lines/{analytics_line_id}` | Delete a counting line |
| `delete_analytics_zone` | `DELETE /api/v1/analytics/zones/{analytics_zone_id}` | Delete an analytics zone |
| `delete_automation` | `DELETE /api/v1/automations/{automation_id}` | Delete an automation |
| `delete_branding_logo` | `DELETE /api/v1/branding/logo` | Remove the server's logo |
| `delete_camera` | `DELETE /api/v1/cameras/{camera_id}` | Delete a camera |
| `delete_camera_ai_live_session` | `DELETE /api/v1/ai-live/sessions/{ai_live_session_id}` | Delete an AI Live session |
| `delete_client` | `DELETE /api/v1/clients/{client_id}` | Remove a vigiora-client |
| `delete_clip` | `DELETE /api/v1/clips/{clip_id}` | Delete a clip |
| `delete_face` | `DELETE /api/v1/faces/{face_id}` | Delete a face |
| `delete_floor_plan` | `DELETE /api/v1/floor-plans/{floor_plan_id}` | Delete a floor plan |
| `delete_floor_plan_walkthrough` | `DELETE /api/v1/floor-plans/walkthroughs/{walkthrough_id}` | Delete a walk-through |
| `delete_group` | `DELETE /api/v1/groups/{group_id}` | Delete a group |
| `delete_guardian_conversation` | `DELETE /api/v1/guardian/conversations/{conversation_id}` | Delete a Guardian conversation |
| `delete_guardian_entries` | `POST /api/v1/guardian/entries/actions/delete` | Delete Guardian entries in bulk |
| `delete_guardian_entry` | `DELETE /api/v1/guardian/entries/{entry_id}` | Delete a Guardian entry |
| `delete_home_assistant_instance` | `DELETE /api/v1/integrations/home-assistant/instances/{instance_id}` | Remove a Home Assistant instance |
| `delete_home_assistant_trigger` | `DELETE /api/v1/integrations/home-assistant/triggers/{trigger_id}` | Delete a device trigger |
| `delete_label_alert_rule` | `DELETE /api/v1/label-alert-rules/{label_alert_rule_id}` | Delete a label alert rule |
| `delete_layout` | `DELETE /api/v1/layouts/{layout_id}` | Delete a layout |
| `delete_layout_sequence` | `DELETE /api/v1/layout-sequences/{layout_sequence_id}` | Delete a layout sequence |
| `delete_library_album` | `DELETE /api/v1/library/albums/{album_id}` | Delete an album |
| `delete_library_folder` | `POST /api/v1/library/folders/actions/delete` | Delete an empty library folder |
| `delete_library_item` | `DELETE /api/v1/library/items/{item_id}` | Delete a saved item |
| `delete_memory_fact` | `DELETE /api/v1/memory/facts/{fact_id}` | Forget a remembered fact |
| `delete_motion_rule` | `DELETE /api/v1/motion-rules/{motion_rule_id}` | Delete a smart-motion rule |
| `delete_motion_zone` | `DELETE /api/v1/cameras/{camera_id}/motion-zones/{zone_id}` | Remove a motion zone |
| `delete_output` | `DELETE /api/v1/outputs/{output_id}` | Delete a speaker |
| `delete_privacy_mask` | `DELETE /api/v1/cameras/{camera_id}/privacy-masks/{mask_id}` | Remove a privacy mask |
| `delete_ptz_patrol` | `DELETE /api/v1/cameras/{camera_id}/ptz/patrols/{patrol_id}` | Delete a patrol |
| `delete_ptz_preset` | `DELETE /api/v1/cameras/{camera_id}/ptz/presets/{preset_token}` | Delete a PTZ preset |
| `delete_recording_cards` | `POST /api/v1/recordings/cards/actions/delete` | Delete whole cards |
| `delete_reference_frame` | `DELETE /api/v1/cameras/{camera_id}/reference-frame` | Delete a reference frame |
| `delete_robot_nav_map` | `DELETE /api/v1/cameras/{camera_id}/robot/nav/map` | Forget everything the robot learned |
| `delete_robot_place` | `DELETE /api/v1/cameras/{camera_id}/robot/places/{place_id}` | Delete a robot place |
| `delete_room` | `DELETE /api/v1/rooms/{room_id}` | Delete a room |
| `delete_room_alert_rule` | `DELETE /api/v1/rooms/{room_id}/alert-rules/{alert_rule_id}` | Delete a room Guardian alert rule |
| `delete_room_inventory` | `DELETE /api/v1/rooms/{room_id}/inventory` | Clear a room's stock list |
| `delete_site` | `DELETE /api/v1/sites/{site_id}` | Delete a site |
| `delete_user` | `DELETE /api/v1/users/{user_id}` | Delete a user |
| `delete_view` | `DELETE /api/v1/views/{view_id}` | Delete an AI view |
| `delete_webhook` | `DELETE /api/v1/webhooks/{webhook_id}` | Delete a webhook |
| `detect_camera` | `POST /api/v1/cameras/actions/detect` | Detect a camera's streams |
| `detect_camera_batch` | `POST /api/v1/cameras/actions/detect-batch` | Detect several cameras with one login |
| `disable_alert_rule` | `POST /api/v1/alert-rules/{alert_rule_id}/actions/disable` | Disable a Guardian alert rule |
| `disable_camera` | `POST /api/v1/cameras/{camera_id}/actions/disable` | Disable a camera |
| `disable_camera_ai` | `POST /api/v1/cameras/{camera_id}/actions/disable-ai` | Switch AI off for a camera |
| `disable_camera_ai_service` | `POST /api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/disable` | Switch an AI service off for a camera |
| `disconnect_home_assistant_bridge` | `POST /api/v1/integrations/home-assistant/bridge/actions/disconnect` | Disconnect Home Assistant's devices |
| `disconnect_home_assistant_instance` | `POST /api/v1/integrations/home-assistant/instances/{instance_id}/actions/disconnect` | Disconnect a Home Assistant instance |
| `disconnect_loona` | `POST /api/v1/loona/actions/disconnect` | Disconnect from the Loona robot |
| `dismiss_auto_light_action` | `DELETE /api/v1/iot/auto-actions/{auto_action_id}` | Dismiss an automatic light action |
| `dismiss_sound` | `POST /api/v1/sounds/{sound_id}/actions/dismiss` | Dismiss a siren that could not be switched off |
| `drive_loona` | `POST /api/v1/loona/actions/drive` | Drive the Loona robot |
| `emote_loona` | `POST /api/v1/loona/actions/emote` | Make the Loona robot play an expression |
| `enable_alert_rule` | `POST /api/v1/alert-rules/{alert_rule_id}/actions/enable` | Enable a Guardian alert rule |
| `enable_camera` | `POST /api/v1/cameras/{camera_id}/actions/enable` | Enable a camera |
| `enable_camera_ai` | `POST /api/v1/cameras/{camera_id}/actions/enable-ai` | Switch AI on for a camera |
| `enable_camera_ai_service` | `POST /api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/enable` | Switch an AI service on for a camera |
| `expose_home_assistant_zigbee_device` | `POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/expose` | Share a Zigbee device with Vigiora |
| `expose_io_t_device` | `POST /api/v1/iot/devices/{iot_device_id}/actions/expose` | Share an IoT device with Vigiora |
| `find_robot_keyboards` | `POST /api/v1/cameras/{camera_id}/robot/actions/find-keyboards` | Find Bluetooth MIDI keyboards with a robot camera |
| `forget_io_t_device` | `POST /api/v1/iot/devices/{iot_device_id}/actions/forget` | Forget an IoT device |
| `goto_ptz_preset` | `POST /api/v1/cameras/{camera_id}/ptz/presets/{preset_token}/actions/goto` | Go to a PTZ preset |
| `goto_robot_place` | `POST /api/v1/cameras/{camera_id}/robot/places/{place_id}/actions/goto` | Send the robot to a place |
| `import_automation` | `POST /api/v1/automations/actions/import` | Create an automation from a blueprint |
| `import_config` | `POST /api/v1/config/import` | Import a configuration |
| `install_addon` | `POST /api/v1/addons/{addon_id}/install` | Install a catalogue add-on |
| `install_home_assistant` | `POST /api/v1/integrations/home-assistant/actions/install` | Install Home Assistant |
| `install_system_update` | `POST /api/v1/system/update/actions/install` | Install the staged update |
| `list_ai_models` | `POST /api/v1/system/ai-model/actions/list-models` | List the models of a model server |
| `lookup_network_address` | `GET /api/v1/network/lookup` | Find the current IP of a MAC (or the MAC of an IP) |
| `move_device_to_dhcp` | `POST /api/v1/network/devices/actions/move-to-dhcp` | Move a camera from a conflicting static address to DHCP |
| `move_ptz` | `POST /api/v1/cameras/{camera_id}/ptz/actions/move` | Move the camera |
| `move_ptz_in_room` | `POST /api/v1/rooms/{room_id}/actions/move-ptz` | Move a room camera |
| `patch_motion_zone_settings` | `PATCH /api/v1/cameras/{camera_id}/motion-zone-settings` | Set a camera's motion zone mode |
| `patch_perception_coach_settings` | `PATCH /api/v1/agents/perception-coach/settings` | Change the Perception Coach settings |
| `permit_home_assistant_zigbee_join` | `POST /api/v1/integrations/home-assistant/actions/zigbee-permit-join` | Let a new Zigbee device join |
| `photo_loona` | `POST /api/v1/loona/actions/photo` | Make the Loona robot take a photo |
| `play_audio_in_room` | `POST /api/v1/rooms/{room_id}/actions/play-audio` | Play audio in a room |
| `play_robot_melody` | `POST /api/v1/cameras/{camera_id}/robot/actions/play-melody` | Play a melody on a Bluetooth keyboard with a robot camera |
| `purge_guardian_entries` | `POST /api/v1/guardian/trash/actions/purge` | Permanently delete recently deleted entries |
| `recompute_guardian_clips` | `POST /api/v1/guardian/entries/actions/recompute-clips` | Re-cut the clips of recent Guardian entries |
| `recompute_guardian_frames` | `POST /api/v1/guardian/entries/actions/recompute-frames` | Recompute the pictures of recent Guardian entries |
| `reconnect_loona` | `POST /api/v1/loona/actions/reconnect` | Reconnect to the Loona robot |
| `refresh_loona` | `POST /api/v1/loona/actions/refresh` | Ask the Loona robot for its state now |
| `relocate_camera` | `POST /api/v1/cameras/{camera_id}/actions/relocate` | Move a camera to its MAC's current address |
| `remove_addon` | `DELETE /api/v1/addons/{addon_id}` | Remove an add-on |
| `remove_home_assistant_zigbee_device` | `POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/remove` | Remove a Zigbee device |
| `remove_io_t_device` | `POST /api/v1/iot/devices/{iot_device_id}/actions/remove` | Remove a Zigbee device from the network |
| `rename_face` | `PATCH /api/v1/faces/{face_id}` | Name a face |
| `replace_floor_plan_items` | `POST /api/v1/floor-plans/{floor_plan_id}/items/actions/replace` | Replace what is placed on a floor plan |
| `replace_room_inventory` | `POST /api/v1/rooms/{room_id}/inventory/actions/replace` | Replace a room's stock list |
| `restart_home_assistant` | `POST /api/v1/integrations/home-assistant/actions/restart` | Restart Home Assistant |
| `resume_ptz_patrol` | `POST /api/v1/cameras/{camera_id}/ptz/patrol/actions/resume` | Resume the patrol |
| `return_robot_home` | `POST /api/v1/cameras/{camera_id}/robot/nav/actions/return-home` | Send the robot home |
| `revert_perception_coach` | `POST /api/v1/cameras/{camera_id}/actions/revert-perception-coach` | Restore the human prompt |
| `revert_room_perception_coach` | `POST /api/v1/rooms/{room_id}/actions/revert-perception-coach` | Restore the human room rules |
| `revoke_account_session` | `DELETE /api/v1/account/sessions/{session_id}` | Sign a device out |
| `revoke_analytics_display` | `DELETE /api/v1/analytics/displays/{analytics_display_id}` | Revoke a door display |
| `rotate_automation_webhook` | `POST /api/v1/automations/{automation_id}/actions/rotate-webhook` | Replace an automation's web address |
| `rotate_webhook_secret` | `POST /api/v1/webhooks/{webhook_id}/actions/rotate-secret` | Rotate the signing secret |
| `run_auto_scan` | `POST /api/v1/network/auto-scan/actions/run` | Scan the network for new cameras now |
| `run_automation` | `POST /api/v1/automations/{automation_id}/actions/run` | Run or test an automation now |
| `run_diagnostic_fix` | `POST /api/v1/setup/diagnostics/actions/fix` | Run an automatic fix |
| `save_ptz_preset` | `POST /api/v1/cameras/{camera_id}/ptz/presets` | Save a PTZ preset |
| `scan_bluetooth` | `POST /api/v1/bluetooth/actions/scan` | Scan for Bluetooth devices now |
| `scan_robot_bluetooth` | `POST /api/v1/cameras/{camera_id}/robot/actions/bluetooth-scan` | Scan Bluetooth with a robot camera |
| `send_error_reports` | `POST /api/v1/system/error-reports/actions/send` | Send error reports to Vigiora |
| `sense_robot` | `POST /api/v1/cameras/{camera_id}/robot/actions/sense` | Scan the room with a robot camera |
| `set_analytics_occupancy` | `POST /api/v1/analytics/areas/{analytics_area_id}/actions/set-occupancy` | Correct an area's occupancy |
| `set_camera_clock` | `POST /api/v1/cameras/{camera_id}/actions/set-clock` | Set a camera's clock to the server's |
| `set_detected_camera_clock` | `POST /api/v1/cameras/actions/set-clock` | Set the clock of a camera being added |
| `set_home_assistant_entity_access` | `POST /api/v1/integrations/home-assistant/entities/{entity_id}/actions/set-access` | Expose a Home Assistant entity |
| `set_home_assistant_instance_entity_access` | `POST /api/v1/integrations/home-assistant/instances/{instance_id}/entities/{entity_id}/actions/set-access` | Expose an instance's entity |
| `set_io_t_device_entity` | `POST /api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/set` | Change a device's control or setting |
| `set_robot_camera` | `POST /api/v1/cameras/{camera_id}/robot/actions/camera` | Switch a robot camera's picture on or off |
| `setup_home_assistant_zigbee` | `POST /api/v1/integrations/home-assistant/actions/setup-zigbee` | Set up Zigbee in Home Assistant |
| `speak_in_room` | `POST /api/v1/rooms/{room_id}/actions/speak` | Speak in a room |
| `speak_loona` | `POST /api/v1/loona/actions/speak` | Make the Loona robot speak |
| `speak_on_camera` | `POST /api/v1/cameras/{camera_id}/actions/speak` | Speak through a camera |
| `start_camera_ai_live_session` | `POST /api/v1/ai-live/sessions` | Start AI Live on a camera |
| `start_camera_panorama` | `POST /api/v1/cameras/{camera_id}/panorama` | Capture a panorama |
| `start_camera_siren` | `POST /api/v1/cameras/{camera_id}/actions/siren` | Sound a camera's siren |
| `start_io_t_light_effect` | `POST /api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/start-effect` | Run a light effect (blink, pulse, strobe) |
| `start_network_scan` | `POST /api/v1/network/actions/scan` | Scan the local network |
| `start_ptz_patrol` | `POST /api/v1/cameras/{camera_id}/ptz/patrol/actions/start` | Start a patrol |
| `start_ptz_patrol_scan` | `POST /api/v1/cameras/{camera_id}/ptz/patrol-scans` | Set a patrol up automatically |
| `start_robot_nav_learn` | `POST /api/v1/cameras/{camera_id}/robot/nav/learn/actions/start` | Start learning the home |
| `start_robot_patrol` | `POST /api/v1/cameras/{camera_id}/robot/patrol/actions/start` | Start an AI patrol of a robot camera |
| `start_room_ai_live` | `POST /api/v1/rooms/{room_id}/ai-live/actions/start` | Start AI Live in a room |
| `test_ai_model` | `POST /api/v1/system/ai-model/actions/test` | Test the AI model |
| `test_alert_speaker` | `POST /api/v1/alert-speaker/actions/test` | Test a camera speaker |
| `test_output` | `POST /api/v1/outputs/{output_id}/actions/test` | Test a speaker |
| `unexpose_home_assistant_zigbee_device` | `POST /api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/unexpose` | Hide a Zigbee device from Vigiora |
| `unexpose_io_t_device` | `POST /api/v1/iot/devices/{iot_device_id}/actions/unexpose` | Hide an IoT device from Vigiora |
| `uninstall_home_assistant` | `POST /api/v1/integrations/home-assistant/actions/uninstall` | Uninstall Home Assistant |
| `unprotect_recording` | `POST /api/v1/recordings/{recording_id}/actions/unprotect` | Unprotect a recording |
| `update_addon` | `POST /api/v1/addons/{addon_id}/update` | Update an add-on |
| `update_agent_settings` | `PATCH /api/v1/settings/agents` | Change AI agent settings |
| `update_ai_model` | `PATCH /api/v1/system/ai-model` | Choose the AI model |
| `update_alert_rule` | `PATCH /api/v1/alert-rules/{alert_rule_id}` | Update a Guardian alert rule |
| `update_alert_speaker_settings` | `PATCH /api/v1/alert-speaker/settings` | Change camera speaker alert settings |
| `update_analytics_alert_rule` | `PATCH /api/v1/analytics/alert-rules/{analytics_alert_rule_id}` | Update an analytics alert rule |
| `update_analytics_area` | `PATCH /api/v1/analytics/areas/{analytics_area_id}` | Update an analytics area |
| `update_analytics_line` | `PATCH /api/v1/analytics/lines/{analytics_line_id}` | Update a counting line |
| `update_analytics_zone` | `PATCH /api/v1/analytics/zones/{analytics_zone_id}` | Update an analytics zone |
| `update_auto_scan` | `PATCH /api/v1/network/auto-scan` | Turn automatic network scanning on or off |
| `update_automation` | `PATCH /api/v1/automations/{automation_id}` | Change an automation |
| `update_branding` | `PATCH /api/v1/branding` | Change the server's name, accent colour or Powered by line |
| `update_camera` | `PATCH /api/v1/cameras/{camera_id}` | Update a camera |
| `update_camera_ai_service` | `PATCH /api/v1/cameras/{camera_id}/ai-services/{ai_service_id}` | Change a camera's AI service settings |
| `update_camera_analytics` | `PATCH /api/v1/cameras/{camera_id}/analytics` | Update a camera's analytics settings |
| `update_camera_clock` | `PATCH /api/v1/cameras/{camera_id}/clock` | Set the time zone a camera's clock should be in |
| `update_client` | `PATCH /api/v1/clients/{client_id}` | Update a vigiora-client |
| `update_error_report_settings` | `PATCH /api/v1/system/error-reports/settings` | Change whether error reports are sent |
| `update_floor_plan` | `PATCH /api/v1/floor-plans/{floor_plan_id}` | Update a floor plan |
| `update_group` | `PATCH /api/v1/groups/{group_id}` | Update a group |
| `update_guardian_clip_settings` | `PATCH /api/v1/guardian/clips/settings` | Change the Guardian clip settings |
| `update_guardian_trash_settings` | `PATCH /api/v1/guardian/trash/settings` | Change the Recently deleted settings |
| `update_health_settings` | `PATCH /api/v1/system/health/settings` | Change the health check settings |
| `update_home_assistant` | `POST /api/v1/integrations/home-assistant/actions/update` | Update Home Assistant |
| `update_home_assistant_device` | `PATCH /api/v1/integrations/home-assistant/devices/{entity_id}` | Link a device to cameras and rooms |
| `update_home_assistant_instance` | `PATCH /api/v1/integrations/home-assistant/instances/{instance_id}` | Rename, enable or disable a Home Assistant instance |
| `update_home_assistant_integration` | `POST /api/v1/integrations/home-assistant/actions/update-integration` | Update the Vigiora integration in Home Assistant |
| `update_home_assistant_room_signals` | `PATCH /api/v1/integrations/home-assistant/room-signals/{room_id}` | Set a room's devices |
| `update_home_assistant_rule_actions` | `PATCH /api/v1/integrations/home-assistant/rule-actions/{alert_rule_id}` | Set an alert rule's device actions |
| `update_home_assistant_trigger` | `PATCH /api/v1/integrations/home-assistant/triggers/{trigger_id}` | Update a device trigger |
| `update_io_t_device` | `PATCH /api/v1/iot/devices/{iot_device_id}` | Change an IoT devices settings |
| `update_label_alert_rule` | `PATCH /api/v1/label-alert-rules/{label_alert_rule_id}` | Update a label alert rule |
| `update_line_integration` | `PATCH /api/v1/integrations/line` | Set up LINE notifications |
| `update_loona_settings` | `PATCH /api/v1/loona/settings` | Change the Loona settings |
| `update_memory_fact` | `PATCH /api/v1/memory/facts/{fact_id}` | Correct a remembered fact |
| `update_motion_rule` | `PATCH /api/v1/motion-rules/{motion_rule_id}` | Update a smart-motion rule |
| `update_motion_zone` | `PATCH /api/v1/cameras/{camera_id}/motion-zones/{zone_id}` | Rename or reshape a motion zone |
| `update_mqtt_integration` | `PATCH /api/v1/integrations/mqtt` | Set up the MQTT integration |
| `update_output` | `PATCH /api/v1/outputs/{output_id}` | Update a speaker |
| `update_privacy_mask` | `PATCH /api/v1/cameras/{camera_id}/privacy-masks/{mask_id}` | Rename or reshape a privacy mask |
| `update_ptz_preset` | `PATCH /api/v1/cameras/{camera_id}/ptz/presets/{preset_token}` | Rename or move a PTZ preset |
| `update_robot_nav_settings` | `PATCH /api/v1/cameras/{camera_id}/robot/nav/settings` | Change robot navigation settings |
| `update_room` | `PATCH /api/v1/rooms/{room_id}` | Update a room |
| `update_room_alert_rule` | `PATCH /api/v1/rooms/{room_id}/alert-rules/{alert_rule_id}` | Update a room Guardian alert rule |
| `update_room_outputs` | `PATCH /api/v1/rooms/{room_id}/outputs` | Set a room's speakers |
| `update_settings` | `PATCH /api/v1/settings` | Change server settings |
| `update_site` | `PATCH /api/v1/sites/{site_id}` | Update a site |
| `update_telegram_integration` | `PATCH /api/v1/integrations/telegram` | Set up Telegram notifications |
| `update_user` | `PATCH /api/v1/users/{user_id}` | Change a user |
| `update_webhook` | `PATCH /api/v1/webhooks/{webhook_id}` | Update a webhook |
| `upload_branding_logo` | `PUT /api/v1/branding/logo` | Upload the server's logo |

`GET /api/v1/agent-policy`도 `confirm_operations`에 같은 목록을 반환합니다.

## 작동 방식

Human in the loop는 서버가 MCP 엔드포인트에서 모든 도구 호출마다 강제합니다.

### 프롬프트를 표시할 수 있는 앱에서

앱이 MCP **elicitation**을 지원하면 Vigiora가 직접 사용자에게 묻습니다. 앱은 Vigiora가 작성한 프롬프트를 표시합니다. 예를 들면 다음과 같습니다.

```text
Vigiora asks for your approval: move camera "Entrance" (#5) left for 2.5 s. Requested by an app calling itself "Claude". Allow it?
```

- **Allow**는 작업을 실행합니다. **Deny** 또는 프롬프트 닫기는 작업을 취소하고, 에이전트는 `user_declined` 오류를 받습니다.
- 에이전트는 사용자 대신 답하거나 프롬프트를 건너뛸 수 없습니다. 사용자의 답은 바로 그 작업에만 묶여 있고 10분 후에 만료됩니다.
- Vigiora 자신의 문구가 먼저 나옵니다. 앱이나 사용자가 정한 이름(앱 이름, 카메라와 사용자 이름)은 따옴표로 묶이고 짧게 잘리므로, Vigiora인 척할 수 없습니다.
- 변경 작업은 필드와 새 값을 나열합니다(예: `role → "admin", enabled → off`). 비밀번호와 시크릿은 “(new value hidden)”으로 표시되고, 웹 주소는 로그인 정보 없이 표시됩니다.

이 기능에는 MCP 프로토콜 버전 2026-07-28 이상을 사용하는 앱이 필요합니다.

### 다른 앱에서

elicitation이 없는 앱은 Vigiora의 프롬프트를 표시할 수 없습니다. 그러면 다음과 같이 진행됩니다.

1. 도구가 `confirmation_required` 오류로 응답합니다. `details.action`은 작업을 쉬운 말로 설명하고, `details.retry_with`는 `{"confirm": true}`입니다.
2. 에이전트가 작업을 보여 주고 채팅에서 사용자에게 묻습니다.
3. 사용자가 예라고 답한 경우에만, 에이전트가 같은 인수에 `confirm: true`를 더해 같은 도구를 다시 호출합니다.

```json
{
  "http_status": 428,
  "error": {
    "code": "confirmation_required",
    "message": "Human in the loop is on: ask the user to approve this action (move camera \"Entrance\" (#5) left for 2.5 s). Only if they approve, call move_ptz again with the same arguments and confirm: true.",
    "details": { "action": "move camera \"Entrance\" (#5) left for 2.5 s", "retry_with": { "confirm": true } }
  }
}
```

앱이 elicitation을 지원하면 `confirm: true`가 프롬프트를 건너뛰지 않습니다. Human in the loop가 꺼져 있으면 도구는 즉시 실행되고 `confirm`은 무시됩니다.

### REST에는 영향이 없습니다

`/api/v1`에 대한 일반 REST 호출에는 프롬프트가 표시되지 않으며, `confirmation_required`로 응답하지도 않습니다. `confirm` 필드가 있는 REST 본문은 거부됩니다(`400 validation_error`). Human in the loop는 MCP를 사용하는 AI 에이전트에 관한 것입니다.

## 한계

Human in the loop는 안전장치이지 샌드박스가 아닙니다.

- **서버는 앱이 보고하는 내용만 신뢰할 수 있습니다.** 모든 프롬프트를 자동으로 수락하거나, elicitation을 선언하지 않거나, 2026-07-28보다 오래된 프로토콜을 사용하는 앱은 대신 `confirmation_required`를 받고, 그러면 에이전트 자신이 `confirm: true`로 사용자의 답을 전달합니다. elicitation이 더 강력한 방식입니다. 모델이 아니라 사용자가 답하기 때문입니다.
- **작업마다 확인합니다.** 위험한 도구 호출마다 다시 묻습니다. 승인은 그 한 번의 호출에만 해당합니다.
- **접근 범위를 제한하지 않습니다.** 에이전트가 할 수 있는 일을 제한하려면 필요한 스코프만 가진 키를 주거나, **Read only** 커넥터를 사용하세요. [인증과 스코프](https://vigiora.com/docs/developers/api-authentication)를 참고하세요.

## 에이전트에서 정책 확인하기

모든 자격 증명은 스코프 없이 자신의 정책을 읽을 수 있습니다.

```bash
curl -s https://yourname.vigiora.com/api/v1/agent-policy \
  -H "Authorization: Bearer vgk_xxxxxxxx_xxxxxxxxxxxxxxxx"
```

```json
{
  "human_in_the_loop": true,
  "source": "server",
  "override": "inherit",
  "server_human_in_the_loop": true,
  "confirm_operations": ["addDetectedCameras", "bulkUpdateCameras", "createAlert", "…"],
  "note": "Human in the loop is ON for this credential: AI agents must get the user's approval before the operations in confirm_operations. …"
}
```

| 필드 | 의미 |
| --- | --- |
| `human_in_the_loop` | 이 자격 증명을 사용하는 에이전트가 먼저 물어야 하는지. |
| `source` | 무엇이 결정했는지: `server`(서버 설정), `api_key` 또는 `connected_app`(이 자격 증명 자체의 선택). |
| `override` | 이 키 또는 앱의 선택: `inherit`, `on` 또는 `off`. |
| `server_human_in_the_loop` | 서버 설정. |
| `confirm_operations` | 켜져 있는 동안 승인이 필요한 `operationId` 목록. MCP 도구 이름은 같은 이름의 snake_case입니다. |
| `note` | 에이전트가 따를 수 있도록 정책을 한 문장으로 쓴 것. |

MCP에서는 `get_agent_policy` 도구가 같은 역할을 하며, 에이전트가 연결할 때 서버가 보내는 안내에도 human in the loop가 켜져 있는지가 이미 적혀 있습니다. [Vigiora 스킬](https://vigiora.com/docs/developers/ai-agents)은 에이전트에게 먼저 이것을 확인하고, 켜져 있을 때만 물어보라고 알려 줍니다.

admin은 API로도 서버 설정을 읽고 바꿀 수 있습니다: `GET`과 `PATCH /api/v1/settings/agents`(`settings:read`, `settings:write`; `PATCH` 자체는 human in the loop가 켜져 있는 동안 승인이 필요합니다). 사용자는 `PATCH /api/v1/api-keys/{key_id}`와 `{"human_in_the_loop": "on"}`(`inherit`, `on` 또는 `off`; 로그인한 사용자만)으로 자기 키의 선택을 바꿉니다.

## 관련 페이지

- [MCP 서버](https://vigiora.com/docs/developers/mcp): claude.ai, ChatGPT, Claude Code 등을 연결합니다.
- [API 키](https://vigiora.com/docs/developers/api-keys)
- [AI 코딩 에이전트와 함께 Vigiora 사용하기](https://vigiora.com/docs/developers/ai-agents): 스킬.
- [API 레퍼런스](https://vigiora.com/docs/developers/api-reference): 승인이 필요한 작업마다 그렇게 표시되어 있습니다.

---

Source: https://vigiora.com/ko/docs/developers/human-in-the-loop · Last updated 2 Dec 2026, 10:45 UTC
