# Inside The Machine: scan my machine (Windows PowerShell). # READ-ONLY. It reads a few facts about this computer. It writes no files, # installs nothing and sends nothing. The only network call was the irm that # downloaded it. It prints links. Open one, or paste it to your agent. & { $Site = "https://insidethemachine.ai" function Slug($s) { if (-not $s) { return "" }; $t = ("$s".ToLower() -replace '[^a-z0-9.]+', '-').Trim('-'); if ($t.Length -gt 48) { $t = $t.Substring(0, 48) }; $t } function Has($n) { [bool](Get-Command $n -ErrorAction SilentlyContinue) } $ram = [math]::Round((Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory / 1GB) $chip = "$((Get-CimInstance Win32_Processor | Select-Object -First 1).Name)".Trim() $os = Get-CimInstance Win32_OperatingSystem $osv = "$($os.Caption) $($os.BuildNumber)" $gpu = ""; $vram = "" if (Has nvidia-smi) { $l = "$(nvidia-smi --query-gpu=name,memory.total --format=csv,noheader,nounits | Select-Object -First 1)" -split ',' $gpu = $l[0].Trim(); $vram = [math]::Round([double]$l[1].Trim() / 1024) } else { # the display driver keys hold the real (64-bit) memory size; Win32_VideoController stops at 4 GB $key = 'HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}' $best = Get-ChildItem $key -ErrorAction SilentlyContinue | ForEach-Object { Get-ItemProperty $_.PSPath -ErrorAction SilentlyContinue } | Where-Object { $_.'HardwareInformation.qwMemorySize' } | Sort-Object { [uint64]$_.'HardwareInformation.qwMemorySize' } -Descending | Select-Object -First 1 if ($best) { $gpu = $best.DriverDesc; $vram = [math]::Round([uint64]$best.'HardwareInformation.qwMemorySize' / 1GB) } else { $v = Get-CimInstance Win32_VideoController | Select-Object -First 1; if ($v) { $gpu = $v.Name } } } $disk = [math]::Floor((Get-PSDrive -Name $env:SystemDrive.TrimEnd(':')).Free / 1GB) $p = $env:LOCALAPPDATA + '\Programs' $apps = @() if ((Has ollama) -or (Test-Path "$p\Ollama")) { $apps += 'ollama' } if ((Has lms) -or (Test-Path "$p\LM Studio") -or (Test-Path "$HOME\.lmstudio")) { $apps += 'lm-studio' } if ((Has llama-server) -or (Has llama-cli)) { $apps += 'llama-cpp' } if (Has open-webui) { $apps += 'open-webui' } if ((Has jan) -or (Test-Path "$p\Jan")) { $apps += 'jan' } if (Has whisper-cli) { $apps += 'whisper-cpp' } if (Has aider) { $apps += 'aider' } if (Has opencode) { $apps += 'opencode' } if (Has hermes) { $apps += 'hermes-agent' } if (Test-Path "$p\ComfyUI") { $apps += 'comfyui' } if (Has docker) { $apps += 'docker' } $q = "ram=$ram&os=win&osv=$(Slug $osv)&chip=$(Slug $chip)" if ($gpu) { $q += "&gpu=$(Slug $gpu)" } if ($vram) { $q += "&vram=$vram" } $q += "&disk=$disk" if ($apps.Count) { $q += "&apps=$($apps -join ',')" } Write-Host "Memory: $ram GB" Write-Host "Chip: $chip" Write-Host "Graphics: $(if ($gpu) { $gpu } else { 'none found' })$(if ($vram) { ", $vram GB" })" Write-Host "System: $osv, $disk GB free" Write-Host "AI apps: $(if ($apps.Count) { $apps -join ', ' } else { 'none found' })" Write-Host "" Write-Host "Your setup: $Site/my?$q" Write-Host "Setup sheet: $Site/start/go?$q" Write-Host "For agents: $Site/my.json?$q" }