### Initialize LidGuard CLI with help, hooks, and MCP Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md Commands to initialize LidGuard: view help, install provider hooks for all platforms, and install MCP for all. This is part of the initial setup. ```powershell lidguard help lidguard hook-install --provider all lidguard mcp-install all ``` -------------------------------- ### AI Agent Installation for Codex with Interactive Plan Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md For Codex, start with /plan to use the interactive questioning flow. This allows the agent to ask questions and explain steps before installing LidGuard. ```text /plan Read https://raw.githubusercontent.com/airtaxi/LidGuard/master/.github/agent-install.md and install LidGuard for this machine. You may run the commands needed for installation after explaining them, and you should ask me before any administrator, sudo, password, provider hook, MCP, or safety-related settings step. ``` -------------------------------- ### Manual installation of LidGuard using dotnet tool Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md Global installation of the lidguard dotnet tool. Use dotnet tool install --global lidguard to install LidGuard. ```powershell dotnet tool install --global lidguard ``` -------------------------------- ### Show LidGuard help Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Displays help information for the LidGuard CLI after installation. ```powershell lidguard help ``` -------------------------------- ### AI Agent Installation Prompt for LidGuard Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md Provide these instructions to an AI agent to install LidGuard by reading the installation script. This includes obtaining command execution approval and asking before admin, provider, or safety steps. ```text Read https://raw.githubusercontent.com/airtaxi/LidGuard/master/.github/agent-install.md and install LidGuard for this machine. You may run the commands needed for installation after explaining them, and you should ask me before any administrator, sudo, password, provider hook, MCP, or safety-related settings step. ``` -------------------------------- ### lidguard linux-permission install Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Installs a LidGuard-managed polkit rule for the current user on Linux. ```APIDOC ## lidguard linux-permission install ### Description Installs a LidGuard-managed polkit rule for the current user on Linux. ### Method CLI ### Command `lidguard linux-permission install` ### Output - **result** (string) - Installation result ### Example ``` lidguard linux-permission install ``` ``` -------------------------------- ### Configure WSL provider hooks for Windows LidGuard Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md Installs all hooks and MCd in WSL, referencing the Windows executable path. Also installs a provider-specific MCP using a specified config and provider name. ```powershell lidguard wsl-hook-install --provider all lidguard wsl-mcp-install all lidguard wsl-provider-mcp-install --config "~/.example/mcp.json" --provider-name "ExampleProvider" ``` -------------------------------- ### Install custom provider MCP for LidGuard (Windows path) Source: https://github.com/airtaxi/lidguard/blob/master/README.ko.md Connects an AI tool that does not have native LidGuard support by registering a custom tool server. The model must call the four LidGuard tools at the right times, so behavior is not guaranteed. ```powershell lidguard provider-mcp-install --config "C:\path\to\mcp.json" --provider-name "ExampleProvider" ``` -------------------------------- ### lidguard wsl-hook-install --provider --distro Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Installs hooks for a provider inside a WSL distribution. Only available on Windows builds. Records the current Windows lidguard.exe path converted to a WSL path. ```APIDOC ## lidguard wsl-hook-install --provider --distro ### Description Installs hooks for a provider inside a WSL distribution. Only available on Windows builds. Records the current Windows `lidguard.exe` path converted to a WSL path. ### Method CLI ### Command `lidguard wsl-hook-install --provider --distro ` ### Parameters #### Options - **--provider** (string) - Required - Provider name or `all`. - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Installation result ### Example ``` lidguard wsl-hook-install --provider all --distro Ubuntu ``` ``` -------------------------------- ### lidguard hook-install --provider Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Installs hooks for a specified provider. If --provider is omitted, LidGuard prompts. Using --provider all processes only providers whose default configuration root already exists. ```APIDOC ## lidguard hook-install --provider ### Description Installs hooks for a specified provider. If `--provider` is omitted, LidGuard prompts. Using `--provider all` processes only providers whose default configuration root already exists; missing providers are reported as skipped. ### Method CLI ### Command `lidguard hook-install --provider ` ### Parameters #### Options - **--provider** (string) - Optional - Provider name or `all`. If omitted, LidGuard prompts. ### Output - **result** (string) - Installation result ### Example ``` lidguard hook-install --provider codex ``` ``` -------------------------------- ### lidguard macos-permission install Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Installs a LidGuard-managed sudoers rule for the current user on macOS. ```APIDOC ## lidguard macos-permission install ### Description Installs a LidGuard-managed sudoers rule for the current user on macOS. ### Method CLI ### Command `lidguard macos-permission install` ### Output - **result** (string) - Installation result ### Example ``` lidguard macos-permission install ``` ``` -------------------------------- ### Hook Integration Commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Commands to check, install, remove, and list hooks for providers. If --provider is omitted, LidGuard prompts. With --provider all, only existing config roots are processed. WSL commands are Windows-only and edit provider configs inside WSL. ```powershell lidguard hook-status --provider codex lidguard hook-install --provider codex lidguard hook-remove --provider codex lidguard hook-events --provider codex --count 20 lidguard codex-hooks lidguard claude-hooks lidguard copilot-hooks lidguard opencode-hooks lidguard wsl-hook-status --provider codex lidguard wsl-hook-install --provider all --distro Ubuntu lidguard wsl-hook-remove --provider claude lidguard wsl-codex-hooks config-toml --distro Ubuntu lidguard wsl-claude-hooks settings-json lidguard wsl-copilot-hooks config-json lidguard wsl-opencode-hooks plugin-js ``` -------------------------------- ### lidguard hook-status --provider Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the hook installation status for a specified provider. If --provider is omitted, LidGuard prompts for the provider. ```APIDOC ## lidguard hook-status --provider ### Description Checks the hook installation status for a specified provider. If `--provider` is omitted, LidGuard prompts for the provider. ### Method CLI ### Command `lidguard hook-status --provider ` ### Parameters #### Options - **--provider** (string) - Optional - Provider name (e.g., `codex`). If omitted, LidGuard prompts. ### Output - **status** (string) - Hook installation status ### Example ``` lidguard hook-status --provider codex ``` ``` -------------------------------- ### lidguard wsl-hook-status --provider Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the hook installation status for a provider inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-hook-status --provider ### Description Checks the hook installation status for a provider inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-hook-status --provider ` ### Parameters #### Options - **--provider** (string) - Required - Provider name (e.g., `codex`). - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **status** (string) - Hook installation status ### Example ``` lidguard wsl-hook-status --provider codex ``` ``` -------------------------------- ### LidGuard settings commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Shows the lidguard settings command with various options to configure lid action, suspend mode, skip suspend, emergency hibernation temperature, sounds, session timeout, runtime cleanup, webhooks, and follow-up behavior. Running settings with no options starts interactive editing. Session timeout defaults to 12 minutes; use --session-timeout-minutes off to disable. Runtime auto-exit defaults to 10 minutes after cleanup; use 0 to exit immediately or off to keep running. Closed-lid PermissionRequest accepts deny, allow, or ask. ```powershell lidguard settings lidguard settings --change-lid-action true --suspend-mode hibernate lidguard settings --skip-suspend-when-lid-close-does-nothing true lidguard settings --emergency-hibernation-temperature-mode average lidguard settings --post-stop-suspend-sound Asterisk lidguard settings --post-stop-suspend-sound-volume-override-percent 75 lidguard settings --post-stop-suspend-sound-volume-override-percent off lidguard settings --session-timeout-minutes 12 lidguard settings --session-timeout-minutes off lidguard settings --server-runtime-cleanup-delay-minutes 10 lidguard settings --server-runtime-cleanup-delay-minutes 0 lidguard settings --server-runtime-cleanup-delay-minutes off lidguard settings --pre-suspend-webhook-url https://example.com/lidguard-webhook lidguard settings --post-session-end-webhook-url https://example.com/lidguard-session-ended lidguard settings --closed-lid-stop-follow-up-webhook-url https://example.com/lidguard-follow-up lidguard settings --closed-lid-stop-follow-up-delay-seconds 180 lidguard settings --closed-lid-stop-follow-up-sound Asterisk --override 75 lidguard settings --closed-lid-stop-follow-up-sound off --override off lidguard settings --repeat-closed-lid-stop-follow-up true lidguard settings --closed-lid-permission-request-decision ask lidguard remove-pre-suspend-webhook lidguard remove-post-session-end-webhook lidguard remove-closed-lid-stop-follow-up-webhook lidguard preview-system-sound Asterisk lidguard preview-current-sound ``` -------------------------------- ### MCP Integration Commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Commands to check, install, and remove MCP servers for providers. If provider positional is omitted, LidGuard prompts. Re-running mcp-install refreshes the managed server. WSL commands are Windows-only and use the Windows lidguard.exe WSL path as stdio server. ```powershell lidguard mcp-status codex lidguard mcp-status opencode lidguard mcp-install codex lidguard mcp-remove codex lidguard wsl-mcp-status codex lidguard wsl-mcp-install all --distro Ubuntu lidguard wsl-mcp-remove claude lidguard wsl-codex-mcp-install lidguard wsl-claude-mcp-status --distro Ubuntu lidguard wsl-copilot-mcp-remove lidguard wsl-opencode-mcp-install lidguard provider-mcp-status --config "" lidguard provider-mcp-install --config "" --provider-name "" lidguard provider-mcp-remove --config "" lidguard wsl-provider-mcp-status --config "~/.example/mcp.json" lidguard wsl-provider-mcp-install --config "~/.example/mcp.json" --provider-name "" --distro Ubuntu lidguard wsl-provider-mcp-remove --config "~/.example/mcp.json" ``` -------------------------------- ### LidGuard session control commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Session control commands. 'start' and 'stop' require '--provider'; '--session' is optional and falls back to a derived session identifier. 'live-status' opens a runtime subscription and redraws the dashboard every second, showing the same runtime snapshot values as 'status'. Press 'q', 'Escape', or 'Ctrl+C' to exit. ```powershell lidguard start --provider codex --session "" ``` ```powershell lidguard stop --provider codex --session "" ``` ```powershell lidguard remove-session --all ``` ```powershell lidguard remove-session --session "" ``` ```powershell lidguard remove-session --session "" --provider codex ``` ```powershell lidguard status ``` ```powershell lidguard live-status ``` ```powershell lidguard cleanup-orphans ``` -------------------------------- ### Show status command help Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Shows full options and notes for the 'status' command. Both commands are equivalent. ```powershell lidguard help status ``` ```powershell lidguard status --help ``` -------------------------------- ### Show categorized command overview Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md Shows the categorized command overview. Both commands are equivalent. ```powershell lidguard help ``` ```powershell lidguard --help ``` -------------------------------- ### User-Secrets 설정 명령어 Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.ko.md 저장소 루트에서 실행하여 개발 환경의 비밀 설정을 저장합니다. AccessToken과 WebhookSecret은 서로 다른 값이어야 합니다. DatabasePath는 선택 사항이며, UserInterfaceCulture는 기본값이 'auto'입니다. ```powershell dotnet user-secrets set "LidGuardNotifications:AccessToken" "" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:WebhookSecret" "" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:VapidPublicKey" "" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:VapidPrivateKey" "" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:VapidSubject" "mailto:you@example.com" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:PublicBaseUrl" "https://localhost:5001" --project LidGuard.Notifications dotnet user-secrets set "LidGuardNotifications:UserInterfaceCulture" "auto" --project LidGuard.Notifications ``` -------------------------------- ### Local Run Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Command to run the LidGuard.Notifications project locally. ```powershell dotnet run --project LidGuard.Notifications ``` -------------------------------- ### lidguard wsl-opencode-hooks plugin-js Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages OpenCode hooks configuration inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-opencode-hooks plugin-js ### Description Manages OpenCode hooks configuration inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-opencode-hooks plugin-js` ### Parameters #### Options - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Configuration result ### Example ``` lidguard wsl-opencode-hooks plugin-js ``` ``` -------------------------------- ### LidGuard Webhook Configuration Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Commands to configure LidGuard webhook URLs for various events. ```powershell lidguard settings --pre-suspend-webhook-url https://host/api/webhooks/lidguard/{webhookSecret} lidguard settings --post-session-end-webhook-url https://host/api/webhooks/lidguard/{webhookSecret} lidguard settings --closed-lid-stop-follow-up-webhook-url https://host/api/webhooks/lidguard/{webhookSecret} ``` -------------------------------- ### Hook Integration Commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Commands for managing hook integrations with various AI coding assistants, including WSL-specific variants. ```powershell lidguard hook-status --provider codex lidguard hook-install --provider codex lidguard hook-remove --provider codex lidguard hook-events --provider codex --count 20 lidguard codex-hooks lidguard claude-hooks lidguard copilot-hooks lidguard opencode-hooks lidguard wsl-hook-status --provider codex lidguard wsl-hook-install --provider all --distro Ubuntu lidguard wsl-hook-remove --provider claude lidguard wsl-hooks config-json lidguard wsl-opencode-hooks plugin-js ``` -------------------------------- ### 환경 변수 설정 (PowerShell) Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.ko.md 중첩 설정에는 double underscore를 사용합니다. LIDGUARD_UI_CULTURE 환경 변수가 UserInterfaceCulture 값을 덮어씁니다. ```powershell $env:LidGuardNotifications__AccessToken = "" $env:LidGuardNotifications__WebhookSecret = "" $env:LidGuardNotifications__VapidPublicKey = "" $env:LidGuardNotifications__VapidPrivateKey = "" $env:LidGuardNotifications__VapidSubject = "mailto:you@example.com" $env:LidGuardNotifications__PublicBaseUrl = "https://notify.example.com" $env:LidGuardNotifications__DatabasePath = "C:\Data\LidGuard\notifications.sqlite" $env:LidGuardNotifications__UserInterfaceCulture = "auto" $env:LIDGUARD_UI_CULTURE = "ko" ``` -------------------------------- ### lidguard wsl-codex-hooks config-toml --distro Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages Codex hooks configuration inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-codex-hooks config-toml --distro ### Description Manages Codex hooks configuration inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-codex-hooks config-toml --distro ` ### Parameters #### Options - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Configuration result ### Example ``` lidguard wsl-codex-hooks config-toml --distro Ubuntu ``` ``` -------------------------------- ### Generate VAPID Keys Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Command to generate VAPID keys using the web-push npm package. ```bash npx --yes web-push generate-vapid-keys ``` -------------------------------- ### lidguard wsl-claude-hooks settings-json Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages Claude hooks configuration inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-claude-hooks settings-json ### Description Manages Claude hooks configuration inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-claude-hooks settings-json` ### Parameters #### Options - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Configuration result ### Example ``` lidguard wsl-claude-hooks settings-json ``` ``` -------------------------------- ### lidguard wsl-copilot-hooks config-json Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages Copilot hooks configuration inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-copilot-hooks config-json ### Description Manages Copilot hooks configuration inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-copilot-hooks config-json` ### Parameters #### Options - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Configuration result ### Example ``` lidguard wsl-copilot-hooks config-json ``` ``` -------------------------------- ### lidguard linux-permission check Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the systemd/logind permission environment on Linux without requesting an actual suspend. ```APIDOC ## lidguard linux-permission check ### Description Checks the systemd/logind permission environment on Linux without requesting an actual suspend. ### Method CLI ### Command `lidguard linux-permission check` ### Output - **check** (string) - Permission check result ### Example ``` lidguard linux-permission check ``` ``` -------------------------------- ### lidguard opencode-hooks Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages hooks for OpenCode. OpenCode uses a global plugin file, so no per-project OpenCode configuration is needed. ```APIDOC ## lidguard opencode-hooks ### Description Manages hooks for OpenCode. OpenCode uses a global plugin file, so no per-project OpenCode configuration is needed. ### Method CLI ### Command `lidguard opencode-hooks` ### Output - **result** (string) - Hook management result ### Example ``` lidguard opencode-hooks ``` ``` -------------------------------- ### LidGuard command syntax Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.md General usage syntax for LidGuard commands. Options can be passed as '--name value' or '--name=value'. Boolean options accept true/false, yes/no, on/off, and 1/0. ```powershell lidguard [options] ``` -------------------------------- ### Diagnostic Commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Diagnostic commands for checking lid state, monitor count, temperature, suspend history, and permission status on Linux and macOS. ```powershell lidguard current-lid-state lidguard current-monitor-count lidguard current-temperature lidguard current-temperature high lidguard suspend-history lidguard linux-permission status lidguard linux-permission check lidguard macos-permission status lidguard macos-permission check ``` -------------------------------- ### User-Secrets Configuration Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Commands to configure user secrets for the LidGuard.Notifications project. ```powershell dotnet user-secrets set "LidGuardNotifications:AccessToken" "" --project LidGuard.Notifications ``` ```powershell dotnet user-secrets set "LidGuardNotifications:WebhookSecret" "" --project LidGuard.Notifications ``` ```powershell dotnet user-secrets set "LidGuardNotifications:VapidPublicKey" "" --project LidGuard.Notifications ``` ```powershell dotnet user-secrets set "LidGuardNotifications:VapidPrivateKey" "" --project LidGuard.Notifications ``` ```powershell dotnet user-secrets set "LidGuardNotifications:PublicBaseUrl" "https://localhost:5001" --project LidGuard.Notifications ``` ```powershell dotnet user-secrets set "LidGuardNotifications:UserInterfaceCulture" "auto" --project LidGuard.Notifications ``` -------------------------------- ### lidguard current-temperature [mode] Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Outputs the current recognized system thermal-zone temperature in Celsius using the selected aggregation mode. The optional positional argument can be `default`, `low`, `average`, or `high` to override the stored setting for a single command. ```APIDOC ## lidguard current-temperature [mode] ### Description Outputs the current recognized system thermal-zone temperature in Celsius using the selected aggregation mode. The optional positional argument can be `default`, `low`, `average`, or `high` to override the stored setting for a single command. ### Method CLI ### Command `lidguard current-temperature [mode]` ### Parameters #### Positional Arguments - **mode** (string) - Optional - Aggregation mode: `default`, `low`, `average`, or `high`. If omitted, the stored setting is used. If no config file exists, `default` falls back to LidGuard's `Average` headless runtime default. ### Output - **temperature** (number) - Temperature in Celsius ### Example ``` lidguard current-temperature high ``` ``` -------------------------------- ### lidguard hook-events --provider --count Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Displays hook events for a specified provider. If --provider is omitted, LidGuard prompts. ```APIDOC ## lidguard hook-events --provider --count ### Description Displays hook events for a specified provider. If `--provider` is omitted, LidGuard prompts. ### Method CLI ### Command `lidguard hook-events --provider --count ` ### Parameters #### Options - **--provider** (string) - Optional - Provider name. If omitted, LidGuard prompts. - **--count** (integer) - Optional - Number of events to display. ### Output - **events** (array) - List of hook events ### Example ``` lidguard hook-events --provider codex --count 20 ``` ``` -------------------------------- ### lidguard linux-permission status Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the systemd/logind permission environment on Linux without requesting an actual suspend. ```APIDOC ## lidguard linux-permission status ### Description Checks the systemd/logind permission environment on Linux without requesting an actual suspend. ### Method CLI ### Command `lidguard linux-permission status` ### Output - **status** (string) - Permission environment status ### Example ``` lidguard linux-permission status ``` ``` -------------------------------- ### Generate URL-safe random value on Linux Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Generates a URL-safe random value for AccessToken or WebhookSecret on Linux using openssl and tr. ```bash openssl rand -base64 32 | tr '+/' '-_' | tr -d '=' ``` -------------------------------- ### lidguard linux-permission remove Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Removes the LidGuard-managed polkit rule file for the current user on Linux. ```APIDOC ## lidguard linux-permission remove ### Description Removes the LidGuard-managed polkit rule file for the current user on Linux. ### Method CLI ### Command `lidguard linux-permission remove` ### Output - **result** (string) - Removal result ### Example ``` lidguard linux-permission remove ``` ``` -------------------------------- ### lidguard copilot-hooks Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages hooks for Copilot. ```APIDOC ## lidguard copilot-hooks ### Description Manages hooks for Copilot. ### Method CLI ### Command `lidguard copilot-hooks` ### Output - **result** (string) - Hook management result ### Example ``` lidguard copilot-hooks ``` ``` -------------------------------- ### lidguard macos-permission check Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the caffeinate, pmset, and powermetrics environment on macOS without requesting sleep. ```APIDOC ## lidguard macos-permission check ### Description Checks the caffeinate, pmset, and powermetrics environment on macOS without requesting sleep. ### Method CLI ### Command `lidguard macos-permission check` ### Output - **check** (string) - Permission check result ### Example ``` lidguard macos-permission check ``` ``` -------------------------------- ### lidguard codex-hooks Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages hooks for Codex. ```APIDOC ## lidguard codex-hooks ### Description Manages hooks for Codex. ### Method CLI ### Command `lidguard codex-hooks` ### Output - **result** (string) - Hook management result ### Example ``` lidguard codex-hooks ``` ``` -------------------------------- ### Webhook Test Commands Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md PowerShell curl commands to test webhook calls for LidGuard notifications, including PreSuspend and Completed events. ```powershell curl.exe -X POST "https://host/api/webhooks/lidguard/{webhookSecret}" -H "Content-Type: application/json" -d "{\"eventType\":\"PreSuspend\",\"reason\":\"SoftLocked\",\"userInterfaceCulture\":\"ko\",\"softLockedSessionCount\":2}" ``` ```powershell curl.exe -X POST "https://host/api/webhooks/lidguard/{webhookSecret}" -H "Content-Type: application/json" -d "{\"eventType\":\"PreSuspend\",\"reason\":\"Completed\",\"userInterfaceCulture\":\"ko\",\"provider\":\"Codex\",\"sessionIdentifier\":\"abc123\",\"startedAtUtc\":\"2026-05-02T00:00:00Z\",\"lastActivityAtUtc\":\"2026-05-02T00:00:00Z\",\"endReason\":\"SessionEnd\",\"activeSessionCount\":0,\"inputPromptPreview\":\"Summarize the latest changes\",\"lastAssistantMessage\":\"Updated the webhook payload and notification UI before the configured suspend flow.\"}" ``` ```powershell curl.exe -X POST "https://host/api/webhooks/lidguard/{webhookSecret}" -H "Content-Type: application/json" -d "{\"eventType\":\"PreSuspend\",\"reason\":\"Completed\",\"userInterfaceCulture\":\"ko\",\"provider\":\"Codex\",\"sessionIdentifier\":\"abc123\",\"startedAtUtc\":\"2026-05-02T00:00:00Z\",\"lastActivityAtUtc\":\"2026-05-02T00:00:00Z\",\"endReason\":\"SessionEnd\",\"activeSessionCount\":0,\"inputPromptPreview\":\"Summarize the latest changes\",\"lastAssistantMessage\":\"Updated the webhook payload and notification UI before the configured suspend flow.\"}" ``` ```powershell curl.exe -X POST "https://host/api/webhooks/lidguard/{webhookSecret}" -H "Content-Type: application/json" -d "{\"eventType\":\"PreSuspend\",\"reason\":\"Completed\",\"userInterfaceCulture\":\"ko\",\"provider\":\"Codex\",\"sessionIdentifier\":\"abc123\",\"startedAtUtc\":\"2026-05-02T00:00:00Z\",\"lastActivityAtUtc\":\"2026-05-02T00:00:00Z\",\"endReason\":\"SessionEnd\",\"activeSessionCount\":0,\"inputPromptPreview\":\"Summarize the latest changes\",\"lastAssistantMessage\":\"Updated the webhook payload and notification UI before the configured suspend flow.\"}" ``` -------------------------------- ### lidguard current-monitor-count Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Outputs the current visible display monitor count using the same platform monitor visibility check used by LidGuard for lid-closed sleep policy decisions. Internal laptop panel connections are excluded from final suspend eligibility checks. ```APIDOC ## lidguard current-monitor-count ### Description Outputs the current visible display monitor count using the same platform monitor visibility check used by LidGuard for lid-closed sleep policy decisions. Internal laptop panel connections are excluded from final suspend eligibility checks. ### Method CLI ### Command `lidguard current-monitor-count` ### Output - **monitor_count** (integer) - Number of visible display monitors ### Example ``` lidguard current-monitor-count ``` ``` -------------------------------- ### lidguard current-lid-state Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Outputs the current lid switch state as Open, Closed, or Unknown using the same platform lid-state source used by LidGuard for lid-closed policy decisions. ```APIDOC ## lidguard current-lid-state ### Description Outputs the current lid switch state as `Open`, `Closed`, or `Unknown` using the same platform lid-state source used by LidGuard for lid-closed policy decisions. ### Method CLI ### Command `lidguard current-lid-state` ### Output - **state** (string) - `Open`, `Closed`, or `Unknown` ### Example ``` lidguard current-lid-state ``` ``` -------------------------------- ### lidguard suspend-history Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Displays the suspend history recorded by LidGuard. ```APIDOC ## lidguard suspend-history ### Description Displays the suspend history recorded by LidGuard. ### Method CLI ### Command `lidguard suspend-history` ### Output - **history** (array) - List of suspend events ### Example ``` lidguard suspend-history ``` ``` -------------------------------- ### lidguard wsl-hook-remove --provider Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Removes hooks for a provider inside a WSL distribution. Only available on Windows builds. ```APIDOC ## lidguard wsl-hook-remove --provider ### Description Removes hooks for a provider inside a WSL distribution. Only available on Windows builds. ### Method CLI ### Command `lidguard wsl-hook-remove --provider ` ### Parameters #### Options - **--provider** (string) - Required - Provider name (e.g., `claude`). - **--distro** (string) - Optional - WSL distribution name. If omitted, `wsl.exe` uses the default distro. ### Output - **result** (string) - Removal result ### Example ``` lidguard wsl-hook-remove --provider claude ``` ``` -------------------------------- ### Generate URL-safe random value with PowerShell Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard.Notifications/README.md Generates a URL-safe random value for AccessToken or WebhookSecret using Windows PowerShell. ```powershell $bytes = New-Object byte[] 32 [System.Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes) [Convert]::ToBase64String($bytes).TrimEnd('=').Replace('+', '-').Replace('/', '_') ``` -------------------------------- ### lidguard claude-hooks Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Manages hooks for Claude. ```APIDOC ## lidguard claude-hooks ### Description Manages hooks for Claude. ### Method CLI ### Command `lidguard claude-hooks` ### Output - **result** (string) - Hook management result ### Example ``` lidguard claude-hooks ``` ``` -------------------------------- ### lidguard macos-permission status Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Checks the caffeinate, pmset, and powermetrics environment on macOS without requesting sleep. ```APIDOC ## lidguard macos-permission status ### Description Checks the caffeinate, pmset, and powermetrics environment on macOS without requesting sleep. ### Method CLI ### Command `lidguard macos-permission status` ### Output - **status** (string) - Permission environment status ### Example ``` lidguard macos-permission status ``` ``` -------------------------------- ### lidguard macos-permission remove Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Removes the LidGuard-managed sudoers rule file for the current user on macOS. ```APIDOC ## lidguard macos-permission remove ### Description Removes the LidGuard-managed sudoers rule file for the current user on macOS. ### Method CLI ### Command `lidguard macos-permission remove` ### Output - **result** (string) - Removal result ### Example ``` lidguard macos-permission remove ``` ``` -------------------------------- ### lidguard hook-remove --provider Source: https://github.com/airtaxi/lidguard/blob/master/LidGuard/README.ko.md Removes hooks for a specified provider. If --provider is omitted, LidGuard prompts. ```APIDOC ## lidguard hook-remove --provider ### Description Removes hooks for a specified provider. If `--provider` is omitted, LidGuard prompts. ### Method CLI ### Command `lidguard hook-remove --provider ` ### Parameters #### Options - **--provider** (string) - Optional - Provider name. If omitted, LidGuard prompts. ### Output - **result** (string) - Removal result ### Example ``` lidguard hook-remove --provider codex ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.