Continuously sync local folders, databases, and chat history to Nia — with optional end-to-end encryption.
Nia Sync is a standalone CLI daemon that continuously synchronizes your local data sources with Nia, enabling AI agents to search your personal knowledge base.
Privacy First: Local folders are private to your account. They’re searched separately from public repositories and documentation.
nia-sync is deprecated. Local sync is now built into the main Nia CLI installed by npx nia-wizard@latest. If you previously installed nia-sync via pip or uv, uninstall it to avoid conflicts with the new nia command:
Search your indexed sources directly from the terminal:
# Basic search with streaming AI responsenia search "meeting notes from last week"# Search specific foldersnia search "project updates" --local-folder my-notes --local-folder work-docs# Show source snippets alongside the answernia search "authentication code" --sources# Raw text output (no markdown rendering)nia search "api endpoints" --no-markdown# JSON output for scriptingnia search "config values" --json --no-stream
Flag
Description
-l, --local-folder
Limit search to specific folder(s). Accepts ID prefix or display name
nia open dashboard # Open main dashboardnia open activity # Open activity feednia open local-sync # Open local sync settingsnia open api-keys # Open API keys pagenia open billing # Open billing pagenia open docs # Open documentationnia open <source-id> # Open specific source detail page
Once synced, your local folders are searchable via MCP tools:
# Search across local folderssearch(query="meeting notes from last week", local_folders=["folder-id-here"])# Read files from a local foldernia_read(source_type="local_folder", local_folder_id="folder-id-here", path="/notes/meeting.txt")# Grep in local foldersnia_grep(source_type="local_folder", local_folder_id="folder-id-here", pattern="TODO")# Explore folder structurenia_explore(source_type="local_folder", local_folder_id="folder-id-here", action="tree")
Local folders are private and searched separately from public repositories. Use local_folders parameter in search() to include them.
For sensitive personal data (messages, contacts, notes), Nia supports E2E encrypted sync where plaintext never leaves your device. The server stores only ciphertext and encrypted vectors.
E2E Encryption Guide
Learn how E2E encryption works, supported source types, key management, and cookbook examples for syncing iMessage, WhatsApp, Apple Notes, and more.