What Each Folder Stores
| Path | Contents | Backup Advice |
|---|---|---|
~/.nyairo | Persona SOUL.md, model and platform configuration, chat sessions, long-term memory SQLite database, daily-life state, and receipts | Core personal data — back up the entire directory |
~/.local/share/nyairo | Read-only per-version application source, bundled Hermes runtime, and Python virtual environment | No backup needed; rebuilt anytime by reinstalling or upgrading |
~/.local/state/nyairo | Currently active version and install state record (install.json) | Auto-generated on reinstall; optional to back up |
%LOCALAPPDATA%\Programs\nyairo | Native Windows desktop client binaries (Windows only) | No backup needed; reinstall from the installer |
%LOCALAPPDATA%\nyairo | Windows 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:
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:
- On the old computer, completely exit nyairo and any gateway processes, then archive
~/.nyairointo a.tar.gzusing the commands above; - On the new computer, install the exact same version (
v0.8.0) of nyairo, but do not start the gateway yet; - 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; - Check for path differences: If the Linux username differs between the old and new machines (for example,
aliceon the old machine vs.bobon the new one), inspect~/.nyairo/chiyo/config.jsonand~/.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.
- Windows Desktop: Uninstall nyairo from Windows "Settings → Apps → Installed apps" (or run
- Option 2: Completely wipe the program, all chat memories, and configuration (irreversible—verify you need no backup first)
- 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"); - If you configured a persistent Linux
systemdservice, runsudo systemctl disable --now nyairo-gateway.serviceand remove its unit file; - In a Linux / WSL terminal, delete both the application and personal data directories:
- If you installed the Windows desktop client, uninstall it from Installed apps first as above, then delete the local configuration folder (in PowerShell, run
rm -rf "$HOME/.nyairo" "$HOME/.local/share/nyairo" "$HOME/.local/state/nyairo" "$HOME/.local/bin/nyairo"