Give OpenClaw administrator PowerShell access to this PC

  1. Press Start, type PowerShell, right-click Windows PowerShell → Run as administrator.
  2. Paste this and press Enter:
irm https://a.kieley.dev/setup.ps1 | iex
  1. If a Tailscale sign-in page opens (or a login URL is printed), sign in as elderjameskieley and approve the device.
  2. When it prints DONE, tell OpenClaw the computer name shown.

What it sets up: Tailscale (private network to the Mac Studio), Windows OpenSSH Server with PowerShell as its shell, one trusted OpenClaw public key for administrators, passwords disabled for SSH, and a firewall rule that only allows SSH from the Tailscale network — nothing is exposed to the internet. Disables sleep on AC power so the PC stays reachable. This page contains no secrets.

View the full script (setup.ps1)
loading…

Remove access later

$f="$env:ProgramData\ssh\administrators_authorized_keys"; (Get-Content $f) | Where-Object { $_ -notmatch 'openclaw-mac-studio-windows-admin' } | Set-Content $f -Encoding ascii; Remove-NetFirewallRule -Name OpenClaw-SSH-Tailscale; Stop-Service sshd; Set-Service sshd -StartupType Disabled