Privacy First: Local folders are private to your account. They’re searched separately from public repositories and documentation.
Quick Install
Follow the Installation guide to install the Nia CLI vianpx nia-wizard@latest.
Getting Started
1
Login
Authenticate with your Nia account:This opens your browser for secure OAuth authentication.
2
Add a Source
Add a local folder or database to sync:The CLI auto-detects known database paths (iMessage, browser history, etc.).
3
Start Syncing
Start the sync daemon:The daemon watches for file changes and syncs incrementally in real-time.
4
Check Status
View all synced sources:
CLI Commands
Core Commands
Search & Query
Search your indexed sources directly from the terminal:Monitoring & Debugging
Sync Control
Web Integration
Open Nia web app pages directly from the CLI:Configuration Management
Config Commands
Manage CLI settings directly from the terminal:Ignore Patterns
Customize which files are excluded from sync:Watch Directories
Configure which directories are scanned for auto-linking sources:Source ID Shortcuts
You don’t need to type full UUIDs. Nia accepts:- ID prefixes:
nia info a3f2matchesa3f2b1c8-... - Display names:
nia pause "My Notes"matches by folder name
Daemon Mode
Runningnia without arguments starts the sync daemon with real-time file watching:
- Watches for file changes using native filesystem events
- Syncs changes within seconds of detection
- Periodically refreshes the source list from the web UI
- Auto-discovers new folders matching unlinked sources
- Sends heartbeats to mark daemon as online
Daemon Flags
Supported Data Sources
Nia Sync automatically extracts and indexes content from various data sources:Chat & Messages
- iMessage (
~/Library/Messages/chat.db) - WhatsApp (
ChatStorage.sqlite) - Telegram (JSON exports, ZIP files)
Apple Ecosystem
- Apple Notes (
NoteStore.sqlite) - Apple Contacts (AddressBook / vCard)
- Apple Reminders (SQLite)
- macOS Stickies (Stickies DB / plist)
Browser History
- Safari (
~/Library/Safari/History.db) - Chrome / Brave / Edge
- Firefox
Media & Files
- Screenshots (metadata + optional OCR text)
- Generic SQLite databases
- Regular folders with text files, code, notes
Virtual File Format
Database content is extracted into virtual text files for semantic search:Web UI
You can also manage synced sources from the Nia web app:- Go to app.trynia.ai
- Navigate to Settings → Local Sync
- View sync status, add/remove sources, and configure sync intervals
Sync Intervals
Configure how often sources are synced:Searching Local Folders
Once synced, your local folders are searchable via MCP tools:Local folders are private and searched separately from public repositories. Use
local_folders parameter in search() to include them.Configuration
Environment Variables
Config File
Credentials are stored in~/.nia-sync/config.json with secure permissions (mode 0600).
Limits
Security
350+ exclusion patterns automatically protect sensitive files from being synced.
- Credentials:
.env,.pem,.key, SSH keys,*credentials*,*secrets*,*token* - Version control:
.git,.svn - Dependencies:
node_modules,venv,__pycache__ - Build outputs:
dist/,build/,.next/
End-to-End Encryption
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.

