Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports
Set a build’s command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.
This page covers the Startup arguments tab of a build’s page. To install, add, or connect the build, see Builds.
Set startup arguments
The Startup arguments tab on the build page controls how ComfyUI starts for this build: its command-line flags, ComfyUI Manager policy, window, and environment.
Startup arguments: the command-line flags ComfyUI starts with.
Manager security level: what ComfyUI-Manager is allowed to install.
Launch mode: its own app window, or a console.
Browser cache: shared with other builds, or unique to this build.
Every change applies the next time the build starts. If the build is running when you change a field, the field shows Restart to apply, and the header button reads Restart to apply changes. Click it to restart the build with the new settings.
Pick flags from the list
The Startup arguments field holds the command-line arguments passed to ComfyUI, such as --listen. You can type them, or pick them from a list sorted by category. If beta features add arguments, a +N beta pill beside the field lists them. For every flag, see the startup flags reference.
Click the gear (Configure arguments) next to Startup arguments.
Toggle flags in the categories, or edit Raw arguments. Both change the same arguments for this build.
Click Back to return to the tab.
Control what ComfyUI Manager installs
Two settings decide which Node packs ComfyUI Manager can install for this build. Set Manager security level first:
Strict: blocks all Node pack installs, updates, and uninstalls. ComfyUI Manager is read-only.
Standard (recommended): allows registered Node packs and blocks installs from unregistered sources, such as arbitrary git URLs. This is the default.
Relaxed: like Standard, but also allows unregistered-source installs while ComfyUI is reachable only from this computer. --listen blocks them again.
Permissive: allows every risk tier.
Then set Manager network mode, which decides how ComfyUI Manager reaches the Node registry.
Personal cloud lifts the --listen install block. Select it only on a computer you control.
Public (default): uses the public registry. With --listen, Node pack installs are blocked at every security level.
Private: uses a private Node database that you configure yourself.
Offline: makes no external network connections. Installs and updates that need downloads are unavailable.
Personal cloud: treats this computer as your own trusted remote machine and lifts the --listen install block. The security level still applies.
Set the window, cache, and port
These settings decide how the build opens and what it does when its port is taken:
Launch mode: App window (the default) or Console only.
Browser cache: Unique to this build or Shared with other builds. A new Standalone build starts with Unique to this build.
If port is busy: Ask what to do or Use next available port (asks if —port is set). Standalone and Portable builds use Use next available port (asks if —port is set) by default, and git builds use Ask what to do.
Add environment variables
Environment variables pass extra settings to ComfyUI when the build starts.
Comfy Desktop stores environment variable values unencrypted on disk. Don’t add API keys, tokens, or passwords.
Under Environment variables, click Add variable, then enter the name and value.
Values for names that look like credentials, such as HF_TOKEN, stay hidden until you reveal them. A repeated name shows Duplicate key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ComfyUI","colors":{"primary":"#49378B","light":"#F2FF59","dark":"#F2FF59"},"logo":{"light":"https://mintcdn.com/dripart/WCFdTagRdhtvk9-o/logo/light.svg?fit=max\u0026auto=format\u0026n=WCFdTagRdhtvk9-o\u0026q=85\u0026s=ec112de87239058f5a931a7e4b594965","dark":"https://mintcdn.com/dripart/QzWbjSCBG7w61rR3/logo/dark.svg?fit=max\u0026auto=format\u0026n=QzWbjSCBG7w61rR3\u0026q=85\u0026s=62b4d879fb3aadbd7a468d1539032d6f","href":"/"},"favicon":"https://mintcdn.com/dripart/maKDA164-rrTfyxY/favicon.ico?fit=max\u0026auto=format\u0026n=maKDA164-rrTfyxY\u0026q=85\u0026s=94f3a697cf4c9a1ee3961b69219d0942","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://blog.comfy.org/?utm_source=docs","label":"Blog"},{"href":"/tutorials/partner-nodes/pricing","label":"Pricing"},{"href":"https://platform.comfy.org/?utm_source=docs","label":"Platform"},{"href":"https://comfy.org/download?utm_source=docs","label":"Download"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"Resources","items":[{"label":"installation","href":"/installation/system_requirements"},{"label":"Tutorials","href":"/tutorials/basic/text-to-image"},{"label":"Development","href":"/development/overview"}]},{"header":"Products","items":[{"label":"Features","href":"https://www.comfy.org/?utm_source=docs"},{"label":"Gallery","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"Download","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"Company","items":[{"label":"About","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"Careers","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"Terms of Service","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"Privacy Policy","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"search":{"prompt":"Search Comfy documentation..."},"seo":{"metatags":{"googlebot":"max-video-preview:0"}},"icons":{"library":"fontawesome"},"integrations":{"ga4":{"measurementId":"G-MXC01ZDDHQ"},"posthog":{"apiKey":"phc_iKfK86id4xVYws9LybMje0h44eGtfwFgRPIBehmy8rO"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":""},{"language":"zh","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"资源","items":[{"label":"安装","href":"/zh/installation/system_requirements"},{"label":"教程","href":"/zh/tutorials/basic/text-to-image"},{"label":"开发","href":"/zh/development/overview"}]},{"header":"产品","items":[{"label":"功能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"画廊","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"下载","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"公司","items":[{"label":"关于","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"招聘","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"服务条款","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"隐私政策","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"href":"zh"},{"language":"ja","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"リソース","items":[{"label":"インストール","href":"/ja/installation/system_requirements"},{"label":"チュートリアル","href":"/ja/tutorials/basic/text-to-image"},{"label":"開発","href":"/ja/development/overview"}]},{"header":"プロダクト","items":[{"label":"機能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"ギャラリー","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"ダウンロード","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"会社情報","items":[{"label":"概要","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"採用情報","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"利用規約","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"プライバシーポリシー","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ja/tutorials/partner-nodes/pricing","label":"料金"},{"href":"https://comfy.org/download?utm_source=docs","label":"ダウンロード"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"href":"ja"},{"language":"ko","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"리소스","items":[{"label":"설치","href":"/ko/installation/system_requirements"},{"label":"튜토리얼","href":"/ko/tutorials/basic/text-to-image"},{"label":"개발","href":"/ko/development/overview"}]},{"header":"제품","items":[{"label":"기능","href":"https://www.comfy.org/?utm_source=docs"},{"label":"갤러리","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"다운로드","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"회사 정보","items":[{"label":"소개","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"채용","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"이용약관","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"개인정보 처리방침","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ko/tutorials/partner-nodes/pricing","label":"가격 정책"},{"href":"https://comfy.org/download?utm_source=docs","label":"다운로드"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"href":"ko"},{"language":"es","href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dripart","hasAudioNarration":false,"actualSubdomain":"dripart","customDomains":["docs.comfy.org"],"gitSource":{"type":"github","owner":"comfy-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0d176939962319b6d1a72b","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"en","tag":"Built-in Nodes","count":1216},{"language":"ja","tag":"組み込みノード","count":1216},{"language":"zh","tag":"内置节点","count":1216},{"language":"en","tag":"Nodes","count":1215},{"language":"ja","tag":"ノード","count":1215},{"language":"zh","tag":"节点","count":1215},{"language":"ko","tag":"내장 노드 (Built-in Nodes)","count":1174},{"language":"ko","tag":"노드","count":1173},{"language":"es","tag":"Nodos integrados","count":1108},{"language":"es","tag":"Nodos","count":1107},{"language":"en","tag":"Tutorials","count":446},{"language":"es","tag":"Tutoriales","count":446},{"language":"en","tag":"Partner","count":387},{"language":"ja","tag":"API 開発","count":387},{"language":"ja","tag":"Partner","count":387},{"language":"ko","tag":"API 개발","count":387},{"language":"ko","tag":"Partner","count":387},{"language":"zh","tag":"API 开发","count":387},{"language":"zh","tag":"Partner","count":387},{"language":"en","tag":"Model","count":385},{"language":"es","tag":"Partner","count":385},{"language":"ja","tag":"Model","count":385},{"language":"ko","tag":"Model","count":385},{"language":"zh","tag":"Model","count":385},{"language":"es","tag":"Modelo","count":378},{"language":"ja","tag":"はじめに","count":369},{"language":"ko","tag":"시작하기","count":369},{"language":"zh","tag":"开始使用","count":369},{"language":"en","tag":"Image","count":366},{"language":"es","tag":"Comfy Router","count":358},{"language":"en","tag":"Comfy Router","count":349},{"language":"ja","tag":"Comfy Router","count":349},{"language":"ko","tag":"Comfy Router","count":349},{"language":"zh","tag":"Comfy Router","count":349},{"language":"es","tag":"Imagen","count":333},{"language":"en","tag":"Agent tools","count":327},{"language":"en","tag":"Catalog","count":319},{"language":"en","tag":"Models","count":318},{"language":"es","tag":"Models","count":318},{"language":"ja","tag":"Models","count":318},{"language":"ko","tag":"Models","count":318},{"language":"zh","tag":"Models","count":318},{"language":"es","tag":"All Models","count":315},{"language":"es","tag":"Video","count":285},{"language":"ja","tag":"画像","count":221},{"language":"ko","tag":"이미지","count":221},{"language":"zh","tag":"图像","count":221},{"language":"ja","tag":"Video","count":208},{"language":"zh","tag":"Video","count":208},{"language":"ko","tag":"Video","count":191}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--ink-900: #151417;--hub-shell-light: #f7f6f9;--accent-purple: #49378b;--accent-yellow: #f2ff59;--primary: 73 55 139 !important;--primary-light: 242 255 89 !important;--primary-dark: 242 255 89 !important}html.dark{--primary: 242 255 89 !important;--background-dark: 14 14 13 !important}html.dark body{background-color:#0e0e0d!important}html.dark #navbar,html.dark #navbar-transition{background-color:var(--ink-900)!important}html.dark #sidebar,html.dark #sidebar-content{background-color:rgb(var(--background-dark))!important}html.dark #navbar,html.dark #navbar-transition{box-shadow:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.dark #navbar-transition{border-bottom:1px solid rgba(255, 255, 255, 0.08)!important;opacity:1!important}html.dark img.nav-logo{filter:none}html.dark #sidebar-content a:not([aria-current=\"page\"]){color:rgba(255, 255, 255, 0.72)!important}html.dark #sidebar-content a:not([aria-current=\"page\"]) *{color:inherit!important}html.dark #sidebar-content a[aria-current=\"page\"]{color:var(--accent-yellow)!important;background-color:rgba(242, 255, 89, 0.10)!important}html.dark #sidebar-content a[aria-current=\"page\"] *{color:inherit!important}html.dark .nav-tabs-item[data-active],html.dark mobile-nav-tabs-item[data-active]{color:var(--accent-yellow)!important}html.dark #navbar a[href*=\"comfy.org/cloud\"] span.absolute{background-color:var(--accent-yellow)!important}html.dark #navbar a[href*=\"comfy.org/cloud\"] span.text-white{color:#151417!important}html:not(.dark) #background-color,html:not(.dark) #navbar,html:not(.dark) #navbar-transition,html:not(.dark) #sidebar,html:not(.dark) #sidebar-content{background-color:var(--hub-shell-light)!important}html:not(.dark) .nav-tabs-item[data-active],html:not(.dark) mobile-nav-tabs-item[data-active],html:not(.dark) nav-dropdown-item[data-active]{background-color:transparent!important;box-shadow:none!important;color:var(--accent-purple)!important;font-weight:600!important}html:not(.dark) .nav-tabs-item[data-active] *,html:not(.dark) mobile-nav-tabs-item[data-active] *,html:not(.dark) nav-dropdown-item[data-active] *{color:inherit!important}html:not(.dark) #sidebar-content li:has(>a[aria-current=\"page\"]){background-color:transparent!important;box-shadow:none!important}html:not(.dark) #sidebar-content a[aria-current=\"page\"]{color:var(--accent-purple)!important;background-color:rgba(73, 55, 139, 0.1)!important;font-weight:600!important}html:not(.dark) #sidebar-content a[aria-current=\"page\"] *{color:inherit!important}html:not(.dark) toc-item[data-active],html:not(.dark) toc-item[data-active-deepest],html:not(.dark) toc-item[data-active] a,html:not(.dark) toc-item[data-active-deepest] a{background-color:transparent!important;color:var(--accent-purple)!important;font-weight:600!important}html:not(.dark) #header :where(h1,h2,h3,h4,h5,h6),html:not(.dark) #content-area :where(h1,h2,h3,h4,h5,h6){color:#151417!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"]{background-color:transparent!important;color:var(--accent-purple)!important;border-radius:0.75rem;box-shadow:inset 0 0 0 1px var(--accent-purple)!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"] span.absolute{background-color:transparent!important}html:not(.dark) #navbar a[href*=\"comfy.org/cloud\"] *{color:inherit!important}#sidebar .sticky.top-0.pointer-events-none.bg-linear-to-b{background-image:none!important}@media (min-width: 1024px){#navbar.is-not-custom.is-not-center+div:has(>#sidebar),.max-w-8xl.mx-auto.relative,.max-w-8xl.mx-auto{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}#navbar [class*=\"px-12\"],#navbar [class*=\"mx-4\"]{padding-left:0!important;padding-right:1.5rem!important;margin-left:0!important;margin-right:0!important}#navbar a.select-none,#navbar .nav-logo{margin-left:1rem!important}#navbar .nav-tabs{padding-left:2rem!important}#sidebar{left:0!important;margin-left:0!important;box-shadow:none!important}#sidebar-content{margin-left:0!important;padding-left:1rem!important;box-sizing:border-box!important}#navbar,#navbar-transition{left:0!important;right:0!important;width:100%!important;max-width:none!important}#content-area{margin-left:0!important;max-width:none!important;width:100%!important;padding-left:18rem!important}#sidebar.sticky~#content-container #content-area{padding-left:2rem!important;padding-right:2rem!important}#content-container,#body-content{max-width:none!important;width:100%!important}:root{--content-width: 100%;--sidebar-width: 18rem}}@media (min-width: 1024px){nav#sidebar,#sidebar[style]{left:0!important;right:auto!important;margin-left:0!important;transform:none!important}#navbar li.navbar-link:has(a[href*=\"comfy.org/download\"]){margin-right:0!important}#navbar a[href*=\"comfy.org/download\"]{box-sizing:border-box;border:1px solid rgb(255 255 255 / 0.22);border-radius:0.75rem;padding:7px 0.875rem!important;color:#fff!important;font-size:0.875rem;line-height:1.25rem}html:not(.dark) #navbar a[href*=\"comfy.org/download\"]{border-color:rgb(0 0 0 / 0.16);color:#151417!important}#navbar a[href*=\"comfy.org/download\"]:hover{background:rgb(255 255 255 / 0.06)}html:not(.dark) #navbar a[href*=\"comfy.org/download\"]:hover{background:rgb(0 0 0 / 0.04)}#navbar li.navbar-link:has(a[href*=\"comfy.org/download\"])+.whitespace-nowrap,#navbar .flex.space-x-6>.whitespace-nowrap.hidden{margin-left:0.5rem!important}}body:has(.router-api-reference-marker) #content,body:has(.router-api-reference-marker) #header{max-width:48rem}body:has(.router-api-reference-marker) #content-area table{width:100%;table-layout:auto}body:has(.router-api-reference-marker) #content-area th,body:has(.router-api-reference-marker) #content-area td{min-width:4rem!important;overflow-wrap:anywhere}body:has(.router-api-reference-marker) #content-area table:has(th:nth-child(6)) th:nth-child(3),body:has(.router-api-reference-marker) #content-area table:has(th:nth-child(6)) td:nth-child(3){min-width:5rem!important}@media (max-width: 1535px){body:has(.router-api-reference-marker) #content-side-layout{display:none!important}}body:has(.router-provider-coverage-marker) #content,body:has(.router-provider-coverage-marker) #header{max-width:64rem}body:has(.router-provider-coverage-marker) #content-area table{width:100%;table-layout:auto}body:has(.router-provider-coverage-marker) #content-area th,body:has(.router-provider-coverage-marker) #content-area td{min-width:5rem!important;overflow-wrap:anywhere}body:has(.router-provider-coverage-marker) #content-area th:first-child,body:has(.router-provider-coverage-marker) #content-area td:first-child{min-width:12rem!important}body:has(.router-quickstart-marker) [data-component-part=\"card-content\"] [data-component-part=\"code-block-root\"][style*=\"height:190px\"],body:has(.router-quickstart-marker) [data-component-part=\"card-content\"] [data-component-part=\"code-block-root\"][style*=\"height: 190px\"]{height:86px!important}#content img:not([data-component-part=\"card-image\"]){max-width:min(100%, 750px)}#content .frame:has(img){max-width:calc(750px + 1rem)}"},{"filePath":"samples-cards.css","content":".sample-card-grid{display:grid;gap:20px;grid-template-columns:repeat(2, minmax(0, 1fr));margin-top:28px}.sample-card{min-width:0;perspective:1200px}.sample-card-inner{height:565px;position:relative;transform-style:preserve-3d;transition:transform 560ms cubic-bezier(.2, .75, .3, 1)}.sample-card[data-flipped=\"true\"] .sample-card-inner{transform:rotateY(180deg)}.sample-card-face{backface-visibility:hidden;background:#fff;border:1px solid #e5e1eb;border-radius:12px;box-sizing:border-box;height:100%;inset:0;overflow:hidden;position:absolute;width:100%}.sample-card-front{display:flex;flex-direction:column}.sample-card-back{opacity:0;pointer-events:none;transform:rotateY(180deg);visibility:hidden}.sample-card[data-flipped=\"true\"] .sample-card-front{pointer-events:none;transition:visibility 0s linear 280ms;visibility:hidden}.sample-card[data-flipped=\"true\"][data-active-path=\"api\"] .sample-card-back[data-sample-path=\"api\"],.sample-card[data-flipped=\"true\"][data-active-path=\"endpoint\"] .sample-card-back[data-sample-path=\"endpoint\"]{opacity:1;pointer-events:auto;visibility:visible}.sample-card-preview{border-bottom:1px solid #e5e1eb;cursor:pointer;display:block;width:100%}.sample-card-body{display:flex;flex:1;flex-direction:column;padding:20px}.sample-card-body h2,.sample-path-body h2{color:#49378b;font-size:18px;font-weight:700;letter-spacing:-.02em;margin:0 0 8px}.sample-path-body h2{text-align:center}.sample-card-body>p{color:#5f5966;font-size:14px;line-height:1.55;margin:0;min-height:66px}.sample-card-actions{display:flex;gap:8px;margin-top:20px}.sample-card-actions button{background:#fff;border:1px solid #cfc8de;border-radius:6px;color:#49378b;cursor:pointer;flex:1;font-size:13px;font-weight:700;padding:10px 12px}.sample-card-links{border-top:1px solid #eeeaf1;display:flex;gap:8px;margin-top:16px;padding-top:12px}.sample-card-links a{color:#625b6c;font-size:12px;font-weight:650;text-decoration:none}.sample-card-links span{color:#b3adba}.sample-path-body{padding:20px}.sample-path-body>button{background:transparent;border:0;color:#625b6c;cursor:pointer;font-size:12px;font-weight:700;padding:0}.sample-path-eyebrow{color:#857a9e;font-size:10px;font-weight:700;letter-spacing:.08em;margin:19px 0 5px;text-align:center;text-transform:uppercase}.sample-path-body>p:not(.sample-path-eyebrow){color:#5f5966;font-size:12px;line-height:1.5;margin:0 0 15px}.sample-path-steps{display:grid;gap:8px}.sample-path-step{align-items:center;background:#faf9fc;border:1px solid #e5e1ea;border-radius:8px;display:flex;gap:10px;padding:10px 11px}.sample-path-number{align-items:center;background:#49378b;border-radius:999px;color:#fff;display:inline-flex;flex:0 0 21px;font-size:11px;font-weight:700;height:21px;justify-content:center}.sample-path-copy{flex:1;min-width:0}.sample-path-copy strong{color:#312c36;display:block;font-size:12px}.sample-path-copy span{color:#706a75;display:block;font-size:11px;line-height:1.35;margin-top:2px}.sample-path-step a{color:#49378b;flex:0 0 auto;font-size:11px;font-weight:700;text-decoration:none}@media (max-width: 768px){.sample-card-grid{grid-template-columns:1fr}.sample-card-inner{height:clamp(620px, 180vw, 760px)}}"}]}
{"page":{"pagePath":"installation/desktop/usage/build-startup-arguments","slug":"/installation/desktop/usage/build-startup-arguments","pageMetadata":{"title":"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports","description":"Set a build's command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.","icon":"terminal","sidebarTitle":"Startup arguments","href":"/installation/desktop/usage/build-startup-arguments"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set a build’s command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,OptimizedImage,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This page covers the `,_jsx(_components.strong,{children:`Startup arguments`}),` tab of a build’s page. To install, add, or connect the build, see `,_jsx(_components.a,{href:`/installation/desktop/usage/instance-management`,children:`Builds`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-startup-arguments`,children:`Set startup arguments`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Startup arguments`}),` tab on the build page controls how ComfyUI starts for this build: its command-line flags, ComfyUI Manager policy, window, and environment.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=98747f80c3b725febf159d656f1632a2`,alt:`Startup arguments tab of a Standalone build, numbered: 1 Startup arguments, 2 Manager security level, 3 Launch mode, 4 Browser cache`,\"data-og-width\":`1040`,width:`1040`,\"data-og-height\":`737`,height:`737`,\"data-path\":`images/desktop/usage/comfy-desktop-startup-arguments.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=280\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=23b587d15282a7e2489d83995111078b 280w, https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=560\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=656e71fc353a9b8302038017e9554895 560w, https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=840\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=5533a3e01e5bfa0bdba51b739e8ffbc0 840w, https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=1100\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=65ca14fe51d79ae00d841cdefc18493b 1100w, https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=1650\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=a5825d7de83d8d92affc2e86c6458cac 1650w, https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-startup-arguments.png?w=2500\u0026fit=max\u0026auto=format\u0026n=9B5KNlbcvxyUwmr7\u0026q=85\u0026s=8e386b50669102dc92837e46516e3959 2500w`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Startup arguments`}),`: the command-line flags ComfyUI starts with.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Manager security level`}),`: what ComfyUI-Manager is allowed to install.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Launch mode`}),`: its own app window, or a console.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Browser cache`}),`: shared with other builds, or unique to this build.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Every change applies the next time the build starts. If the build is running when you change a field, the field shows `,_jsx(_components.strong,{children:`Restart to apply`}),`, and the header button reads `,_jsx(_components.strong,{children:`Restart to apply changes`}),`. Click it to restart the build with the new settings.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pick-flags-from-the-list`,children:`Pick flags from the list`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Startup arguments`}),` field holds the command-line arguments passed to ComfyUI, such as `,_jsx(_components.code,{children:`--listen`}),`. You can type them, or pick them from a list sorted by category. If beta features add arguments, a `,_jsx(_components.strong,{children:`+N beta`}),` pill beside the field lists them. For every flag, see the `,_jsx(_components.a,{href:`/development/comfyui-server/startup-flags`,children:`startup flags reference`}),`.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click the gear (`,_jsx(_components.strong,{children:`Configure arguments`}),`) next to `,_jsx(_components.strong,{children:`Startup arguments`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Toggle flags in the categories, or edit `,_jsx(_components.strong,{children:`Raw arguments`}),`. Both change the same arguments for this build.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Back`}),` to return to the tab.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`control-what-comfyui-manager-installs`,children:`Control what ComfyUI Manager installs`}),`\n`,_jsxs(_components.p,{children:[`Two settings decide which Node packs ComfyUI Manager can install for this build. Set `,_jsx(_components.strong,{children:`Manager security level`}),` first:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Strict`}),`: blocks all Node pack installs, updates, and uninstalls. ComfyUI Manager is read-only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Standard (recommended)`}),`: allows registered Node packs and blocks installs from unregistered sources, such as arbitrary git URLs. This is the default.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Relaxed`}),`: like Standard, but also allows unregistered-source installs while ComfyUI is reachable only from this computer. `,_jsx(_components.code,{children:`--listen`}),` blocks them again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Permissive`}),`: allows every risk tier.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Then set `,_jsx(_components.strong,{children:`Manager network mode`}),`, which decides how ComfyUI Manager reaches the Node registry.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Personal cloud`}),` lifts the `,_jsx(_components.code,{children:`--listen`}),` install block. Select it only on a computer you control.`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Public (default)`}),`: uses the public registry. With `,_jsx(_components.code,{children:`--listen`}),`, Node pack installs are blocked at every security level.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Private`}),`: uses a private Node database that you configure yourself.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Offline`}),`: makes no external network connections. Installs and updates that need downloads are unavailable.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Personal cloud`}),`: treats this computer as your own trusted remote machine and lifts the `,_jsx(_components.code,{children:`--listen`}),` install block. The security level still applies.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`set-the-window-cache-and-port`,children:`Set the window, cache, and port`}),`\n`,_jsx(_components.p,{children:`These settings decide how the build opens and what it does when its port is taken:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Launch mode`}),`: `,_jsx(_components.strong,{children:`App window`}),` (the default) or `,_jsx(_components.strong,{children:`Console only`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Browser cache`}),`: `,_jsx(_components.strong,{children:`Unique to this build`}),` or `,_jsx(_components.strong,{children:`Shared`}),` with other builds. A new Standalone build starts with `,_jsx(_components.strong,{children:`Unique to this build`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`If port is busy`}),`: `,_jsx(_components.strong,{children:`Ask what to do`}),` or `,_jsx(_components.strong,{children:`Use next available port (asks if —port is set)`}),`. Standalone and Portable builds use `,_jsx(_components.strong,{children:`Use next available port (asks if —port is set)`}),` by default, and git builds use `,_jsx(_components.strong,{children:`Ask what to do`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`add-environment-variables`,children:`Add environment variables`}),`\n`,_jsx(_components.p,{children:`Environment variables pass extra settings to ComfyUI when the build starts.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Comfy Desktop stores environment variable values unencrypted on disk. Don’t add API keys, tokens, or passwords.`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Under `,_jsx(_components.strong,{children:`Environment variables`}),`, click `,_jsx(_components.strong,{children:`Add variable`}),`, then enter the name and value.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Values for names that look like credentials, such as `,_jsx(_components.code,{children:`HF_TOKEN`}),`, stay hidden until you reveal them. A repeated name shows `,_jsx(_components.strong,{children:`Duplicate key`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports","description":"Set a build's command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.","icon":"terminal","sidebarTitle":"Startup arguments","href":"/installation/desktop/usage/build-startup-arguments"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set startup arguments","slug":"set-startup-arguments","depth":2,"children":[{"title":"Pick flags from the list","slug":"pick-flags-from-the-list","depth":3,"children":[]},{"title":"Control what ComfyUI Manager installs","slug":"control-what-comfyui-manager-installs","depth":3,"children":[]},{"title":"Set the window, cache, and port","slug":"set-the-window-cache-and-port","depth":3,"children":[]},{"title":"Add environment variables","slug":"add-environment-variables","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dripart/0598a3d384a97986/giscus-comments.js","/_mintlify/custom/dripart/bd0341946f3c75a6/syft.js","/_mintlify/custom/dripart/042392a43b5e681e/samples-cards.js"],"subdomain":"dripart","siteName":"ComfyUI","title":"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports - ComfyUI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/installation/desktop/usage/build-startup-arguments","matchLevel":0},"zh":{"href":"/zh/installation/desktop/usage/build-startup-arguments","matchLevel":1},"ja":{"href":"/ja/installation/desktop/usage/build-startup-arguments","matchLevel":1},"ko":{"href":"/ko/installation/desktop/usage/build-startup-arguments","matchLevel":1},"es":{"href":"/es/installation/desktop/usage/build-startup-arguments","matchLevel":1}}},"lastModified":"2026-11-30T05:57:32.175Z","originalFileLocation":"installation/desktop/usage/build-startup-arguments.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set a build\u0026#x27;s command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ComfyUI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports - ComfyUI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set a build\u0026#x27;s command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ComfyUI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dripart.mintlify.site/_mintlify/api/og/v2?division=Builds\u0026amp;title=Startup+arguments+in+Comfy+Desktop%3A+flags%2C+ComfyUI+Manager%2C+and+ports\u0026amp;description=Set+a+build%27s+command-line+flags%2C+ComfyUI+Manager+security+and+network+mode%2C+launch+mode%2C+browser+cache%2C+port+behavior%2C+and+environment+variables+in+Comfy+Deskt\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=9d5031f71b21ba0344c01033d3d4b297931774d296efae3475ebd2a6d606bd28\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports - ComfyUI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set a build\u0026#x27;s command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dripart.mintlify.site/_mintlify/api/og/v2?division=Builds\u0026amp;title=Startup+arguments+in+Comfy+Desktop%3A+flags%2C+ComfyUI+Manager%2C+and+ports\u0026amp;description=Set+a+build%27s+command-line+flags%2C+ComfyUI+Manager+security+and+network+mode%2C+launch+mode%2C+browser+cache%2C+port+behavior%2C+and+environment+variables+in+Comfy+Deskt\u0026amp;theme=b252c39adf72ba65053766a0\u0026amp;signature=9d5031f71b21ba0344c01033d3d4b297931774d296efae3475ebd2a6d606bd28\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dripart/lS3H5I41bE6LSXEf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ComfyUI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#49378B\">\u003cmeta data-mint-head name=\"googlebot\" content=\"max-video-preview:0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/installation/desktop/usage/build-startup-arguments.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.comfy.org/zh/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.comfy.org/ja/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.comfy.org/ko/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.comfy.org/es/installation/desktop/usage/build-startup-arguments\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.comfy.org/#organization\",\"name\":\"ComfyUI\",\"url\":\"https://docs.comfy.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dripart/WCFdTagRdhtvk9-o/logo/light.svg?fit=max\u0026auto=format\u0026n=WCFdTagRdhtvk9-o\u0026q=85\u0026s=ec112de87239058f5a931a7e4b594965\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.comfy.org#website\",\"name\":\"ComfyUI\",\"url\":\"https://docs.comfy.org\",\"publisher\":{\"@id\":\"https://docs.comfy.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments#webpage\",\"url\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\",\"name\":\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports\",\"description\":\"Set a build's command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\",\"dateModified\":\"2026-11-30T05:57:32.175Z\",\"isPartOf\":{\"@id\":\"https://docs.comfy.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Run ComfyUI\",\"item\":\"https://docs.comfy.org/installation/desktop/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Comfy Desktop\",\"item\":\"https://docs.comfy.org/installation/desktop/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Usage Guide\",\"item\":\"https://docs.comfy.org/installation/desktop/usage/overview\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Builds\",\"item\":\"https://docs.comfy.org/installation/desktop/usage/instance-management\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports\",\"item\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments#article\",\"headline\":\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports\",\"name\":\"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports\",\"description\":\"Set a build's command-line flags, ComfyUI Manager security and network mode, launch mode, browser cache, port behavior, and environment variables in Comfy Desktop.\",\"url\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.comfy.org/installation/desktop/usage/build-startup-arguments#webpage\"},\"dateModified\":\"2026-11-30T05:57:32.175Z\",\"publisher\":{\"@id\":\"https://docs.comfy.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.comfy.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ComfyUI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ComfyUI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/installation/desktop/usage/build-startup-arguments.md","siteName":"ComfyUI","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Getting started","pages":[{"title":"ComfyUI Official Documentation","icon":"book-open","sidebarTitle":"Home","mode":"frame","href":""},{"group":"Run ComfyUI","icon":"play","pages":[{"group":"Comfy Desktop","icon":"desktop","root":{"title":"Comfy Desktop: Run ComfyUI on Your Computer or on Comfy Cloud","icon":"desktop","sidebarTitle":"Overview","href":"/installation/desktop/overview"},"pages":[{"title":"Comfy Desktop: Run ComfyUI on Your Computer or on Comfy Cloud","icon":"desktop","sidebarTitle":"Overview","href":"/installation/desktop/overview"},{"group":"Usage Guide","pages":[{"title":"Get around Comfy Desktop: Home, sidebar, and title bar","icon":"book-open","sidebarTitle":"Overview","href":"/installation/desktop/usage/overview"},{"group":"Builds","pages":[{"title":"Builds in Comfy Desktop: install, run, and start a ComfyUI build","icon":"layer-group","sidebarTitle":"Builds","href":"/installation/desktop/usage/instance-management"},{"title":"Manage a build in Comfy Desktop: the build page, updates, and PyTorch","icon":"sliders","sidebarTitle":"Manage a build","href":"/installation/desktop/usage/build-management"},{"title":"Build folders in Comfy Desktop: models, input, output, and cloud storage","description":"Point a Comfy Desktop build at its own or shared model, input, and output folders, and set browser cache and output downloads for remote and Comfy Cloud builds.","icon":"folder-tree","sidebarTitle":"Folders","href":"/installation/desktop/usage/build-folders"},{"title":"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports","icon":"terminal","sidebarTitle":"Startup arguments","href":"/installation/desktop/usage/build-startup-arguments"},{"title":"Snapshots in Comfy Desktop: create, restore, export, and import","description":"Save a snapshot of a build's ComfyUI version, Custom Nodes, and packages, restore it after a bad update, and export, import, or delete snapshot files.","icon":"clock-rotate-left","sidebarTitle":"Snapshots","href":"/installation/desktop/usage/build-snapshots"},{"title":"Terminal in Comfy Desktop: run commands in a build's environment","icon":"code","sidebarTitle":"Terminal","href":"/installation/desktop/usage/build-terminal"},{"title":"Duplicate or remove a build in Comfy Desktop","icon":"copy","sidebarTitle":"Duplicate or remove","href":"/installation/desktop/usage/build-duplicate-and-remove"},{"title":"Fix a build that fails in Comfy Desktop","icon":"triangle-exclamation","sidebarTitle":"Fix a build","href":"/installation/desktop/usage/build-troubleshooting"}]},{"title":"Comfy Desktop Apps: Run Ready-Made Tools","icon":"shapes","sidebarTitle":"Apps","href":"/installation/desktop/usage/apps"},{"title":"Comfy Desktop Assets: Browse Your Generated Files","icon":"images","sidebarTitle":"Assets","href":"/installation/desktop/usage/assets"},{"title":"Team builds in Comfy Desktop: install, update, and upload","icon":"cube","sidebarTitle":"Team builds","href":"/installation/desktop/usage/workspaces-and-builds"},{"title":"Downloads in Comfy Desktop","icon":"download","sidebarTitle":"Downloads","href":"/installation/desktop/usage/downloads"},{"title":"Comfy Desktop settings","icon":"cog","sidebarTitle":"Settings","href":"/installation/desktop/usage/settings"},{"title":"Performance tests and Benchmarks in Comfy Desktop","icon":"gauge","sidebarTitle":"Performance tests","href":"/installation/desktop/usage/performance-tests"},{"title":"Migrate from Legacy Desktop","icon":"arrow-right","sidebarTitle":"Migrate","href":"/installation/desktop/usage/migrate"}]},{"title":"Comfy Desktop FAQ","sidebarTitle":"FAQ","href":"/installation/desktop/faq"}]},{"title":"Comfy Cloud - Official ComfyUI Cloud Platform Powered by RTX 6000 Pro","sidebarTitle":"Comfy Cloud","icon":"cloud","href":"/get_started/cloud"},{"group":"Portable (Self-Hosted)","icon":"box","root":{"title":"ComfyUI Portable for Windows","icon":"box","sidebarTitle":"Portable (Local)","href":"/installation/comfyui_portable_windows"},"pages":[{"title":"ComfyUI Portable for Windows","icon":"box","sidebarTitle":"Portable (Local)","href":"/installation/comfyui_portable_windows"},{"title":"ComfyUI System Requirements: OS, Python, and GPU","sidebarTitle":"System Requirements","icon":"computer","href":"/installation/system_requirements"},{"title":"Install ComfyUI Manually (Windows, macOS, Linux)","icon":"wrench","sidebarTitle":"Manual (Local)","href":"/installation/manual_install"},{"title":"ComfyUI Updates: Portable Scripts, Desktop, and Git Pull","icon":"circle-up","sidebarTitle":"Update ComfyUI","href":"/installation/update_comfyui"}]},{"title":"Your First Image in ComfyUI: Build a Text-to-Image Workflow","sidebarTitle":"First Generation","icon":"shoe-prints","href":"/get_started/first_generation"}]},{"group":"Custom Nodes","icon":"puzzle-piece","pages":[{"title":"ComfyUI Custom Nodes: Install With Manager, Git, or ZIP","sidebarTitle":"Custom nodes","icon":"puzzle-piece","href":"/installation/install_custom_node"},{"group":"ComfyUI-Manager","pages":[{"title":"ComfyUI-Manager Overview","sidebarTitle":"Overview","href":"/manager/overview"},{"title":"ComfyUI-Manager Installation","sidebarTitle":"Install","href":"/manager/install"},{"group":"Node Management","pages":[{"title":"Managing custom nodes with ComfyUI-Manager (new UI)","sidebarTitle":"New UI","href":"/manager/pack-management"},{"title":"Managing custom nodes with ComfyUI-Manager (legacy UI)","sidebarTitle":"legacy UI","href":"/manager/legacy-ui"}]},{"title":"ComfyUI-Manager Configuration","sidebarTitle":"Config","href":"/manager/configuration"},{"title":"ComfyUI Manager Troubleshooting","sidebarTitle":"Troubleshooting","href":"/manager/troubleshooting"}]}]},{"title":"Changelog","icon":"clock-rotate-left","href":"/changelog/index"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/basic-concepts/workflow"}]},{"tab":"Comfy Router","pages":[{"title":"Comfy Router","href":"/development/comfy-router/quickstart"}]},{"tab":"Agent tools","pages":[{"title":"Agent tools","href":"/agent-tools"}]},{"tab":"Built-in Nodes","pages":[{"title":"Built-in Nodes","href":"/built-in-nodes/overview"}]},{"tab":"Developer","pages":[{"title":"Developer","href":"/development/overview"}]},{"tab":"Rankings","pages":[{"title":"Rankings","href":"/rankings"}]},{"tab":"Support","pages":[{"title":"Support","href":"/support/contact-support"}]}]},{"language":"zh","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"资源","items":[{"label":"安装","href":"/zh/installation/system_requirements"},{"label":"教程","href":"/zh/tutorials/basic/text-to-image"},{"label":"开发","href":"/zh/development/overview"}]},{"header":"产品","items":[{"label":"功能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"画廊","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"下载","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"公司","items":[{"label":"关于","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"招聘","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"服务条款","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"隐私政策","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"pages":[{"title":"zh","href":"/zh/installation/desktop/usage/build-startup-arguments"}]},{"language":"ja","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"リソース","items":[{"label":"インストール","href":"/ja/installation/system_requirements"},{"label":"チュートリアル","href":"/ja/tutorials/basic/text-to-image"},{"label":"開発","href":"/ja/development/overview"}]},{"header":"プロダクト","items":[{"label":"機能","href":"https://www.comfy.org/?utm_source=docs"},{"label":"ギャラリー","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"ダウンロード","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"会社情報","items":[{"label":"概要","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"採用情報","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"利用規約","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"プライバシーポリシー","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ja/tutorials/partner-nodes/pricing","label":"料金"},{"href":"https://comfy.org/download?utm_source=docs","label":"ダウンロード"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"pages":[{"title":"ja","href":"/ja/installation/desktop/usage/build-startup-arguments"}]},{"language":"ko","footer":{"socials":{"github":"https://github.com/Comfy-Org/ComfyUI","x":"https://x.com/ComfyUI","discord":"https://discord.com/invite/comfyorg","youtube":"https://www.youtube.com/@comfyorg"},"links":[{"header":"리소스","items":[{"label":"설치","href":"/ko/installation/system_requirements"},{"label":"튜토리얼","href":"/ko/tutorials/basic/text-to-image"},{"label":"개발","href":"/ko/development/overview"}]},{"header":"제품","items":[{"label":"기능","href":"https://www.comfy.org/?utm_source=docs"},{"label":"갤러리","href":"https://www.comfy.org/gallery?utm_source=docs"},{"label":"다운로드","href":"https://www.comfy.org/download?utm_source=docs"}]},{"header":"회사 정보","items":[{"label":"소개","href":"https://www.comfy.org/about?utm_source=docs"},{"label":"채용","href":"https://www.comfy.org/careers?utm_source=docs"},{"label":"이용약관","href":"https://www.comfy.org/terms-of-service?utm_source=docs"},{"label":"개인정보 처리방침","href":"https://www.comfy.org/privacy-policy?utm_source=docs"}]}]},"navbar":{"links":[{"href":"/ko/tutorials/partner-nodes/pricing","label":"가격 정책"},{"href":"https://comfy.org/download?utm_source=docs","label":"다운로드"}],"primary":{"type":"button","label":"Comfy Cloud","href":"https://comfy.org/cloud?utm_source=docs"}},"pages":[{"title":"ko","href":"/ko/installation/desktop/usage/build-startup-arguments"}]},{"language":"es","pages":[{"title":"es","href":"/es/installation/desktop/usage/build-startup-arguments"}]}]},"basePath":"","title":"Startup arguments in Comfy Desktop: flags, ComfyUI Manager, and ports - ComfyUI","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BodsesVp.js","lightbox-handle-r17bVUz3.js"]}