ComfyUI Extension: Simple LlamaCPP Client
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A lightweight custom node for ComfyUI that connects to a local llama.cpp OpenAI-compatible server with support for chat, vision, streaming, JSON mode, and clean answer/thinking separation.
Looking for a different extension?
Custom Nodes (2)
README
ComfyUI-Simple-LlamaCPP-Client
A lightweight custom node for ComfyUI that connects directly to a local llama.cpp OpenAI-compatible server.
It supports:
- π¬ Chat completions (
/v1/chat/completions) - πΌ Vision models (image + prompt input)
- β‘ Streaming mode (SSE token accumulation)
- π§ Clean Answer + Thinking separation
- π¦ Optional JSON-only output mode
- π Optional API key authentication
- π Minimal design (server-side parameters stay server-side)
β¨ Features
β
Works with any OpenAI-compatible llama.cpp server
β
Supports system prompt + user prompt
β
Optional image input for multimodal models
β
Outputs: Answer, Thinking, JSON, Raw, Model Used
β
Auto-detects model from /v1/models
β
Clean dropdown UI (no ugly free-text params)
π¦ Installation
cd ComfyUI/custom_nodes
git clone https://github.com/ai-joe-git/ComfyUI-Simple-LlamaCPP-Client.git
Restart ComfyUI.
π Server Example
llama-server.exe ^
-m Ministral-3-8B-Instruct.gguf ^
--host 127.0.0.1 ^
--port 8082 ^
--mmproj mmproj.gguf ^
-c 8192
π§© Node Inputs
| Input | Description |
|------|------------|
| server_url | llama.cpp server URL (default: http://127.0.0.1:8082) |
| prompt | User message text |
| system_prompt | Optional system instruction |
| image | Optional IMAGE input (vision models) |
| api_key | Optional Bearer token |
Model Selection
| Input | Description |
|------|------------|
| model_mode | Dropdown: auto / custom |
| model_override | Only used if model_mode = custom |
Stop Control
| Input | Description |
|------|------------|
| stop_mode | Dropdown: none, preset:common_eot, preset:triple_hash, custom |
| stop_custom | Used only if stop_mode = custom |
Text Cleanup
| Input | Description |
|------|------------|
| text_postprocess | Dropdown: fix_mojibake, none, ascii_quotes, fix_mojibake+ascii_quotes |
(Default fixes HereΓ’ΒΒs β Hereβs)
π€ Node Outputs
| Output | Description |
|-------|------------|
| answer | Final cleaned answer |
| thinking | Reasoning if provided |
| json | Parsed JSON output (if enabled) |
| raw | Full raw server response |
| model_used | Model name used |
π License
MIT License.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.