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.

  1. Close StarDrop before editing the authentication script.
  2. Press Windows + R to open the Run dialog. Paste %APPDATA% and press Enter. This Windows shortcut opens your user account’s application settings folder.
  3. 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.

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.

Python
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))

  1. Set NAME and EMAIL to the exact values registered for your licence. A personalised link may prefill them; check they match. Otherwise, replace YOUR NAME and YOUR EMAIL.
  2. Replace YOUR CYTOCAST LICENCE with your issued licence.
  3. Save the script in the py3 folder you located above as stardrop_model_server_auth.py. Keep the .py extension; do not save it as .py.txt, .txt or .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