opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(cli): uninstall opencode installed via windows package managers

Open itsrainingmani opened this issue 1 day ago • 2 comments

Fixes: #8573

What does this PR do?

  • Adds uninstall information and commands for choco/scoop installs
  • Extends bun remove -g opencode-ai on windows to clean leftover installed artifacts -
    • binaries: .bun\bin\opencode.{exe|bunx}
    • node_modules: .bun\install\global\node_modules\opencode-windows-x64{-baseline}
  • Informs user if they're trying to uninstall opencode via choco from a non-elevated command shell
Screenshot 2026-01-14 194122

How did you verify your code works?

I tested every install method on Windows (Windows Terminal, WezTerm) and uninstalled w/ every method to ensure that the uninstallation happens cleanly and does not leave behind artifacts.

Bun Remove

Screenshot 2026-01-14 192932

Choco Uninstall

Screenshot 2026-01-14 192823

Scoop Uninstall

Screenshot 2026-01-14 191139

itsrainingmani avatar Jan 15 '26 01:01 itsrainingmani