Metadata-Version: 2.4
Name: comfy-agent
Version: 0.1.0rc9
Summary: The local Comfy agent: run the same agent as Comfy Cloud next to your local ComfyUI.
Project-URL: Homepage, https://www.comfy.org
Author: Comfy Org
License-Expression: MIT
License-File: LICENSE
Keywords: agent,comfy,comfyui
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: aiohttp>=3.11.8
Requires-Dist: comfy-agent-node<=22.23.2.post1,>=22.23.2
Provides-Extra: go-nonfree
Requires-Dist: comfy-agent-go==0.1.0rc9; extra == 'go-nonfree'
Description-Content-Type: text/markdown

# comfy-agent

The Comfy agent for [ComfyUI](https://github.com/Comfy-Org/ComfyUI), from [Comfy Org](https://www.comfy.org): the same agent as Comfy Cloud, running next to your local ComfyUI.

**This is a pre-release.** Expect changes between versions.

## Install

Install it into the same Python environment as ComfyUI:

```
pip install --pre 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](https://pypi.org/project/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](https://pypi.org/project/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 --pre "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. 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.
