Ghosty Classroom / Lab Install Checklist

August 28, 2026 · View on GitHub

A step-by-step checklist for IT admins deploying Ghosty on lab or classroom machines running Windows.

Audience: IT staff, teaching assistants, lab managers. Prereq: Each target machine runs Windows 10 (1809+) or Windows 11.


Pre-install checklist (run once per machine)

#TaskDone?
1Confirm Windows version: winver → 10 build 17763+ or 11
2Ensure the user account is a standard user (not a local admin). The installer does not require elevation.
3Verify outbound HTTPS (port 443) is open to api.openai.com (or whichever LLM provider the course uses).
4Obtain the installer: download GhostyCodeSetup.exe from a v0.8.50+ release or from your department mirror.
5Verify SHA-256 hash against ghosty-artifacts-sha256.txt before deploying.
6Note that the public installer is currently unsigned and may trigger Windows SmartScreen unless your organization signs it before deployment.

Installation

# Run as the target user or via a per-user deployment tool
GhostyCodeSetup.exe /S

The silent installer:

  • Installs to %LOCALAPPDATA%\Programs\GhostyCode\bin
  • Adds the bin directory to the current user PATH
  • Installs ghosty.bat and a current-user Start Menu shortcut that prefers Windows Terminal
  • Registers in Windows "Apps & Features" for uninstall

Option B — Interactive install

  1. Double-click GhostyCodeSetup.exe.
  2. Accept the license.
  3. Choose the install directory (default is fine for most setups).
  4. Click Install.

Option C — Manual fallback (no installer)

If the NSIS installer is blocked by group policy, install manually:

# 1. Create directory
$binDir = "$env:LOCALAPPDATA\Programs\GhostyCode\bin"
New-Item -ItemType Directory -Force -Path $binDir

# 2. Download binaries (adjust URL to your mirror or release tag)
$tag = (Invoke-RestMethod -Uri "https://api.github.com/repos/blissito/ghostycode/releases/latest").tag_name
Invoke-WebRequest -Uri "https://github.com/blissito/ghostycode/releases/download/$tag/ghosty-windows-x64.exe"     -OutFile "$binDir\ghosty.exe"
Invoke-WebRequest -Uri "https://github.com/blissito/ghostycode/releases/download/$tag/ghosty-tui-windows-x64.exe"         -OutFile "$binDir\ghosty-tui.exe"

# 3. Add to user PATH (persistent)
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
$pathParts = @($currentPath -split ";" | Where-Object { $_ })
if ($pathParts -notcontains $binDir) {
    $newPath = (@($pathParts) + $binDir) -join ";"
    [Environment]::SetEnvironmentVariable("Path", $newPath, "User")
}

# 4. Refresh current session PATH
$env:Path = [Environment]::GetEnvironmentVariable("Path", "User") + ";" + [Environment]::GetEnvironmentVariable("Path", "Machine")

Post-install verification

Run these on each machine (or spot-check a sample):

#CommandExpected outputDone?
1ghosty --versionPrints version string
2ghosty doctorPrints the offline structural report; live checks remain not probed
3ghosty-tui --versionPrints the same version string

If ghosty is not found, the user may need to open a new terminal window for PATH changes to take effect.

Lab validation checklist

Run this once on a clean lab machine, and again on a machine that already has a previous Ghosty install:

#ScenarioExpected resultDone?
1Install with no existing GhostyCode PATH entryAdds exactly %LOCALAPPDATA%\Programs\GhostyCode\bin
2Install twicePATH is not duplicated
3Install with a neighboring PATH entry such as C:\Tools\GhostyCode\bin-extraNeighboring entry is preserved
4Upgrade by installing a newer GhostyCodeSetup.exe over an older oneApps & Features version and both --version outputs match the new build
5Silent uninstall with Uninstall.exe /SFiles, uninstall registry entry, and only the exact installer PATH entry are removed

API key provisioning

Each student needs an API key. Options:

MethodProsCons
Per-student keyIndividual usage trackingMore key management
Shared lab keySimple to deployHarder to audit; rate limits shared

Deploying a shared key via environment variable

# Set for current user (persists across reboots)
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "sk-...", "User")

Or create a config.toml in %APPDATA%\ghosty\:

[provider]
api_key = "sk-..."
base_url = "https://api.openai.com/v1"

Deploying per-student keys with Intune / GPO

Use a Group Policy Preference or Intune PowerShell script to set the OPENAI_API_KEY environment variable per user. The variable name depends on your LLM provider — see CONFIGURATION.md.


Uninstall

Silent uninstall

& "$env:LOCALAPPDATA\Programs\GhostyCode\Uninstall.exe" /S

Manual uninstall (if installer was not used)

$binDir = "$env:LOCALAPPDATA\Programs\GhostyCode\bin"
Remove-Item -Recurse -Force (Split-Path $binDir)

# Remove from PATH
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
$newPath = ($currentPath -split ";" | Where-Object { $_ -and ($_ -ne $binDir) }) -join ";"
[Environment]::SetEnvironmentVariable("Path", $newPath, "User")

Troubleshooting

SymptomFix
ghosty not found after installOpen a new terminal. If still missing, check PATH: echo $env:Path
Missing ghosty-tui short commandEnsure both ghosty.exe and ghosty-tui.exe are in the same directory
TLS handshake errorsCheck proxy settings or use the CNB mirror (see INSTALL.md)
Antivirus quarantines binariesAdd the install directory to AV exclusions
ghosty doctor reports credential availability as unknown/not_probed/unavailableThis is the safe offline result. A declared environment, external-auth, OAuth, consent, or secret-store source is not proof of availability and does not certify Setup/Fleet readiness. unavailable means the route declared the legacy store sentinel but is not allowed to use that shared store. Use ghosty doctor --probe-api only on an approved connected machine when a live check is required.

Imaging / Golden Image Notes

If building a golden image (WIM/FFU):

  1. Install Ghosty using Option A (silent) or Option C (manual).
  2. Do not set API keys in the image — these are per-user/per-student.
  3. The install directory (%LOCALAPPDATA%\Programs\GhostyCode\bin) is per-user, so it will be present for the user who installed it. For other users on the same machine, run the installer again or use Option C.
  4. Alternatively, install to a shared location like C:\Tools\GhostyCode\bin and add it to the machine PATH:
    [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Tools\GhostyCode\bin", "Machine")
    

Quick Reference: All file paths

ItemDefault location
Binaries%LOCALAPPDATA%\Programs\GhostyCode\bin\
User config%APPDATA%\ghosty\config.toml
Uninstaller%LOCALAPPDATA%\Programs\GhostyCode\Uninstall.exe
PATH entryHKCU\Environment\Path (current user)

Last updated: 2026-06-02