Config JSON
Add-ons can store config data in a JSON dictionary. You provide the default values by shipping a file calledconfig.json. A simple example:
meta.json.
When getConfig() is used after edits, meta.json is used preferentially. If a key
is missing from meta.json’s config, Anki will fall back on the default config.
If you change the value of existing keys in config.json, users who have
customized their configuration will continue to see the old values
unless they use the “restore defaults” button.
If no config.json file exists, getConfig() will return None - even if
you have called writeConfig().
Add-ons that manage options in their own GUI can have that GUI displayed
when the config button is clicked: