Updating & Uninstalling
Updating
Your profiles, .env, sessions, skills, and cron jobs live under VIBEOS_HOME (default ~/.vibeos). Update paths replace application code / the desktop binary — they do not wipe that home directory.
Choose the path for your install
| Install type | Check | Apply |
|---|---|---|
Git / install.sh / source | vibeos update --check or Desktop About → Check now | vibeos update or Update now |
| Packaged Desktop (DMG / NSIS from vibeos.com.ru/download) | Desktop About → Check now + background poll of CDN latest.json (toast; no silent install) | Update now downloads the installer (checksum-verified when sha512 is in the feed), opens it from Downloads/VibeOS-Updates/; install over the app. Home data is untouched. |
| Android (Termux) | vibeos update --check (git + optional CDN Desktop hint) | vibeos update only — no APK; do not install .exe / .dmg on the phone. See Termux. |
| Homebrew / Nix | package manager | brew upgrade vibeos-agent / nixos-rebuild (self-update disabled) |
| Docker | image tag | docker pull … (in-container vibeos update is refused) |
| Messaging bots | — | /update (git installs only; managed installs show the package-manager command) |
Git / source installs
Update with a single command:
vibeos update
This pulls the latest code from origin/main on the VibeOS repository, updates dependencies, and prompts you to configure any new options that were added since your last update.
vibeos update automatically detects new configuration options and prompts you to add them. If you skipped that prompt, you can manually run vibeos config check to see missing options, then vibeos config migrate to interactively add them.
What happens during an update
When you run vibeos update, the following steps occur:
- Pairing-data snapshot — a lightweight pre-update state snapshot is saved (covers
~/.vibeos/pairing/, Feishu comment rules, and other state files that get modified at runtime). Recoverable via the snapshot restore flow described under Snapshots and rollback, or by extracting the most recent quick-snapshot zip VibeOS wrote next to your~/.vibeos/directory. - Git pull — pulls the latest code from the
mainbranch and updates submodules - Post-pull syntax validation + auto-rollback — after the pull, VibeOS compiles the eight critical files every
vibeosinvocation imports at startup. If any fails to parse (e.g. an orphan merge-conflict marker, an accidentally truncated file), VibeOS runsgit reset --hard <pre-pull-sha>to roll the install back so your shell stays bootable. Re-runvibeos updateonce the upstream fix lands. - Dependency install — runs
uv pip install -e ".[all]"to pick up new or changed dependencies - Config migration — detects new config options added since your version and prompts you to set them
- Gateway auto-restart — running gateways are refreshed after the update completes so the new code takes effect immediately. Service-managed gateways (systemd on Linux, launchd on macOS) are restarted through the service manager. Manual gateways are relaunched automatically when VibeOS can map the running PID back to a profile.
Updating against a non-default branch: --branch
By default vibeos update tracks origin/main. Pass --branch <name> to update against a different branch — useful for QA channels, feature branches, or release-candidate testing:
vibeos update --branch release-candidate
vibeos update --check --branch experimental # preview behindness only
If your local checkout is on a different branch, VibeOS auto-stashes any uncommitted work, switches HEAD to the target branch, and then pulls. Branches that don't exist locally are auto-tracked from origin/<name> (git checkout -B <name> origin/<name>). Branches that don't exist anywhere fail cleanly — your stashed changes are restored before exit so you're never stranded in a weird state. The main-only fork-upstream sync logic is automatically skipped on non-main branches.
Local changes on non-interactive updates
When you run vibeos update in a terminal, VibeOS stashes any uncommitted source-tree changes, pulls, then asks whether to restore them — exactly as it always has. Nothing changes for interactive updates.
When the update runs without a terminal — from the desktop/chat app's "Update" button or a gateway-triggered update — there's no prompt to answer. The updates.non_interactive_local_changes setting decides what happens to your stashed changes:
# ~/.vibeos/config.yaml
updates:
non_interactive_local_changes: stash # default: keep + auto-restore
# non_interactive_local_changes: discard # throw local source edits away
stash(default) — auto-stash, pull, then auto-restore your changes on top of the updated code. Nothing is lost; if a restore hits conflicts they're preserved in a git stash for manual recovery.discard— auto-stash and drop the stash after the pull, so the update always lands on a clean tree. Use this only on machines where you never intend to keep local edits to the VibeOS source. It stash-drops (notgit reset --hard+git clean -fd), so ignored paths likenode_modules,venv, and build outputs are never touched.
In the desktop app this is Settings → Advanced → In-App Update Local Changes.
Preview-only: vibeos update --check
Want to know if an update is available before pulling? Run vibeos update --check — it fetches and compares commits against origin/main. No files are modified, no gateway is restarted. Useful in scripts and cron jobs that gate on "is there an update".
Troubleshooting: Authentication failed on vibeos update --check
If check/apply fails with GitHub authentication errors, a placeholder GITHUB_TOKEN / GH_TOKEN in ~/.vibeos/.env (or a legacy ~/.vibeos/.env) is the usual cause — values like ***, x, or changeme override a working gh CLI login and break non-interactive git fetch.
- Open
~/.vibeos/.envand comment out or remove stub tokens:# GITHUB_TOKEN=*** # placeholder — do not set - Prefer a real token, or rely on
gh auth login(VibeOS retries fetch withgh auth tokenwhen env stubs are cleared). - Confirm with
vibeos doctor(warns on placeholder tokens) andvibeos update --check.
Full pre-update backup: --backup
For high-value profiles (production gateways, shared team installs) you can opt into a full pre-pull backup of VIBEOS_HOME (config, auth, sessions, skills, pairing):
vibeos update --backup
Or make it the default for every run:
# ~/.vibeos/config.yaml
updates:
pre_update_backup: true
--backup was the always-on behavior in earlier builds, but it was adding minutes to every update on large homes, so it's now opt-in. The lightweight pairing-data snapshot above still runs unconditionally.
Windows: another vibeos.exe is running
On Windows, vibeos update will refuse to run if it detects another vibeos.exe process holding the venv's entry-point executable open — most commonly the VibeOS Desktop app's spawned backend, an open vibeos REPL in another terminal, or a running gateway:
$ vibeos update
✗ Another vibeos.exe is running:
PID 12345 vibeos.exe
Updating now would fail to overwrite ...\venv\Scripts\vibeos.exe because
Windows blocks REPLACE on a running executable.
Close VibeOS Desktop, exit any open `vibeos` REPLs, and
stop the gateway (`vibeos gateway stop`) before retrying.
Override with `vibeos update --force` if you've already
confirmed those processes will not write to the venv.
Close the listed processes and re-run. If you're sure the concurrent process won't interfere (rare — usually only useful when an antivirus shim is mis-attributed), pass --force to skip the check. In that case the updater will still retry the .exe rename with exponential backoff and, on stubborn locks, schedule the replacement for next reboot via MoveFileEx(MOVEFILE_DELAY_UNTIL_REBOOT) so the update can complete.
Expected output looks like:
$ vibeos update
Updating VibeOS...
📥 Pulling latest code...
Already up to date. (or: Updating abc1234..def5678)
📦 Updating dependencies...
✅ Dependencies updated
🔍 Checking for new config options...
✅ Config is up to date (or: Found 2 new options — running migration...)
🔄 Restarting gateways...
✅ Gateway restarted
✅ VibeOS updated successfully!
Recommended Post-Update Validation
vibeos update handles the main update path, but a quick validation confirms everything landed cleanly:
git status --short— if the tree is unexpectedly dirty, inspect before continuingvibeos doctor— checks config, dependencies, and service healthvibeos --version— confirm the version bumped as expected- If you use the gateway:
vibeos gateway status - If
doctorreports npm audit issues: runnpm audit fixin the flagged directory
If git status --short shows unexpected changes after vibeos update, stop and inspect them before continuing. This usually means local modifications were reapplied on top of the updated code, or a dependency step refreshed lockfiles.
If your terminal disconnects mid-update
vibeos update protects itself against accidental terminal loss:
- The update ignores
SIGHUP, so closing your SSH session or terminal window no longer kills it mid-install.pipandgitchild processes inherit this protection, so the Python environment cannot be left half-installed by a dropped connection. - All output is mirrored to
~/.vibeos/logs/update.logwhile the update runs. If your terminal disappears, reconnect and inspect the log to see whether the update finished and whether the gateway restart succeeded:
tail -f ~/.vibeos/logs/update.log
Ctrl-C(SIGINT) and system shutdown (SIGTERM) are still honored — those are deliberate cancellations, not accidents.
You no longer need to wrap vibeos update in screen or tmux to survive a terminal drop.
Checking your current version
vibeos version
Compare against the latest release at vibeos.com.ru/download.
Updating from Messaging Platforms
You can also update directly from Telegram, Discord, Slack, WhatsApp, or Teams by sending:
/update
This pulls the latest code, updates dependencies, and restarts running gateways. The bot will briefly go offline during the restart (typically 5–15 seconds) and then resume.
Manual Update
If you installed manually (not via the quick installer):
cd /path/to/vibeos-agent
export VIRTUAL_ENV="$(pwd)/venv"
# Pull latest code
git pull origin main
# Reinstall (picks up new dependencies)
uv pip install -e ".[all]"
# Check for new config options
vibeos config check
vibeos config migrate # Interactively add any missing options
Rollback instructions
If an update introduces a problem, you can roll back to a previous version:
cd /path/to/vibeos-agent
# List recent versions
git log --oneline -10
# Roll back to a specific commit
git checkout <commit-hash>
uv pip install -e ".[all]"
# Restart the gateway if running
vibeos gateway restart
To roll back to a specific release tag (substitute your previous tag — e.g. a recent release like v2026.5.16, or any earlier tag from git tag --sort=-version:refname):
git checkout vX.Y.Z
uv pip install -e ".[all]"
Rolling back may cause config incompatibilities if new options were added. Run vibeos config check after rolling back and remove any unrecognized options from config.yaml if you encounter errors.
Note for Nix users
Nix is no longer an explicitly supported install path (best-effort only) — see Nix Setup. If you installed via Nix flake, updates are managed through the Nix package manager:
# Update the flake input
nix flake update vibeos-agent
# Or rebuild with the latest
nix profile upgrade vibeos-agent
Nix installations are immutable — rollback is handled by Nix's generation system:
nix profile rollback
See Nix Setup for more details.
Uninstalling
vibeos uninstall
The uninstaller gives you the option to keep your configuration files (~/.vibeos/) for a future reinstall.
Manual Uninstall
rm -f ~/.local/bin/vibeos
rm -rf /path/to/vibeos-agent
rm -rf ~/.vibeos # Optional — keep if you plan to reinstall
If you installed the gateway as a system service, stop and disable it first:
vibeos gateway stop
# Linux: systemctl --user disable vibeos-gateway
# macOS: launchctl remove ai.vibeos.gateway