---
title: "ComfyUI Downloader"
description: "Rust daemon for managing AI model downloads from CivitAI with intelligent routing, update tracking, and a Tauri desktop app"
canonical_url: "https://cesasol.dev/work/comfyui-downloader"
---

> Index of every page on this site: [llms.txt](https://cesasol.dev/llms.txt)

## Overview

A Rust-based daemon that manages AI model downloads from CivitAI for ComfyUI. Runs as a SystemD user service, exposing a Unix socket interface for model management, with a companion Tauri/Svelte desktop application.

### Key Features

- **Download Management** — Queue processing with configurable concurrency and HTTP range request resumption
- **Intelligent Routing** — Automatically places checkpoints in correct subdirectories by analyzing safetensors headers for VAE/CLIP components
- **Metadata & Verification** — Generates `.metadata.json` sidecars with SHA-256 hashes and CivitAI API data
- **Update Tracking** — Periodic polling identifies newer model versions and sends desktop notifications
- **Startup Scanning** — Detects existing models via hash lookup and registers them for update tracking
- **Desktop App** — Tauri/Svelte GUI for managing downloads and browsing the model catalog

## Architecture

The codebase is organized into:

1. **Daemon** — Queue, downloader, scanner, and updater components
2. **IPC** — Protocol, server, and client over Unix sockets
3. **CivitAI Integration** — API client for model metadata and downloads
4. **Catalog** — SQLite-backed model registry
5. **CLI** — `comfyui-dl` command-line tool for API key setup, model management, and status checks

## Links

- [Source Code](https://gitlab.com/cesasol/comfyui-downloader)

## Technologies Used

- Rust
- Tauri + Svelte (desktop app)
- SQLite
- SystemD user services
- CivitAI API

## Sitemap

See the full [sitemap](https://cesasol.dev/sitemap.md) for all pages.
