Set up StarDrop authentication
Prepare your name, email address and Cytocast licence for use in StarDrop.
1. Find the authentication file
Choose your operating system and locate the folder below. Keep StarDrop closed while editing.
- Close StarDrop before editing the authentication script.
- Press Windows + R to open the Run dialog. Paste
%APPDATA%and press Enter. This Windows shortcut opens your user account’s application settings folder. - Open StarDrop, then py3. If either folder is missing, create it using New → Folder.
The file will normally be at C:\Users\<your Windows username>\AppData\Roaming\StarDrop\py3\stardrop_model_server_auth.py. The shortcut finds your user folder automatically.
- Quit StarDrop before editing the authentication script.
- In Finder, choose Go → Home to open your user folder. Open StarDrop, then py3. If either folder is missing, create it using File → New Folder.
The file should be at /Users/<your Mac username>/StarDrop/py3/stardrop_model_server_auth.py.
Look for stardrop_model_server_auth.py in the py3 folder. If it exists, open it in a plain-text editor. Otherwise, create a new plain-text document.
On macOS, if you use TextEdit for a new document, choose Format → Make Plain Text before pasting the code.
2. Copy, edit and save the script
Copy this Python template into a plain-text editor, then replace the placeholders. The code on this page is read-only.
Creating a new script
Copy the complete template below into your new document.
Updating an existing script
Keep your existing script and its other dictionary entries. Ensure its data dictionary contains "name": NAME, "email": EMAIL, and "cytocast_licence": CYTOCAST_LICENCE. Define all three variables as shown in the template. Authentication fails if the name or email is missing, even when the licence is present.
import json
NAME = "YOUR NAME"
EMAIL = "YOUR EMAIL"
CYTOCAST_LICENCE = "YOUR CYTOCAST LICENCE"
def collect_auth_details(appui):
data = {
"name": NAME,
"email": EMAIL,
"cytocast_licence": CYTOCAST_LICENCE,
}
appui.updateSettingsValue("modelserver/auth", json.dumps(data))- Set
NAMEandEMAILto the exact values registered for your licence. A personalised link may prefill them; check they match. Otherwise, replaceYOUR NAMEandYOUR EMAIL. - Replace
YOUR CYTOCAST LICENCEwith your issued licence. - Save the script in the
py3folder you located above asstardrop_model_server_auth.py. Keep the.pyextension; do not save it as.py.txt,.txtor.rtf.
The function saves the three values as JSON in StarDrop’s modelserver/auth setting when called with its appui object. Copying the template does not run it or change your StarDrop settings.
3. Connect in StarDrop
Open StarDrop again to load the saved script, then follow the model-server connection steps.
Continue to server connection