Files
Codewhale/docs/CLASSROOM_INSTALL.md
Hunter BownandClaude Opus 5.5 be980da403 0.10.2 candidate: endpoint-scoped catalog, tiered pricing and release verification (#6968)
Squash of the 0.10.2 candidate branch wip/0.10.2-6396-handoff-20261012:
endpoint-scoped model catalog and tiered pricing (#6396), the takeover
fixes found while qualifying it, and the release-verification tooling.
The full commit list and per-commit evidence are in PR #6968.

Qualification of the squashed tree (head 704d435db1, a clean merge of
main b5e270b690 into ba01538bc9 with no manual conflict resolutions):
- Hosted CI on 704d435db1: 40 checks passed, 4 skipped (Cloudflare
  deploy and its approval gate, fork-only macOS budget/eval, docs), 0
  failed. Run 38848133339.
- nextest: Ubuntu 19101/19101 passed (34 skipped), Windows 18357/18357
  passed (27 skipped), macOS 19104/19104 passed (33 skipped).
- Local on the same head: clippy with CI's flags clean; 667/667 focused
  nextest; npm test 547 Node (540 passed, 7 skipped, 0 failed) and 772
  Vitest passed; npm run check:web exit 0.
- Main was frozen from b5e270b690 until this squash, so the squashed
  tree is the tested tree.

Not covered here: the crates.io publish, tags and the GitHub release,
which remain the founder's. Merged under the founder's 2026-10-13
authorization to squash #6968 after its final head passes CI and review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NBKbhx19BRbZtvWK8rVKjz
2026-10-16 14:35:46 +08:00

8.3 KiB

Codewhale Classroom / Lab Install Checklist

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

Audience: IT staff, teaching assistants, lab managers. Prereq: For current Windows Terminal, use Windows 10 2004 (build 19041+) or Windows 11. Older x64 deployments follow the Windows compatibility target and qualification record; the CLI target is 1607, with actual final-release startup/install acceptance still required.


Pre-install checklist (run once per machine)

# Task Done?
1 Confirm OS, architecture and terminal against the Windows support table. Current Windows Terminal requires build 19041+ or Windows 11. ☐
2 Ensure the user account is a standard user (not a local admin). The installer does not require elevation. ☐
3 Verify outbound HTTPS (port 443) is open to api.openai.com (or whichever LLM provider the course uses). ☐
4 Obtain the installer: download CodeWhaleSetup.exe from a v0.8.50+ release or from your department mirror. ☐
5 Verify SHA-256 hash against codewhale-artifacts-sha256.txt before deploying. ☐
6 Note that the public installer is currently unsigned and may trigger Windows SmartScreen unless your organization signs it before deployment. ☐

Installation

The NSIS installer contains x64 runtime binaries. For native ARM64 machines, use the matching archive/npm route in INSTALL.md. Import qualification and ARM64 candidate checks do not replace a clean lab installation or the final 1607 x64 release receipt.

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

The silent installer:

  • Installs to %LOCALAPPDATA%\Programs\CodeWhale\bin
  • Adds the bin directory to the current user PATH
  • Installs codewhale.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 CodeWhaleSetup.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\CodeWhale\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/codewhale-hq/CodeWhale/releases/latest").tag_name
Invoke-WebRequest -Uri "https://github.com/codewhale-hq/CodeWhale/releases/download/$tag/codewhale-windows-x64.exe"     -OutFile "$binDir\codewhale.exe"
Invoke-WebRequest -Uri "https://github.com/codewhale-hq/CodeWhale/releases/download/$tag/codew-windows-x64.exe"         -OutFile "$binDir\codew.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):

# Command Expected output Done?
1 codewhale --version Prints version string ☐
2 codewhale doctor Prints the offline structural report; live checks remain not probed ☐
3 codew --version Prints the same version string ☐

If codewhale 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 Codewhale install:

# Scenario Expected result Done?
1 Install with no existing Codewhale PATH entry Adds exactly %LOCALAPPDATA%\Programs\CodeWhale\bin ☐
2 Install twice PATH is not duplicated ☐
3 Install with a neighboring PATH entry such as C:\Tools\CodeWhale\bin-extra Neighboring entry is preserved ☐
4 Upgrade by installing a newer CodeWhaleSetup.exe over an older one Apps & Features version and both --version outputs match the new build ☐
5 Silent uninstall with Uninstall.exe /S Files, uninstall registry entry, and only the exact installer PATH entry are removed ☐

API key provisioning

Each student needs an API key. Options:

Method Pros Cons
Per-student key Individual usage tracking More key management
Shared lab key Simple to deploy Harder 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%\codewhale\:

[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\CodeWhale\Uninstall.exe" /S

Manual uninstall (if installer was not used)

$binDir = "$env:LOCALAPPDATA\Programs\CodeWhale\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

Symptom Fix
codewhale not found after install Open a new terminal. If still missing, check PATH: echo $env:Path
Missing codew short command Ensure both codewhale.exe and codew.exe are in the same directory
TLS handshake errors Check proxy settings or use the CNB mirror (see INSTALL.md)
Antivirus quarantines binaries Add the install directory to AV exclusions
codewhale doctor reports credential availability as unknown/not_probed/unavailable This 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 codewhale 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 Codewhale 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\CodeWhale\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\CodeWhale\bin and add it to the machine PATH:
    [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Tools\CodeWhale\bin", "Machine")
    

Quick Reference: All file paths

Item Default location
Binaries %LOCALAPPDATA%\Programs\CodeWhale\bin\
User config %APPDATA%\codewhale\config.toml
Uninstaller %LOCALAPPDATA%\Programs\CodeWhale\Uninstall.exe
PATH entry HKCU\Environment\Path (current user)

Last updated: 2026-06-02