Anki Sync

Overview

Anki sync server running on the server, accessible at anki.yhkze.net. Lets the desktop Anki client and AnkiDroid sync decks without relying on AnkiWeb.

URL: anki.yhkze.net — DNS only, direct TCP (reference Cloudflare DNS)

Module: modules/features/anki-sync-server.nix

Single user (user) — password in SOPS under anki/password.

Besides the user’s devices, the kioku MCP server syncs as one more client of the same account, so agents can edit the collection without the desktop app (reference kioku MCP).

Client Setup

Desktop (Anki)

  1. Open Anki → Tools → Preferences → Syncing
  2. Set Self-hosted sync server to https://anki.yhkze.net
  3. Log out if previously synced with AnkiWeb, then log back in
  4. Username: user, password: from SOPS

Android (AnkiDroid)

  1. Open AnkiDroid → Settings → AnkiDroid → Custom sync server
  2. Enable Use custom sync server
  3. Sync URL: https://anki.yhkze.net
  4. Username / password same as above

Operations

systemctl status anki-sync-server
journalctl -u anki-sync-server -n 50

State persists at /var/lib/anki-sync-server.