Fill and claim a bounded pool of ready Modal desktop Sandboxes.
A warm pool reduces the wait for a ready desktop. Warm action latency uses a separate path, and the
optimized-path contract leaves warm capacity off by default.Function warm capacity and desktop warm capacity are separate. A warm Function reduces Function startup. A desktop pool reduces Sandbox startup.
Warm capacity can incur charges while no task is running. Measure pool hit rate, cold fallback rate, remaining lifetime, and cost before you add capacity.
Use a region selector from a current measurement. The pool checks configuration identity before it counts or claims a slot.The CPU, memory, browser, and capacity values above are example application choices. Select and
record values for your workload.
The manager counts a slot only after TCP readiness, daemon readiness, browser prewarm, and a decoded first frame.Modal requires a Sandbox name to be unique within an App. The manager uses fixed named slots to coordinate concurrent fillers.
A claim is one-shot. Close it after use. Do not place the Sandbox back in the pool.The claim path rejects stale, incompatible, unready, finished, busy, and near-expiry candidates. An expected rejection can use the normal cold fallback.Inspect claim.metrics for the pool result, claim time, complete request-to-first-frame time, remaining lifetime, and cost state.
Reconcile capacity
Run reconcile_warm_pool() from your operator process. It removes invalid, incompatible, abandoned, and near-expiry reserved slots after live ownership checks.Queue entries can outlive a terminated slot. Claim validation rejects stale entries.Use the warm-pool example when startup latency justifies reserved capacity. Filled slots can remain billable while idle. Each claim is one-shot.
{"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/warm-capacity","slug":"/operate/warm-capacity","pageMetadata":{"title":"Keep warm desktop capacity","sidebarTitle":"Warm capacity","description":"Fill and claim a bounded pool of ready Modal desktop Sandboxes.","href":"/operate/warm-capacity"},"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: \"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A warm pool reduces the wait for a ready desktop. Warm action latency uses a separate path, and the\noptimized-path contract leaves warm capacity off by default.`}),`\n`,_jsx(_components.p,{children:`Function warm capacity and desktop warm capacity are separate. A warm Function reduces Function startup. A desktop pool reduces Sandbox startup.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Warm capacity can incur charges while no task is running. Measure pool hit rate, cold fallback rate, remaining lifetime, and cost before you add capacity.`})}),`\n`,_jsx(Heading,{level:`2`,id:`define-a-compatible-pool`,children:`Define a compatible pool`}),`\n`,_jsxs(_components.p,{children:[`Use one stable pool name and one `,_jsx(_components.code,{children:`ComputerConfig`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` modal_computer_use `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` BrowserConfig,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ComputerConfig,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ComputerSandboxManager,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ResourceConfig,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` RuntimeConfig,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` WarmPoolPolicy,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`region `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MODAL_COMPUTER_USE_REGION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ComputerConfig(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` resources`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ResourceConfig(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`profile`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"browser\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`cpu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`memory_mib`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8192`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` browser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`BrowserConfig(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`kind`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"firefox\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`prewarm`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` runtime`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`RuntimeConfig(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout_seconds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`modal_region`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`region),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`policy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` WarmPoolPolicy(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pool_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"interactive-firefox\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` capacity`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` min_remaining_seconds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Use a region selector from a current measurement. The pool checks configuration identity before it counts or claims a slot.`}),`\n`,_jsx(_components.p,{children:`The CPU, memory, browser, and capacity values above are example application choices. Select and\nrecord values for your workload.`}),`\n`,_jsx(Heading,{level:`2`,id:`fill-the-pool`,children:`Fill the pool`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`manager `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ComputerSandboxManager()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`fill `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` manager.fill_warm_pool(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`policy)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"configured_capacity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: fill.configured_capacity,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"existing_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: fill.existing_count,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"created_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: fill.created_count,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The manager counts a slot only after TCP readiness, daemon readiness, browser prewarm, and a decoded first frame.`}),`\n`,_jsx(_components.p,{children:`Modal requires a Sandbox name to be unique within an App. The manager uses fixed named slots to coordinate concurrent fillers.`}),`\n`,_jsx(Heading,{level:`2`,id:`claim-one-desktop`,children:`Claim one desktop`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`claim `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` manager.claim_warm_pool(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`policy)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` computer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` claim.computer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` computer.browser.open_url(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` claim.close()`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`A claim is one-shot. Close it after use. Do not place the Sandbox back in the pool.`}),`\n`,_jsx(_components.p,{children:`The claim path rejects stale, incompatible, unready, finished, busy, and near-expiry candidates. An expected rejection can use the normal cold fallback.`}),`\n`,_jsxs(_components.p,{children:[`Inspect `,_jsx(_components.code,{children:`claim.metrics`}),` for the pool result, claim time, complete request-to-first-frame time, remaining lifetime, and cost state.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reconcile-capacity`,children:`Reconcile capacity`}),`\n`,_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`reconcile_warm_pool()`}),` from your operator process. It removes invalid, incompatible, abandoned, and near-expiry reserved slots after live ownership checks.`]}),`\n`,_jsx(_components.p,{children:`Queue entries can outlive a terminated slot. Claim validation rejects stale entries.`}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`https://github.com/ashtonchew/modal-computer-use/blob/b60c1cb7495200e36a738c0f6e07961b1d2db93c/examples/04_warm_pool.py`,children:`warm-pool example`}),` when startup latency justifies reserved capacity. Filled slots can remain billable while idle. Each claim is one-shot.`]})]})}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":"Keep warm desktop capacity","sidebarTitle":"Warm capacity","description":"Fill and claim a bounded pool of ready Modal desktop Sandboxes.","href":"/operate/warm-capacity"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Define a compatible pool","slug":"define-a-compatible-pool","depth":2,"children":[]},{"title":"Fill the pool","slug":"fill-the-pool","depth":2,"children":[]},{"title":"Claim one desktop","slug":"claim-one-desktop","depth":2,"children":[]},{"title":"Reconcile capacity","slug":"reconcile-capacity","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/modal-computer-use/afedbf24fbf1ce4f/table-keyboard-scroll.js"],"subdomain":"modal-computer-use","siteName":"Modal Computer Use","title":"Keep warm desktop capacity - Modal Computer Use","navMaps":{"firstHrefInVersion":{"2.x":{"href":"/operate/warm-capacity","matchLevel":0},"1.x":{"href":"/v1/operate/warm-capacity","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-08-26T21:23:52.960Z","originalFileLocation":"operate/warm-capacity.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=\"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\">\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=\"Keep warm desktop capacity - Modal Computer Use\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\">\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/warm-capacity\">\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=Keep+warm+desktop+capacity\u0026amp;description=Fill+and+claim+a+bounded+pool+of+ready+Modal+desktop+Sandboxes.\u0026amp;theme=b7d7aff4163f59c6d290186a\u0026amp;signature=6013bbc038d7a2a96563675da7253be505c6d5fc5b771c1f6269adec214f0ea4\">\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=\"Keep warm desktop capacity - Modal Computer Use\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://modal-computer-use.mintlify.site/_mintlify/api/og/v2?division=Deployment+and+operations\u0026amp;title=Keep+warm+desktop+capacity\u0026amp;description=Fill+and+claim+a+bounded+pool+of+ready+Modal+desktop+Sandboxes.\u0026amp;theme=b7d7aff4163f59c6d290186a\u0026amp;signature=6013bbc038d7a2a96563675da7253be505c6d5fc5b771c1f6269adec214f0ea4\">\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/warm-capacity\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/operate/warm-capacity.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/warm-capacity#webpage\",\"url\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity\",\"name\":\"Keep warm desktop capacity\",\"description\":\"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\",\"dateModified\":\"2026-08-26T21:23:52.960Z\",\"isPartOf\":{\"@id\":\"https://modal-computer-use.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Deployment and operations\",\"item\":\"https://modal-computer-use.mintlify.app/operate/deploy\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Keep warm desktop capacity\",\"item\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity#article\",\"headline\":\"Keep warm desktop capacity\",\"name\":\"Keep warm desktop capacity\",\"description\":\"Fill and claim a bounded pool of ready Modal desktop Sandboxes.\",\"url\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity\",\"mainEntityOfPage\":{\"@id\":\"https://modal-computer-use.mintlify.app/operate/warm-capacity#webpage\"},\"dateModified\":\"2026-08-26T21:23:52.960Z\",\"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/warm-capacity.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","description":"Set explicit placement, resources, Image policy, input limits, and warm capacity.","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","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/warm-capacity"}]}]},"basePath":"","title":"Keep warm desktop capacity - Modal Computer Use","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}