mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[GH-ISSUE #1196] Add Hugging Face Endpoint Configuration Support #335
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @christian-byrne on GitHub (Jun 16, 2025).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/1196
Add Hugging Face Endpoint Configuration Support
Summary
Add UI-based configuration support for Hugging Face endpoints (HF_ENDPOINT) to enable users to easily configure mirror endpoints like
hf-mirror.com, following the existing mirror configuration patterns already established in the codebase.Problem
Users cannot reliably configure Hugging Face endpoints on Windows Desktop version (see #832). While the app inherits system environment variables, Windows desktop apps launched via shortcuts/Start Menu don't always inherit environment variables set after launch, making the current approach unreliable.
Proposed Solution
Implement HF_ENDPOINT configuration using the exact same pattern already established for other mirrors in the codebase:
Current Mirror System Pattern
The app already has a well-established 3-layer mirror configuration system:
Comfy-Desktop.UV.PythonInstallMirror,Comfy-Desktop.UV.PypiInstallMirror,Comfy-Desktop.UV.TorchInstallMirrorInstallOptionsinterface withpythonMirror,pypiMirror,torchMirrorVirtualEnvironment.runCommand()Implementation Plan
Follow the same pattern for HF_ENDPOINT:
Add to comfySettings.ts:
Add to InstallOptions interface (preload.ts):
Update VirtualEnvironment to pass HF_ENDPOINT to Python processes:
Benefits
References
src/config/comfySettings.ts:13-15src/preload.ts:30-33src/virtualEnvironment.ts:119Acceptance Criteria
https://hf-mirror.com/)https://hf-mirror.com/)┆Issue is synchronized with this Notion page by Unito
@BenraouaneSoufiane commented on GitHub (Jun 17, 2025):
Hello, I suggest resolve it for $1k, the payout is it bank transfer or crypto? can I work on this?
@dosubot[bot] commented on GitHub (Sep 17, 2025):
Hi, @christian-byrne. I'm Dosu, and I'm helping the desktop team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thanks for your understanding and contribution!