git404hub

what is comfyui-lmstudio fr?

winnougan/comfyui-lmstudio — explained in plain English

Analysis updated 2026-05-18

2PythonAudience · developerComplexity · 3/5Setup · moderate

tl;dr

Custom ComfyUI nodes that let you use a locally running LM Studio model for image captioning or text generation, with no cloud calls or API keys.

vibe map

mindmap
  root((comfyui lmstudio nodes))
    Nodes
      LM Studio Connection
      LM Studio Generate Text
    Features
      Local text generation
      Image captioning
      No cloud API needed
    Gotchas
      Reasoning model token limits
      Single image per batch
    Tech stack
      Python custom node
      ComfyUI integration
      LM Studio backend
    Audience
      ComfyUI workflow builders
      Local model developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Caption a batch of images locally to build a LoRA training dataset without cloud API costs.

VIBE 2

Add a local text generation step into an existing ComfyUI image workflow.

VIBE 3

Swap ComfyUI's built-in CLIPLoader and TextGenerate nodes for a local LM Studio backend.

VIBE 4

Experiment with vision-capable local models for automatic image description.

what's the stack?

PythonComfyUILM Studio

how it stacks up fr

winnougan/comfyui-lmstudio0-bingwu-0/live-interpreter010zx00x1/faresnipe
Stars222
LanguagePythonPythonPython
Setup difficultymoderatemoderateeasy
Complexity3/52/52/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires LM Studio already running locally with a loaded model and its Developer server started.

in plain english

This project connects ComfyUI, a visual tool for building AI image generation workflows, to LM Studio, an app that runs AI language and vision models directly on your own computer. It adds two building blocks you can drag into a ComfyUI workflow so you can use a locally running model for tasks like writing image captions or generating text, without sending anything to a cloud service or needing an API key. The first block connects to your running LM Studio server, checking right away that the server is reachable and that the model name you typed matches what is actually loaded, so you get a clear error immediately rather than a failure partway through a batch. The second block sends the actual request: you give it a prompt, and optionally an image if you want the model to describe or caption that picture, along with the usual controls like how creative the response should be. The result comes back as plain text that can be saved to a file or shown directly inside your workflow. The README spends real attention on one specific gotcha: some models write out a long hidden reasoning process before giving their final answer, and if you set the response length limit too low, the model runs out of room mid-thought and you get messy, half-finished text instead of a clean caption. It gives concrete guidance, suggesting a much higher limit for these reasoning-style models than for ordinary ones. Setup involves dropping the project folder into ComfyUI's custom nodes directory, restarting ComfyUI, and starting the server inside LM Studio itself. It only works with vision-capable models when captioning images, and currently only processes the first image in a batch, though the author notes that batch support could be added if requested.

prompts (copy fr)

prompt 1
Walk me through installing these ComfyUI LM Studio nodes and connecting them to my running LM Studio server.
prompt 2
Explain why setting max_tokens too low breaks captions with reasoning models like Qwen thinking variants.
prompt 3
Help me build a ComfyUI workflow that captions an image and saves the caption to a text file.
prompt 4
What settings should I use for a non-reasoning vision model versus a thinking model in this node?

Frequently asked questions

what is comfyui-lmstudio fr?

Custom ComfyUI nodes that let you use a locally running LM Studio model for image captioning or text generation, with no cloud calls or API keys.

What language is comfyui-lmstudio written in?

Mainly Python. The stack also includes Python, ComfyUI, LM Studio.

How hard is comfyui-lmstudio to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is comfyui-lmstudio for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.