~5 min read · 4 sections

Data Directories, Backups & Uninstall

Understand what lives in each folder, how to take a clean offline backup, how to move your data to a new computer, and how to uninstall cleanly.

On this page (4)▾

What Each Folder Stores

PathContentsBackup Advice
~/.nyairoPersona SOUL.md, model and platform configuration, chat sessions, long-term memory SQLite database, daily-life state, and receiptsCore personal data — back up the entire directory
~/.local/share/nyairoRead-only per-version application source, bundled Hermes runtime, and Python virtual environmentNo backup needed; rebuilt anytime by reinstalling or upgrading
~/.local/state/nyairoCurrently active version and install state record (install.json)Auto-generated on reinstall; optional to back up
%LOCALAPPDATA%\Programs\nyairoNative Windows desktop client binaries (Windows only)No backup needed; reinstall from the installer
%LOCALAPPDATA%\nyairoWindows desktop local target configuration (config.json) and UI runtime log (desktop.log)Keeping it on reinstall automatically reconnects to the existing instance

Note: ~/.nyairo contains your API keys, messaging platform credentials, and all private conversations. Store backup archives safely on your own private drive—never upload them to public cloud drives or code repositories.

How to Take a Clean Offline Backup

Because the backend uses SQLite, close any running chat windows, the desktop background gateway, or systemd services before backing up. Copying a single .db file while the program is actively writing can miss unmerged write-ahead log (WAL) pages, resulting in missing data or database corruption upon restore.

Once you have confirmed no background processes are running, archive the entire directory and lock down file permissions:

bash
mkdir -p "$HOME/nyairo-backups"
chmod 700 "$HOME/nyairo-backups"
bkp="$HOME/nyairo-backups/nyairo-data-$(date +%Y%m%d-%H%M%S).tar.gz"
tar -czf "$bkp" -C "$HOME" .nyairo
chmod 600 "$bkp"
tar -tzf "$bkp" >/dev/null && echo "Backup archive integrity check passed: $bkp"

Migrating Data to a New Computer

Starting in v0.8.0, nyairo supports exporting a lossless migration suitcase (.nyairo-suitcase.zip) that automatically strips API keys and local machine paths: open Settings → Environment & Diagnostics in the desktop app (or the "Migration Suitcase" card on Overview) and click Export Portable Suitcase (.nyairo-suitcase.zip). nyairo packages your dual-layer memory lantern ledger, drafts, and daily-life progress alongside your current custom or procedural world slice and a transparent migration loss manifest. After installing nyairo on your new machine, go to the same screen, click Select Suitcase File to Import & Restore (which runs an automatic two-step safety preflight check), and re-enter your model API key.

If you prefer a raw full-directory transfer that also preserves your local key files and gateway allowlist, follow these four manual steps:

  1. On the old computer, completely exit nyairo and any gateway processes, then archive ~/.nyairo into a .tar.gz using the commands above;
  2. On the new computer, install the exact same version (v0.8.0) of nyairo, but do not start the gateway yet;
  3. Copy the backup archive to the new computer (inside WSL if on Windows) via USB drive or local network, and extract it over the new machine's ~/.nyairo;
  4. Check for path differences: If the Linux username differs between the old and new machines (for example, alice on the old machine vs. bob on the new one), inspect ~/.nyairo/chiyo/config.json and ~/.nyairo/config.yaml, update any hardcoded absolute paths referencing the old username (such as /home/alice/...) to the new username path, and then start nyairo (never run two machines online simultaneously with the same Telegram bot token).

Clean Uninstall (Keep Memories vs. Full Wipe)

When you want to stop using nyairo or perform a clean reinstall for troubleshooting, choose between keeping or wiping your memories:

  • Option 1: Uninstall only the client application while keeping all memories and persona (recommended for reinstalls)
    • Windows Desktop: Uninstall nyairo from Windows "Settings → Apps → Installed apps" (or run %LOCALAPPDATA%\Programs\nyairo\unins000.exe). The uninstaller cleans up startup registry entries (preventing boot errors), stops the gateway inside WSL, and clears window caches, while leaving your personal data directory inside WSL untouched so a later reinstall reconnects seamlessly.
    • Linux / WSL CLI: After stopping the gateway, remove only the runtime binaries and command entry point: rm -rf ~/.local/share/nyairo ~/.local/state/nyairo ~/.local/bin/nyairo.
  • Option 2: Completely wipe the program, all chat memories, and configuration (irreversible—verify you need no backup first)
    1. If you installed the Windows desktop client, uninstall it from Installed apps first as above, then delete the local configuration folder (in PowerShell, run Remove-Item -Recurse -Force "$env:LOCALAPPDATA\nyairo");
    2. If you configured a persistent Linux systemd service, run sudo systemctl disable --now nyairo-gateway.service and remove its unit file;
    3. In a Linux / WSL terminal, delete both the application and personal data directories:
bash
rm -rf "$HOME/.nyairo" "$HOME/.local/share/nyairo" "$HOME/.local/state/nyairo" "$HOME/.local/bin/nyairo"
Hit a setup snag or spot a doc issue?