{"id":50573413,"url":"https://github.com/caru-ini/modal-comfyui","last_synced_at":"2026-06-04T20:02:15.221Z","repository":{"id":352148383,"uuid":"1136856374","full_name":"caru-ini/modal-comfyui","owner":"caru-ini","description":"Run ComfyUI on Modal with auto-scaling, GPU snapshots, and easy model management.","archived":false,"fork":false,"pushed_at":"2026-04-18T04:13:57.000Z","size":54,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T06:17:57.919Z","etag":null,"topics":["cloud-gpu","comfyui","gpu-computing","modal-gpu","serverless-gpu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caru-ini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-18T13:42:26.000Z","updated_at":"2026-04-18T04:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/caru-ini/modal-comfyui","commit_stats":null,"previous_names":["caru-ini/modal-comfyui"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/caru-ini/modal-comfyui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fmodal-comfyui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fmodal-comfyui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fmodal-comfyui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fmodal-comfyui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caru-ini","download_url":"https://codeload.github.com/caru-ini/modal-comfyui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fmodal-comfyui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33917185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-gpu","comfyui","gpu-computing","modal-gpu","serverless-gpu"],"created_at":"2026-06-04T20:02:14.517Z","updated_at":"2026-06-04T20:02:15.202Z","avatar_url":"https://github.com/caru-ini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modal-comfyui\n\nRun ComfyUI on Modal with auto-scaling, GPU snapshots, and easy model management.\n\nGood for testing wan2.2 or other video generation models.\n\n## Prerequisites\n\n- A Modal account\n- Python installed\n- `uv` installed\n\n## Installation\n\n1. Clone this repository.\n2. Install the Modal client:\n   ```bash\n   uv sync\n   ```\n3. Set up your modal account (if not done already):\n   ```bash\n   modal setup\n   ```\n4. Set up your modal secret (optional; recommended)\n   ```bash\n   modal secret create huggingface-secret HF_TOKEN=hf_[your HF access token]\n   ```\n\n## Configuration\n\n### Models\n\nCopy `models.example.py` to `models.py` and edit it to manage your models. You can specify:\n- Hugging Face models(`models`) using `repo_id` and `filename`.\n- External models(`models_ext`, e.g. civitai) using a direct `url`.\n\nModels are downloaded to volumes and symlinked to the specified `model_dir`.\n\n`model_dir` accepts two styles:\n- **Relative path** (recommended for standard ComfyUI folders): resolved under `/root/comfy/ComfyUI/models/`. e.g. `\"checkpoints\"` → `/root/comfy/ComfyUI/models/checkpoints`.\n- **Absolute path**: used as-is. Use this when the target lives outside `ComfyUI/models/` (e.g. a custom node's own model directory).\n\nSee `models.example.py` for reference.\n\n### Plugins and Custom Nodes\n\nCopy `plugins.example.py` to `plugins.py` and edit it to add custom node IDs or titles to be installed via `comfy-cli`.\n- **Workflow Dependencies**: If you have a `workflow_api.json` in the root directory, the setup will automatically install the necessary custom nodes for that workflow.\n\n### In case of Insufficient Custom Node\n\nOpen ComfyUI manager on comfyui and click \"Used in Workflow\" to see which custom nodes are used in the workflow.\n\nAdd these custom nodes to `plugins.py`(be careful of node id).\n\n## Usage\n\n### Serve (Development)\n\nRun the following command to start ComfyUI in development mode:\n```bash\nmodal serve comfyui.py\n```\nThis will provide a temporary URL where you can access the ComfyUI interface.\n\n### Deploy (Production)\n\nTo deploy ComfyUI as a persistent app:\n```bash\nmodal deploy comfyui.py\n```\n\n## Features\n\n- **Auto-scaling**: Scales down to zero when not in use to save costs.\n- **GPU Snapshots**: Fast startup times using Modal's GPU snapshots.\n- **Model Caching**: Uses Modal Volumes to cache models across runs.\n- **Custom Node Management**: Integrated with `comfy-cli` for easy plugin installation.\n\n## Contributing\n\nPlease feel free to contribute to make this project better.\nPerformance improvements/optimizations are very welcome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaru-ini%2Fmodal-comfyui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaru-ini%2Fmodal-comfyui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaru-ini%2Fmodal-comfyui/lists"}