The local Comfy agent: run the same agent as Comfy Cloud next to your local ComfyUI.
Actively maintained. Last release 1 day ago. A safe choice.
pip install comfy-agentREADME as published on PyPI with version 0.1.6.
comfy-agent
The Comfy agent for ComfyUI, from Comfy Org: the same agent as Comfy Cloud, running next to your local ComfyUI.
Early release. Expect changes between versions.
Install
Install it into the same Python environment as ComfyUI:
pip install comfy-agent
Then start ComfyUI with --enable-agent. ComfyUI finds the agent through this package's comfyui.agent entry point and serves it on its own address under /api/agent.
Wheels are published for macOS 12+ (Apple silicon and Intel), Linux (x86_64 and arm64) and Windows (x86_64). Each wheel bundles the agent executable. The Node.js runtime it uses comes from comfy-agent-node, which the agent accepts at any release of its pinned Node runtime up to the one it was built with, so upgrading the agent does not download Node again unless the runtime changes.
Recommended on Python 3.10+: comfy-agent-go
comfy-agent-go carries the agent executable as its own package, together with the comfy-cli build the agent is tested with. Install it with the go-nonfree extra, which pins it to this package's exact version:
pip install "comfy-agent[go-nonfree]"
When it is installed and matches this package, comfy-agent starts it instead of its bundled copy. Set COMFY_AGENT_BACKEND=bundled to always use the bundled one.
Without the extra, the agent uses the comfy command (comfy-cli) from ComfyUI's environment, and does not start when there is none. Some agent actions then need a recent comfy-cli: muting or bypassing a node needs comfy-cli 1.22.0 or newer, and running a workflow as the open ComfyUI tab (so its results show there) needs 1.24.0 or newer. Upgrade with pip install -U comfy-cli, or install the extra above.
License
MIT.