Two ways to uninstall
From inside the Opsh REPL, type:What gets removed
~/.opsh/bin/— the directory containing theopshbinary~/.opsh/install.shand~/.opsh/uninstall.sh— the installer scripts cached in the Opsh directory- The
# >>> opsh initialize >>>block from your shell rc files — Opsh removes its managed startup block from~/.zshrc,~/.bashrc,~/.bash_profile, and~/.profileif they exist
What is kept
~/.opsh/config.json— your configuration file (provider, API key, model, and all settings) is preserved so you can reinstall without setting up from scratch- The
~/.opsh/directory — ifconfig.jsonor any other files remain, the directory itself is not deleted
Fully removing all Opsh data (NOT RECOMMENDED)
If you want to delete your configuration as well and remove the~/.opsh/ directory entirely, run:
After uninstalling, open a new terminal session for the PATH change to take effect. The
opsh command will no longer be available in terminals opened after that point.
