comfyui-llamacpp-plus
Access llama.cpp server, plus ease-of-life functionality
Nodes (8)
The LlamaCPP Chat workhorse
No wheels, no VRAM math
The enable_* pattern in LlamaCPP Options
Warm the LLM Without Blocking Your Graph
The Node That Shoves Itself to the Front of the Queue
The tiny settings node that turns model output into a screenshot
URL, model dropdown, done
Voice cloning through a local OpenAI-compatible TTS server
comfyui-llamacpp-plus
A set of nodes to connect llama.cpp models to ComfyUI. Supports text, image, video, and audio inputs, multi-turn chat, HTML/chart visualization, model unloading, and reasoning mode. Now with agentic use in mind! BREAKING CHANGE for Chat and Option node (sorry), refresh Option and select a new reasoning level (got rid of Thinking On/Off)
If you want a UI to update and load your llama.cpp server and are on Windows, check out Togglellama to have a taskbar system tray icon that unloads model and has 8 custom flag presets.
Nodes
- LlamaCPP Connectivity — Set your server URL, model, and keep-alive behavior
- LlamaCPP Chat — Main inference node. Supports multi-modal input, session memory, and HTML visualization
- LlamaCPP Unload Model — Unloads the listed model at the start of the Run
- LlamaCPP Preload Model — Warm up your LLM with option to clear loaded ComfyUI models
- LlamaCPP Options — Optional sampling overrides (temperature, top-k, seed, context length, etc.)
- LlamaCPP Visualizer HTML — Renders any HTML string to a ComfyUI IMAGE via Playwright
- OpenAI TTS Connectivity -- Refresh will populate dropdown with model deployed
- OpenAI TTS Speech -- Outputs audio using either reference from audio input or filepath
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/your-username/comfyui-llamacpp-plus
For HTML visualization:
pip install playwright && playwright install chromium
Notes
- Set
keep_alive=0to unload the model from VRAM after each run media_mode=nonelets you leave inputs wired without sending them
License
MIT