ComfyUI_clip_token_counter
CLIP token counter for ComfyUI — shows token count and adds copy button to CLIPTextEncode node
ComfyUI CLIP Token Counter ✨
A visual enhancement extension for ComfyUI that shows real-time token count and adds a copy button to the CLIP Text Encode node.
🎬 Demo
<video src="https://github.com/user-attachments/assets/f963ab81-c8bb-4226-a9cd-94aca669001b" controls loop muted width="700"></video>
🌻 Features
Token Counter
Simply open any CLIPTextEncode node — the token count appears automatically in the bottom-left corner as you type.
Copy · Paste · Clear
- Click Copy to copy the full prompt, or select text first to copy only that portion
- Click Paste to insert clipboard content at the end of existing text
- Click Clear to erase all text from the field
Note node
Hold Alt and copy any Note node to enable all features on it.
⚡ Performance
- Only activates on
CLIPTextEncodenodes — zero overhead on other nodes - Uses ComfyUI's native rendering pipeline
- Compatible with ComfyUI Frontend v1.41+
📦 Installation
Option 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Click Install Custom Nodes
- Search for
ComfyUI_clip_token_counter - Click Install
- Restart or run ComfyUI.
Option 2: Git Clone
cd ComfyUI/custom_nodes/
git clone https://github.com/Bob-Bar-B-Que/ComfyUI_clip_token_counter.git
Restart or run ComfyUI.
Option 3: Manual Install
- Download this repository as ZIP (Code → Download ZIP)
- Extract into
ComfyUI/custom_nodes/ComfyUI_clip_token_counter/ - Make sure the folder contains
__init__.pyandweb/clip_token_counter.js - Run ComfyUI
Option 4: Portable / Windows
- Download ZIP and extract to:
ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_clip_token_counter\ - Restart or run ComfyUI.
📋 Changelog
v1.1.0 — Current
- 📋 Paste button — pastes clipboard content into the text field without replacing existing text
- 🗑️ Clear button — clears all text from the field instantly
- 📝 All features now work on Note nodes too — just hold Alt and copy the node to enable
v1.0.0
- 🔢 Real-time token counter for CLIPTextEncode nodes
- 📋 Copy button for full or selected text
- ⚡ Zero overhead on non-CLIP nodes
- 🇺🇦 Full compatibility with ComfyUI Frontend 1.41+
🌻 Support the Project
If this extension helps your workflow, consider supporting a Ukrainian developer 🇺🇦
🌻 Donatello (Ukrainian platform)
🌾 Monobank
Scan the QR code or click on it to open the bank:
🪙 Crypto — USDT TRC20
Scan the QR code or click on it to copy the address:
📄 License
MIT License — free to use, modify and distribute.
🌾 Credits
- Built for ComfyUI by @comfyanonymous
- Made with 🌻 in Ukraine 🇺🇦

