Privacy and security

What leaves your computer

Nothing, unless you ask for it, apart from one small update check. ZettelApp has no accounts, telemetry or ads, and it doesn't load anything from the internet while you work. These are all the network requests it can make:

When… ZettelApp contacts What is sent
About 4 seconds after ZettelApp starts (can be turned off) https://dutrairs.github.io/ZettelApp/version.json One HTTPS request for that file, with the header User-Agent: ZettelApp/<version>. Nothing else: no notes, settings or identifiers. Any failure is silent. See Updates.
You ask a question on the Ask page The AI provider you configured (Anthropic, OpenAI, Z.ai or your own endpoint) Your question and the notes listed under Sources sent
You test the AI connection or refresh the model list The same provider Your API key, to authenticate
You click Download model in Tools ▸ Options ▸ Search and confirm (or ticked Set up semantic search in the installer: then at the first start) huggingface.co, which may redirect to its download servers One HTTPS request per file of the semantic search model, with the header User-Agent: ZettelApp/<version>. Nothing about your notes. Each file is checked against a fixed SHA-256 before it is used. See Semantic search.
You Sync to Anki AnkiConnect on this computer (127.0.0.1) The flashcards in the chosen scope
You use Insert ▸ Zotero Reference or Test connection in the Zotero options Zotero on this computer (127.0.0.1) Your search words (read-only)
You click a web link, or use Help ▸ Website / Documentation / Check for Updates, or the update notice's Download button Your web browser opens the page Nothing from ZettelApp

To stop the update check, untick Tools ▸ Options ▸ General ▸ Check for updates when ZettelApp starts; ZettelApp then makes no request until you ask a question or use one of the other features above.

Local connections to Anki and Zotero never use a proxy, so they can't be redirected off your computer. The MCP server makes no network requests at all.

Where your data lives

What Where
Notes, links, flashcards, review history Your vault folder: zettel.db (SQLite). By default Documents\ZettelApp.
Images The vault's assets folder.
Preferences The registry, under HKEY_CURRENT_USER\Software\ZettelApp\ZettelApp.
API keys The system keyring — Windows Credential Manager (ZettelApp/llm/…) on Windows, the Secret Service (GNOME Keyring / KWallet) on Linux — never in files or the registry.
Logs %LOCALAPPDATA%\ZettelApp\Logs (rotated, at most a few MB). They record errors, not your notes, and never include API keys.
Automatic backups %LOCALAPPDATA%\ZettelApp\Backups
Small UI cache %LOCALAPPDATA%\ZettelApp\Cache
Semantic search model and index, if you set it up %LOCALAPPDATA%\ZettelApp\Search. The index is derived from your notes and is never in the vault, so it isn't synced with it. Remove model and index in Tools ▸ Options ▸ Search deletes it.

On Linux, the same items live in the XDG folders: notes default to Documents/ZettelApp, preferences in ~/.config/ZettelApp/ZettelApp.conf, logs, backups and the search model under ~/.local/share/ZettelApp, and the small UI cache in ~/.cache/ZettelApp.

The vault is an ordinary folder: you can copy it, back it up or keep it in OneDrive. ZettelApp writes the database with full synchronisation, a setting chosen to suit synced folders. Avoid opening the same vault on two computers at the same time.

Backups and undo

  • Daily backups: the first time a vault is opened each day, a consistent copy of its database is saved. The newest 10 are kept (Options ▸ Backups). File ▸ Back Up Vault Now makes one any time. Images are stored by content and never deleted automatically.
  • Trash: deleted notes go to the Trash first, and can be restored until you empty it.
  • Autosave: notes save as you type. A crash dialog reports unexpected errors and writes details to the log.

How ZettelApp protects you

Notes can come from imports, the web or AI answers, so ZettelApp treats their contents as untrusted:

  • No active content. Raw HTML in notes is shown as text, never rendered; nothing in a note can run scripts. The note preview loads images only from the vault's own assets folder, never from the web or elsewhere on disk.
  • Link allowlist. Clicking a link opens only web pages (http/https), e-mail (mailto), notes, Zotero select item / open PDF links, and links to local files (below). javascript: and other schemes are refused.
  • Local file links only reveal the file. A file:/// link opens your file manager with the file selected; the file itself is never opened or run. Only paths on a local drive are allowed. Network (UNC) paths such as \\server\share are refused, because looking one up can send your network credentials to that server.
  • Images are verified by content, not by file name. Only PNG, JPEG, GIF, WebP and BMP up to 25 MB are accepted; SVG is refused because it can carry scripts. Verification covers the file signature and compressed size; pixel dimensions are checked when the image is first displayed.
  • Safe imports. Archives are checked for path tricks ("zip-slip") and decompression bombs. Every field is validated and size-limited, Markdown imports can't reach outside the imported folder, and a failed import leaves the vault unchanged: imports run in a single database transaction that is rolled back on any error.
  • Safe exports. Exported websites contain no scripts and carry a strict Content-Security-Policy. Files are written atomically.
  • Database safety. All database queries use bound parameters, and search text is never interpreted as query syntax.
  • zettelapp:// links (used by Anki cards) can only open a note by its ID. Any other request is ignored.
  • Single instance per user. A second launch hands its request to the running app through a channel — a Windows named pipe, or a user-only local socket on Linux — that only your user account can access.
  • AI safety. The AI model gets no tools, so instructions hidden in a note can't make it act, and its answer is rendered with the same safe renderer. API keys stay in the system keyring and are removed from error messages.
  • MCP server and its switch. MCP clients can reach your notes only while ZettelApp is open and the MCP switch in its status bar is on. The switch is off every time ZettelApp starts and is never saved. The server is read-only by default, runs only when your MCP client starts it, and uses standard input/output with no network port. See MCP server.

Uninstalling

On Windows, uninstall from Windows Settings ▸ Apps ▸ Installed apps ▸ ZettelApp ▸ Uninstall. The uninstaller offers an unticked option, Also delete my ZettelApp settings and data. If you tick it, it removes your settings, the API keys saved in Credential Manager, logs, the cache, automatic backups and the semantic search model and index (%LOCALAPPDATA%\ZettelApp) and all your notes (the database and attachments of your vaults). Unticked, your notes stay where they are. On Linux, remove the package (sudo apt remove zettelapp, or uninstall it in your software centre); your notes and your settings in ~/.config/ZettelApp stay unless you delete them yourself.

Found a security problem? Please report it privately; see SECURITY.md.