Modify sync settings without GUI

Hey all!

I’m currently trying to build a language learning app where users can sync their own vocabulary with Anki. Since I want to support mobile, using AnkiConnect to sync to their collection is not an option. My current architecture is to create a sync server on-demand, sync all of the user’s data to their device, and then tear it down again:

The issue with this is that I cannot figure out how to get my headless-anki instance (which is simply a container running in a Kubernetes Cluster) to connect to my sync server. Where do I configure sync user, password and host without GUI? I can’t find good information on the database structure anywhere. Any help would be appreciated.

1 Like

Please see

1 Like

Hey @abdo, thanks for your reply! Unfortunately, I have been through that docs page several times and cannot find the required information.

It doesn’t provide a lot of info on how to connect a client to the sync server. It mentions pointing the client to the sync server host, and it mentions a SYNC_SERVER environment variable; but it doesn’t outline how to handle authentication programmatically.

To be clear: I can configure the sync server. What I want to know is how to connect a Client to it without GUI.