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 authenticate through their own configured credentials.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.A serialized session handle carries handoff identity. The placed Function must authenticate its
caller, authorize the target, and resolve fresh access during borrow entry.
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". Use the explicit "view_only" value for observation.
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 URL availability while keeping the URL secret.
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. Apply authentication as a separate access-control layer.
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.
Session handles, operation receipts, and provider call identities.
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. Your application owns approval policy.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.The weighted input bucket protects daemon resources. Require application approval for
consequential actions.
Recover without replay
computer.step() may complete a mutation before the caller receives its result. Use operation
receipts and explicit observation recovery. Never replay a step after dispatch may have started.Treat a capture failure after completed actions as a completed mutation with an unavailable
observation. Reconcile the receipt before any later mutation.
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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":"operate/security","slug":"/operate/security","pageMetadata":{"title":"Secure a desktop deployment","sidebarTitle":"Security","description":"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.","href":"/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\nattested tunnel modes authenticate through their own configured credentials.`}),`\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(_components.p,{children:`A serialized session handle carries handoff identity. The placed Function must authenticate its\ncaller, authorize the target, and resolve fresh access during borrow entry.`}),`\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\"`}),`. Use the explicit `,_jsx(_components.code,{children:`\"view_only\"`}),` value for observation.`]}),`\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/b60c1cb7495200e36a738c0f6e07961b1d2db93c/examples/novnc_view_only.py`,children:`view-only example`}),` to create a desktop with view-only noVNC access. The example reports URL availability while keeping the URL secret.`]}),`\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\nrecording limits. Apply authentication as a separate access-control layer.`}),`\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`,_jsx(_components.li,{children:`Session handles, operation receipts, and provider call identities.`}),`\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. Your application owns approval policy.`}),`\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(_components.p,{children:`The weighted input bucket protects daemon resources. Require application approval for\nconsequential actions.`}),`\n`,_jsx(Heading,{level:`2`,id:`recover-without-replay`,children:`Recover without replay`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`computer.step()`}),` may complete a mutation before the caller receives its result. Use operation\nreceipts and explicit observation recovery. Never replay a step after dispatch may have started.`]}),`\n`,_jsx(_components.p,{children:`Treat a capture failure after completed actions as a completed mutation with an unavailable\nobservation. Reconcile the receipt before any later mutation.`}),`\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/b60c1cb7495200e36a738c0f6e07961b1d2db93c/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":"/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":"Recover without replay","slug":"recover-without-replay","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":0},"1.x":{"href":"/v1/operate/security","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-08-26T21:23:52.961Z","originalFileLocation":"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/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/operate/security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/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/operate/security#webpage\",\"url\":\"https://modal-computer-use.mintlify.app/operate/security\",\"name\":\"Secure a desktop deployment\",\"description\":\"Protect daemon access, noVNC, provider loops, logs, and retained artifacts.\",\"dateModified\":\"2026-08-26T21:23:52.961Z\",\"isPartOf\":{\"@id\":\"https://modal-computer-use.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://modal-computer-use.mintlify.app/operate/security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://modal-computer-use.mintlify.app/operate/security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Deployment and operations\",\"item\":\"https://modal-computer-use.mintlify.app/operate/deploy\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Secure a desktop deployment\",\"item\":\"https://modal-computer-use.mintlify.app/operate/security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://modal-computer-use.mintlify.app/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/operate/security\",\"mainEntityOfPage\":{\"@id\":\"https://modal-computer-use.mintlify.app/operate/security#webpage\"},\"dateModified\":\"2026-08-26T21:23:52.961Z\",\"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":"/operate/security.md","siteName":"Modal Computer Use","nav":{"global":null,"versions":[{"version":"2.x","default":true,"tag":"Latest","tabs":[{"tab":"Documentation","icon":"book","groups":[{"group":"Getting started","pages":[{"title":"Build computer-use agents on Modal","sidebarTitle":"Overview","href":""},{"title":"Install Modal Computer Use","sidebarTitle":"Installation","href":"/start/installation"},{"title":"Run your first placed trajectory","sidebarTitle":"Quickstart","href":"/start/quickstart"},{"title":"Choose an example","sidebarTitle":"Examples","href":"/start/examples"}]},{"group":"Desktop workflows","pages":[{"title":"Create, attach, and borrow","sidebarTitle":"Create and attach","href":"/build/create-and-attach"},{"title":"Configure browser automation","sidebarTitle":"Browser automation","href":"/build/browser-automation"},{"title":"Run ordered action batches","sidebarTitle":"Action batches","href":"/build/action-batches"},{"title":"Capture screenshots and recordings","sidebarTitle":"Screenshots and recordings","href":"/build/screenshots-recordings"},{"title":"Store and persist artifacts","sidebarTitle":"Artifacts and storage","href":"/build/artifacts-storage"},{"title":"Hand a desktop to a Modal Function","sidebarTitle":"Session handoff","href":"/build/session-handoff"},{"title":"Build an application run gateway","sidebarTitle":"Run gateway","href":"/build/run-gateway"}]},{"group":"Model integrations","pages":[{"title":"Run an OpenAI computer loop","sidebarTitle":"OpenAI","href":"/integrate/openai"},{"title":"Run an Anthropic computer loop","sidebarTitle":"Anthropic","href":"/integrate/anthropic"}]},{"group":"Deployment and operations","pages":[{"title":"Deploy a placed Modal trajectory","sidebarTitle":"Deploy","href":"/operate/deploy"},{"title":"Configure placement, cost, and limits","sidebarTitle":"Configure","href":"/operate/configure"},{"title":"Keep warm desktop capacity","sidebarTitle":"Warm capacity","href":"/operate/warm-capacity"},{"title":"Measure and reduce trajectory latency","sidebarTitle":"Performance","description":"Separate startup from warm work and measure the placed action-to-frame path.","href":"/operate/performance"},{"title":"Secure a desktop deployment","sidebarTitle":"Security","href":"/operate/security"},{"title":"Troubleshoot a desktop","sidebarTitle":"Troubleshooting","description":"Diagnose readiness, X11 input, screenshots, adapters, storage, and warm capacity.","href":"/operate/troubleshooting"}]}]},{"tab":"Benchmarks","icon":"stopwatch","pages":[{"title":"Benchmarks","href":"/benchmarks/overview"}]},{"tab":"API Reference","icon":"code","pages":[{"title":"API Reference","href":"/reference/overview"}]}]},{"version":"1.x","tag":"Previous","pages":[{"title":"1.x","href":"/v1/operate/security"}]}]},"basePath":"","title":"Secure a desktop deployment - Modal Computer Use","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}