Protect daemon access, noVNC, provider loops, logs, and retained artifacts.
The daemon has full desktop control. It can click, type, read clipboard text, launch applications, and read or write artifacts. Do not expose its control routes as an unauthenticated public service.
Require authentication
Use the default attested tunnel for SDK-created Sandboxes. It uses an SDK-managed bootstrap bearer to mint short-lived session tokens.Use Connect ingress when your policy requires all daemon traffic to use Modal Connect. Raw and attested tunnel modes do not trust a client-supplied verified-user header.For local development, set COMPUTER_USE_LOCAL_TOKEN. Send it in the Authorization header. Do not put a token in a URL query.The daemon fails closed when it has no authenticator. COMPUTER_USE_ALLOW_UNAUTHENTICATED_LOOPBACK=true is a local-only escape hatch. It cannot bind to a non-loopback address.A minted session token still grants full computer use. Give it only to a party that may control that Sandbox.
Keep noVNC off by default
Use expose_vnc="off" unless an operator needs live access.Use "view_only" to watch the desktop. Use "control" to watch and send input.Boolean True maps to "control". It does not map to view-only.
A noVNC URL grants live desktop access. Treat the URL and password as secrets. Do not paste them into chat, tickets, logs, or documentation.
Use the view-only example to create a desktop with view-only noVNC access. The example reports only whether a URL exists. It does not print the URL.
Limit network and runtime access
Use outbound domain or CIDR allowlists for a restricted workload. Use network.block_all=True with Connect ingress when the desktop needs no network access.Set Sandbox lifetime, idle policy, action budgets, screenshot budgets, artifact quotas, and recording limits. These controls bound resource use. They do not replace authentication.
Treat desktop data as sensitive
Do not log these values:
noVNC URLs or daemon URLs.
Bearer tokens or provider keys.
Clipboard text or typed text.
Screenshot or recording bytes.
Artifact bytes or raw artifact locations.
Structured SDK and daemon logs redact these values. Application logs and provider payload logs remain your responsibility.Artifact paths reject absolute paths, traversal, encoded traversal, symlink escape, and control characters. Treat accepted artifacts and recordings as sensitive run data until your application sanitizes them.
Own provider policy
The OpenAI and Anthropic adapters normalize actions. They are not policy engines.Use before_action to review normalized actions before execution. Require confirmation for consequential external actions. Restrict domains. Define takeover rules.Treat page content, screenshots, tool output, and provider payloads as untrusted input. Keep provider credentials in the user application. Do not put them in core modules or the daemon image.
Respond to exposure
If a noVNC URL becomes public, terminate the Sandbox. Create a new Sandbox to get a new tunnel and generated password.If a bearer token becomes public, terminate the affected resource and rotate any operator-managed credential. Review logs for use during the exposure window.Report a product vulnerability through the repository security policy.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Modal Computer Use","description":"Deploy and control a Linux desktop in a Modal Sandbox.","colors":{"primary":"#248713","light":"#7FEE63","dark":"#248713"},"logo":{"light":"https://mintcdn.com/modal-computer-use/U3YncLggMA24W1qr/logo/modal-computer-use-wordmark-light.png?fit=max\u0026auto=format\u0026n=U3YncLggMA24W1qr\u0026q=85\u0026s=943b5af5a43d50b39138b4e5edf2d97c","dark":"https://mintcdn.com/modal-computer-use/U3YncLggMA24W1qr/logo/modal-computer-use-wordmark-dark.png?fit=max\u0026auto=format\u0026n=U3YncLggMA24W1qr\u0026q=85\u0026s=bb97fc01370de2e9fec2d07ec9abfe10"},"favicon":"https://mintcdn.com/modal-computer-use/3wQYz05ZptY4tQnA/favicon.png?fit=max\u0026auto=format\u0026n=3wQYz05ZptY4tQnA\u0026q=85\u0026s=f1678b886ff6b5dd229b7c6eb8962495","background":{"color":{"dark":"#141614"}},"navbar":{"primary":{"type":"github","href":"https://github.com/ashtonchew/modal-computer-use"}},"footer":{"socials":{"github":"https://github.com/ashtonchew/modal-computer-use","x":"https://x.com/ashtonchew"},"links":[{"header":"Project","items":[{"label":"GitHub","href":"https://github.com/ashtonchew/modal-computer-use"},{"label":"PyPI","href":"https://pypi.org/project/modal-computer-use"},{"label":"Releases","href":"https://github.com/ashtonchew/modal-computer-use/releases"}]},{"header":"Support","items":[{"label":"Issues","href":"https://github.com/ashtonchew/modal-computer-use/issues"},{"label":"Security","href":"https://github.com/ashtonchew/modal-computer-use/security/policy"}]}]},"fonts":{"family":"Geist"},"icons":{"library":"tabler"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"modal-computer-use","hasAudioNarration":false,"actualSubdomain":"modal-computer-use","customDomains":[],"gitSource":{"type":"github","owner":"ashtonchew","repo":"modal-computer-use-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a9c759a10ab928b389deeb0","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Desktop workflows","count":13},{"language":"default","tag":"Benchmarks","count":12},{"language":"default","tag":"Deployment and operations","count":12},{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"Python SDK","count":10},{"language":"default","tag":"Results and evidence","count":8},{"language":"default","tag":"Getting started","count":8},{"language":"default","tag":"Run and reproduce","count":4},{"language":"default","tag":"Model integrations","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#pagination{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem}#pagination a{box-sizing:border-box;width:100%;min-height:4.5rem;margin-left:0;padding:0.75rem 1rem;border:1px solid rgb(var(--gray-200) / 0.7);border-radius:0.75rem;background:transparent;transition:border-color 150ms ease-out}#pagination a:hover{border-color:rgb(var(--gray-300))}#pagination a[rel=\"next\"]{justify-content:flex-end;text-align:right}#pagination a[rel=\"next\"]{grid-column:2}.dark #pagination a{border-color:rgb(var(--gray-800) / 0.7)}.dark #pagination a:hover{border-color:rgb(var(--gray-700))}@media (max-width: 63.999rem){#pagination{grid-template-columns:minmax(0, 1fr)}#pagination a[rel=\"next\"]{grid-column:1}}.action-frame-results th,.action-frame-results td{min-width:0!important}"}]}
{"page":{"pagePath":"v1/operate/security","slug":"/v1/operate/security","pageMetadata":{"title":"Secure a desktop deployment","sidebarTitle":"Security","description":"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.","href":"/v1/operate/security"},"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: \"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\"\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`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsx(_components.p,{children:`The daemon has full desktop control. It can click, type, read clipboard text, launch applications, and read or write artifacts. Do not expose its control routes as an unauthenticated public service.`})}),`\n`,_jsx(Heading,{level:`2`,id:`require-authentication`,children:`Require authentication`}),`\n`,_jsx(_components.p,{children:`Use the default attested tunnel for SDK-created Sandboxes. It uses an SDK-managed bootstrap bearer to mint short-lived session tokens.`}),`\n`,_jsx(_components.p,{children:`Use Connect ingress when your policy requires all daemon traffic to use Modal Connect. Raw and attested tunnel modes do not trust a client-supplied verified-user header.`}),`\n`,_jsxs(_components.p,{children:[`For local development, set `,_jsx(_components.code,{children:`COMPUTER_USE_LOCAL_TOKEN`}),`. Send it in the `,_jsx(_components.code,{children:`Authorization`}),` header. Do not put a token in a URL query.`]}),`\n`,_jsxs(_components.p,{children:[`The daemon fails closed when it has no authenticator. `,_jsx(_components.code,{children:`COMPUTER_USE_ALLOW_UNAUTHENTICATED_LOOPBACK=true`}),` is a local-only escape hatch. It cannot bind to a non-loopback address.`]}),`\n`,_jsx(_components.p,{children:`A minted session token still grants full computer use. Give it only to a party that may control that Sandbox.`}),`\n`,_jsx(Heading,{level:`2`,id:`keep-novnc-off-by-default`,children:`Keep noVNC off by default`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`expose_vnc=\"off\"`}),` unless an operator needs live access.`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`\"view_only\"`}),` to watch the desktop. Use `,_jsx(_components.code,{children:`\"control\"`}),` to watch and send input.`]}),`\n`,_jsxs(_components.p,{children:[`Boolean `,_jsx(_components.code,{children:`True`}),` maps to `,_jsx(_components.code,{children:`\"control\"`}),`. It does not map to view-only.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A noVNC URL grants live desktop access. Treat the URL and password as secrets. Do not paste them into chat, tickets, logs, or documentation.`})}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`https://github.com/ashtonchew/modal-computer-use/blob/main/examples/novnc_view_only.py`,children:`view-only example`}),` to create a desktop with view-only noVNC access. The example reports only whether a URL exists. It does not print the URL.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limit-network-and-runtime-access`,children:`Limit network and runtime access`}),`\n`,_jsxs(_components.p,{children:[`Use outbound domain or CIDR allowlists for a restricted workload. Use `,_jsx(_components.code,{children:`network.block_all=True`}),` with Connect ingress when the desktop needs no network access.`]}),`\n`,_jsx(_components.p,{children:`Set Sandbox lifetime, idle policy, action budgets, screenshot budgets, artifact quotas, and recording limits. These controls bound resource use. They do not replace authentication.`}),`\n`,_jsx(Heading,{level:`2`,id:`treat-desktop-data-as-sensitive`,children:`Treat desktop data as sensitive`}),`\n`,_jsx(_components.p,{children:`Do not log these values:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`noVNC URLs or daemon URLs.`}),`\n`,_jsx(_components.li,{children:`Bearer tokens or provider keys.`}),`\n`,_jsx(_components.li,{children:`Clipboard text or typed text.`}),`\n`,_jsx(_components.li,{children:`Screenshot or recording bytes.`}),`\n`,_jsx(_components.li,{children:`Artifact bytes or raw artifact locations.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Structured SDK and daemon logs redact these values. Application logs and provider payload logs remain your responsibility.`}),`\n`,_jsx(_components.p,{children:`Artifact paths reject absolute paths, traversal, encoded traversal, symlink escape, and control characters. Treat accepted artifacts and recordings as sensitive run data until your application sanitizes them.`}),`\n`,_jsx(Heading,{level:`2`,id:`own-provider-policy`,children:`Own provider policy`}),`\n`,_jsx(_components.p,{children:`The OpenAI and Anthropic adapters normalize actions. They are not policy engines.`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`before_action`}),` to review normalized actions before execution. Require confirmation for consequential external actions. Restrict domains. Define takeover rules.`]}),`\n`,_jsx(_components.p,{children:`Treat page content, screenshots, tool output, and provider payloads as untrusted input. Keep provider credentials in the user application. Do not put them in core modules or the daemon image.`}),`\n`,_jsx(Heading,{level:`2`,id:`respond-to-exposure`,children:`Respond to exposure`}),`\n`,_jsx(_components.p,{children:`If a noVNC URL becomes public, terminate the Sandbox. Create a new Sandbox to get a new tunnel and generated password.`}),`\n`,_jsx(_components.p,{children:`If a bearer token becomes public, terminate the affected resource and rotate any operator-managed credential. Review logs for use during the exposure window.`}),`\n`,_jsxs(_components.p,{children:[`Report a product vulnerability through the repository `,_jsx(_components.a,{href:`https://github.com/ashtonchew/modal-computer-use/blob/main/SECURITY.md`,children:`security policy`}),`.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Secure a desktop deployment","sidebarTitle":"Security","description":"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.","href":"/v1/operate/security"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Require authentication","slug":"require-authentication","depth":2,"children":[]},{"title":"Keep noVNC off by default","slug":"keep-novnc-off-by-default","depth":2,"children":[]},{"title":"Limit network and runtime access","slug":"limit-network-and-runtime-access","depth":2,"children":[]},{"title":"Treat desktop data as sensitive","slug":"treat-desktop-data-as-sensitive","depth":2,"children":[]},{"title":"Own provider policy","slug":"own-provider-policy","depth":2,"children":[]},{"title":"Respond to exposure","slug":"respond-to-exposure","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/modal-computer-use/afedbf24fbf1ce4f/table-keyboard-scroll.js"],"subdomain":"modal-computer-use","siteName":"Modal Computer Use","title":"Secure a desktop deployment - Modal Computer Use","navMaps":{"firstHrefInVersion":{"2.x":{"href":"/operate/security","matchLevel":1},"1.x":{"href":"/v1/operate/security","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-08-11T01:51:58.753Z","originalFileLocation":"v1/operate/security.mdx"},"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=\"system\"}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=\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Modal Computer Use\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_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/modal-computer-use/QIAzi0owsS6Rkve0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Secure a desktop deployment - Modal Computer Use\">\u003cmeta data-mint-head property=\"og:description\" content=\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Modal Computer Use\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://modal-computer-use.mintlify.app/v1/operate/security\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://modal-computer-use.mintlify.site/_mintlify/api/og/v2?division=Deployment+and+operations\u0026amp;title=Secure+a+desktop+deployment\u0026amp;description=Protect+daemon+access%2C+noVNC%2C+provider+loops%2C+logs%2C+and+retained+artifacts.\u0026amp;theme=b7d7aff4163f59c6d290186a\u0026amp;signature=e1a84d75c05027b2d8c6a8444bce2e83b5a7386e9bd2d5b90bb28e2e71e02604\">\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=\"Secure a desktop deployment - Modal Computer Use\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://modal-computer-use.mintlify.site/_mintlify/api/og/v2?division=Deployment+and+operations\u0026amp;title=Secure+a+desktop+deployment\u0026amp;description=Protect+daemon+access%2C+noVNC%2C+provider+loops%2C+logs%2C+and+retained+artifacts.\u0026amp;theme=b7d7aff4163f59c6d290186a\u0026amp;signature=e1a84d75c05027b2d8c6a8444bce2e83b5a7386e9bd2d5b90bb28e2e71e02604\">\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/modal-computer-use/QIAzi0owsS6Rkve0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Modal Computer Use\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#248713\">\u003clink data-mint-head rel=\"canonical\" href=\"https://modal-computer-use.mintlify.app/v1/operate/security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v1/operate/security.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://modal-computer-use.mintlify.app/#organization\",\"name\":\"Modal Computer Use\",\"url\":\"https://modal-computer-use.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/modal-computer-use/U3YncLggMA24W1qr/logo/modal-computer-use-wordmark-light.png?fit=max\u0026auto=format\u0026n=U3YncLggMA24W1qr\u0026q=85\u0026s=943b5af5a43d50b39138b4e5edf2d97c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://modal-computer-use.mintlify.app#website\",\"name\":\"Modal Computer Use\",\"url\":\"https://modal-computer-use.mintlify.app\",\"publisher\":{\"@id\":\"https://modal-computer-use.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://modal-computer-use.mintlify.app/v1/operate/security#webpage\",\"url\":\"https://modal-computer-use.mintlify.app/v1/operate/security\",\"name\":\"Secure a desktop deployment\",\"description\":\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\",\"dateModified\":\"2026-08-11T01:51:58.753Z\",\"isPartOf\":{\"@id\":\"https://modal-computer-use.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://modal-computer-use.mintlify.app/v1/operate/security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://modal-computer-use.mintlify.app/v1/operate/security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Deployment and operations\",\"item\":\"https://modal-computer-use.mintlify.app/v1/operate/deploy\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Secure a desktop deployment\",\"item\":\"https://modal-computer-use.mintlify.app/v1/operate/security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://modal-computer-use.mintlify.app/v1/operate/security#article\",\"headline\":\"Secure a desktop deployment\",\"name\":\"Secure a desktop deployment\",\"description\":\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\",\"url\":\"https://modal-computer-use.mintlify.app/v1/operate/security\",\"mainEntityOfPage\":{\"@id\":\"https://modal-computer-use.mintlify.app/v1/operate/security#webpage\"},\"dateModified\":\"2026-08-11T01:51:58.753Z\",\"publisher\":{\"@id\":\"https://modal-computer-use.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://modal-computer-use.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Modal Computer Use\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Modal Computer Use\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v1/operate/security.md","siteName":"Modal Computer Use","nav":{"global":null,"versions":[{"version":"2.x","default":true,"tag":"Latest","pages":[{"title":"2.x","href":"/operate/security"}]},{"version":"1.x","tag":"Previous","tabs":[{"tab":"Documentation","icon":"book","groups":[{"group":"Getting started","pages":[{"title":"Control a Linux desktop on Modal","sidebarTitle":"Home","href":"/v1"},{"title":"Install Modal Computer Use","sidebarTitle":"Installation","href":"/v1/start/installation"},{"title":"Create your first desktop","sidebarTitle":"Quickstart","href":"/v1/start/quickstart"},{"title":"Choose an example","sidebarTitle":"Examples","href":"/v1/start/examples"}]},{"group":"Desktop workflows","pages":[{"title":"Create and attach to desktops","sidebarTitle":"Create and attach","href":"/v1/build/create-and-attach"},{"title":"Automate a browser","sidebarTitle":"Browser automation","href":"/v1/build/browser-automation"},{"title":"Run action batches","sidebarTitle":"Action batches","href":"/v1/build/action-batches"},{"title":"Capture screenshots and recordings","sidebarTitle":"Screenshots and recordings","href":"/v1/build/screenshots-recordings"},{"title":"Store and persist artifacts","sidebarTitle":"Artifacts and storage","href":"/v1/build/artifacts-storage"},{"title":"Hand a desktop to a Modal Function","sidebarTitle":"Session handoff","href":"/v1/build/session-handoff"}]},{"group":"Model integrations","pages":[{"title":"Run an OpenAI computer loop","sidebarTitle":"OpenAI","href":"/v1/integrate/openai"},{"title":"Run an Anthropic computer loop","sidebarTitle":"Anthropic","href":"/v1/integrate/anthropic"}]},{"group":"Deployment and operations","pages":[{"title":"Deploy a Modal desktop","sidebarTitle":"Deploy","href":"/v1/operate/deploy"},{"title":"Configure a desktop","sidebarTitle":"Configure","href":"/v1/operate/configure"},{"title":"Keep warm desktop capacity","sidebarTitle":"Warm capacity","href":"/v1/operate/warm-capacity"},{"title":"Reduce desktop loop latency","sidebarTitle":"Performance","description":"Measure startup and warm operations, then reduce the work on the measured path.","href":"/v1/operate/performance"},{"title":"Secure a desktop deployment","sidebarTitle":"Security","href":"/v1/operate/security"},{"title":"Troubleshoot a desktop","sidebarTitle":"Troubleshooting","description":"Diagnose readiness, X11 input, screenshots, adapters, storage, and warm capacity.","href":"/v1/operate/troubleshooting"}]}]},{"tab":"Benchmarks","icon":"stopwatch","pages":[{"title":"Benchmarks","href":"/v1/benchmarks/overview"}]},{"tab":"API Reference","icon":"code","pages":[{"title":"API Reference","href":"/v1/reference/overview"}]}]}]},"basePath":"","title":"Secure a desktop deployment - Modal Computer Use","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}