Sync with your own server
AnnaNative syncs with any server that speaks Anki's sync protocol, including AnkiWeb.1 The simplest one you run yourself is the sync server built into Anki itself, which you can run on a computer at home or on a small always-on server. Desktop Anki, AnkiMobile and AnkiDroid can all point to the same server, so your devices stay in step. There is no preset server: you enter the address yourself.
Sync is optional. If you only study on your iPhone, or move decks with files, you don't need a server at all.
Before you start
- This is an advanced setup. Anki's manual describes it as meant for people comfortable with networking and the command line.
- Match versions. AnnaNative 1.2 uses Anki's core 26.09.2. Run the server from a matching Anki version; the manual warns that updating clients without the server can break syncing.
- Keep it private. The server speaks plain HTTP. Use it on your home network, or put it behind a VPN or an HTTPS reverse proxy before reaching it from outside.
Option 1: the server inside Anki desktop
Quickest for trying it on a computer that is already on. On a Mac, in Terminal:
SYNC_USER1=yourname:yourpassword /Applications/Anki.app/Contents/MacOS/anki --syncserver
On Linux, run SYNC_USER1=yourname:yourpassword anki --syncserver. The manual has the Windows command. The server listens on port 8080. Add more people with SYNC_USER2, SYNC_USER3 and so on.
Option 2: an always-on server
On any machine with Python 3.9 or later:
python3 -m venv ~/syncserver
~/syncserver/bin/pip install anki
SYNC_USER1=yourname:yourpassword ~/syncserver/bin/python -m anki.syncserver
For Docker, the Anki repository has a community Dockerfile. Useful settings: SYNC_BASE for the data folder, SYNC_HOST and SYNC_PORT for the address, and MAX_SYNC_PAYLOAD_MEGS to raise the 100 MB upload limit for large collections.
Connect AnnaNative
- Open Settings and tap the sync row at the top.
- Enter the Server Address, for example
http://192.168.1.20:8080/. Use the address of the computer running the server, and keep the trailing slash. - Enter the Username and Password you set in
SYNC_USER1, then tap Sign In and Sync. - The first sync replaces one side with the other, so AnnaNative asks you to choose. If both sides have cards, pick Download Server Collection to take what is on the server, or Upload This iPhone's Collection to replace the server's copy with your iPhone's. If your iPhone has no cards of its own yet, only the download is offered, so an empty iPhone never replaces the server's collection. You confirm the choice once more, and AnnaNative backs up your iPhone's collection before it starts.
When AnnaNative syncs
- Automatically, when you open AnnaNative, when you come back to it and when you leave a study session. It waits until the Decks tab is on screen.
- By hand: pull down on the Decks tab, or tap Sync Now on the sync page.
- Not in the background. If you leave the app during a sync, that sync stops and runs again when you come back.
- Edits wait for the next sync. New notes, edits, imports and deck option changes stay on your iPhone until then.
- A full sync never starts on its own. When one is needed, AnnaNative stops and asks which side to keep, as on the first sync.
The first time you connect to a server on your home network, iOS asks whether AnnaNative may find devices on your local network. Allow it, or the server can't be reached.
Connect your other devices
- Anki desktop: Preferences → Syncing, enter the same address, then sign in with the same username and password. Anki's messages still say "AnkiWeb" even with your own server.
- AnkiMobile and AnkiDroid: both support a custom sync server; see their manuals.
About AnkiWeb
To sync with AnkiWeb, sign in the same way with the AnkiWeb sync address and your AnkiWeb account.1 The only thing AnnaNative takes out before any sync is its own sample deck, so those paintings never reach the server.
If sync fails
- Can't connect: check that the server is running, that your iPhone is on the same network, and that local network access is on for AnnaNative in iOS Settings → Privacy & Security → Local Network.
- Asked to choose a direction again: a full sync is needed after some changes, such as a schema change on another device. Pick the side that has the collection you want to keep.
- Large uploads stop: raise
MAX_SYNC_PAYLOAD_MEGSon the server, and the upload limit of any proxy in front of it.
Source: Anki manual: self-hosted sync server.
Notes
- AnnaNative is not a sync client approved by the Anki team; AnkiWeb's terms name Anki, AnkiMobile, AnkiDroid and AnkiUniversal as approved clients. You enter the sync server address yourself, either AnkiWeb or a self-hosted server; there is no preset server. Sync runs on Anki's own unmodified sync code and does nothing to your data that Anki itself wouldn't. Whether to use AnkiWeb with AnnaNative is your decision under AnkiWeb's terms. ↩
Last updated 2026-12-04