ComfyUI Node

StyleRef Login

Skip it unless your styles are private

By StyleRef·Created 25 days ago·Updated 16 days ago· 4
StyleRef Login
    • status

    You can use the entire StyleRef pack without ever touching this node. Gallery styles load by slug with no account, and nothing in the pack spends credits. StyleRef Login exists for exactly one job: loading your own private styles - the ones you extracted from an image and refined on styleref.io. If you're only using public gallery styles, add this article's word count to your day's learning and move on.

    How it works

    Drag the node in and you'll see a status line plus Sign in and Sign out buttons - there's nothing to queue. Click Sign in (browser), your browser opens, you approve, and the node's status flips to signed in. The token lands in ~/.config/styleref/credentials.json with 0600 permissions, the same file the official styleref CLI uses, so a login here is a login there.

    Once you're signed in, StyleRef Load can resolve your private styles by id or /styles/<id> URL - or you can just use the Search styles… button and not type an id at all.

    The headless catch

    Here's where people get burned. Browser sign-in cannot work on a rented GPU box, RunPod, or any headless server - there's no browser to open, and localhost is the wrong machine. The fix is a token:

    1. Copy a token from your account page on styleref.io.
    2. Set STYLEREF_TOKEN=<token> where ComfyUI runs.
    3. Restart ComfyUI.

    STYLEREF_TOKEN always takes precedence over stored credentials, and the Login node detects the headless case and prints these instructions rather than hanging around waiting for a browser that will never appear. No frontend at all? npx styleref login signs in the same credentials file.

    Inputs and outputs

    None required, one output: status, a string that also shows in the node body. Don't expect to wire this into your generation graph - it's a session-level node. It tells the pack who you are; it doesn't touch pixels.

    Install

    The usual, via ComfyUI Manager (search StyleRef) or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/StyleRef/styleref-comfyui
    

    Restart and check the console for [StyleRef] v1.0.6 - 5 nodes registered. No Python dependencies - the pack imports on the standard library alone. Signing in is only for private styles; public gallery styles and everything else in the pack stay free and credential-free. If your styles are public, you can genuinely leave this node in the drawer.

    CategoryStyleRef

    Inputs (0)

    No inputs

    Outputs (1)

    NameTypeDescription
    statusSTRINGThe current sign-in status, also shown in the node body.