Uninstall kosa8
One command removes what the installer put on this machine for you. Your data stays unless you ask for it to go. How you remove kosa8 depends on how you installed it.
One command#
kosa8 uninstall is in v0.21.0 and later. On v0.20.0 and earlier, use the steps by hand below.
$ kosa8 uninstall
It shows what it will do and asks before it does anything:
- It stops this home's
kosa8d, and only that one. It finds it through the lock in~/.kosa8/kosa8d.lock, so another user's daemon, or one started with a differentHOME, is never touched. Sandboxes running in it stop too. - It removes the login service that
kosa8 daemon installmade: the LaunchAgent~/Library/LaunchAgents/com.kosa8.kosa8d.pliston macOS, or the systemd user unit~/.config/systemd/user/kosa8d.serviceon Linux. - It deletes the
kosa8andkosa8dbinaries next to the CLI you ran. If they are in a folder you cannot write, such as/usr/local/bin, it prints thesudo rmcommand to run. - On Windows it also takes the install folder out of your user PATH.
- It asks whether to delete
~/.kosa8. That folder holds your licence, keys, the audit log, saved snapshots and every sandbox's disk, so the default answer is no.
For scripts:
$ kosa8 uninstall --yes # keep ~/.kosa8 $ kosa8 uninstall --yes --purge # delete ~/.kosa8 too
If you installed agent hooks, MCP entries or skills, they live in the agents' own settings. Run
kosa8 hooks uninstall before you uninstall kosa8.
Installed some other way#
kosa8 uninstall leaves a copy that a package manager or the desktop app owns to that
tool, and prints the command that removes it:
| Installed with | Remove with |
|---|---|
| The Mac app | Quit kosa8, then move kosa8.app from Applications to the Bin. |
| Homebrew | brew uninstall kosa8 |
| Debian or Ubuntu package | sudo apt remove kosa8 (and kosa8-desktop) |
| Fedora or RHEL package | sudo dnf remove kosa8 (and kosa8-desktop) |
| Alpine package | sudo apk del kosa8 |
| Scoop | scoop uninstall kosa8 |
| The Windows app (setup) | Settings > Apps > Installed apps > kosa8 > Uninstall. From v0.21.0 the uninstaller also removes the PATH entry it added. |
A package manager removes only the files it installed. ~/.kosa8, the login service
and any capabilities you set stay until you remove them as described below.
By hand#
On macOS or Linux, after a curl … | sh install:
$ kosa8 daemon uninstall # the login service, if you made one $ kosa8 hooks uninstall # agent hooks, if you installed them $ kosa8 daemon stop $ sudo rm -f "$(command -v kosa8d)" "$(command -v kosa8)" $ rm -rf ~/.kosa8 # only if you want your data gone
On v0.20.0 and earlier, kosa8 daemon stop stops every kosa8d on the machine
that belongs to you. From v0.21.0 it stops only this home's daemon.
On Windows, after irm https://kosa8.com/install.ps1 | iex:
PS> kosa8 daemon stop PS> Remove-Item -Recurse -Force "$env:LOCALAPPDATA\kosa8\bin" PS> $p = [Environment]::GetEnvironmentVariable('Path','User') -split ';' | Where-Object { $_ -and $_.TrimEnd('\') -ne "$env:LOCALAPPDATA\kosa8\bin" } PS> [Environment]::SetEnvironmentVariable('Path', ($p -join ';'), 'User') PS> Remove-Item -Recurse -Force "$env:USERPROFILE\.kosa8" # only if you want your data gone
The Windows app keeps its window data in %LOCALAPPDATA%\kosa8\WebView2. Delete that
folder too if you want nothing left.
What is in ~/.kosa8#
Look before you delete it. It holds your licence (license.json), the audit log and its
key, signing keys, the kosa8 Cloud key (cloud.json), logs, the guest image, and the
engine's disk (engine-data.img, a sparse file that can show as 32 GiB). Snapshots and
sandbox disks are in there too. Once it is deleted, they are gone.
Something wrong or missing? Edit this page, or write to contact@kosa8.com.