Pause idle machines and wake them when SDK calls or public traffic arrive.
Auto-resume is for long-lived workspaces, preview servers, and per-user
machines that should not run constantly. Configure the machine to pause on
timeout, then set auto_resume=True so public HTTP/WebSocket traffic can wake
it before the request is proxied.
Configure on create
Choose one control plane for the create call. The snippets below configure the
same timeout and auto-resume behavior. The TypeScript SDK does not expose
autoResume or a pause timeout policy on create, so configure auto-resume
from the Python SDK, CLI, or HTTP API.
from nullspace import Machinemachine = Machine.create( template="base", timeout=600, on_timeout="pause", auto_resume=True,)
auto_resume=True requires pause/hibernate timeout behavior. A machine with
destroy-on-timeout cannot auto-resume because there is no paused state to
restore.
After the machine times out and pauses, an inbound request to the signed HTTP
URL or signed WebSocket URL asks the control plane to resume the paused
machine. When the resume completes within the bounded wait window, the edge
forwards the original request to the resumed execution.If auto-resume is disabled or the resume cannot complete in time, the public
URL returns 503 Service Unavailable with Retry-After: 5. The JSON body
includes a stable code, retryable, and suggested_action. Disabled policy
responses use machine_paused_auto_resume_disabled with retryable: false.
Timeout or control-plane availability failures are retryable and can be retried
after the Retry-After delay.
Wake from SDK calls
from nullspace import Machinemachine = Machine.connect("mch_...")result = machine.commands.run("echo resumed", shell=True)print(result.stdout)
Machine.connect(id) is an explicit reconnect operation. If id points at a
paused machine alias, connect() resumes its snapshot and returns a running
machine handle.Use Machine.get_info_by_id(id) when you need a read-only status check that
does not wake a paused machine.
info = Machine.get_info_by_id("mch_...")print(info.status, info.snapshot_id)
Paused aliases and new IDs
Resume creates a new running machine execution. The original paused machine ID
is kept as an alias so reconnect and traffic-triggered wakeups can find the
latest resumed target. Code that persists machine IDs should update its stored
ID after connect() or resume returns a new handle.
Shared volume attachments are remounted when a machine resumes. VM memory and
mutable rootfs state still depend on snapshot compatibility with the runtime
host and kernel.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nullspace","description":"Nullspace is composable machines for AI agents: on-demand microVM compute that agents create, scale, pause, and fork.","colors":{"primary":"#1a1d23","light":"#d7dae0","dark":"#1a1d23"},"logo":{"light":"https://mintcdn.com/catamaranresearch/IKCWYZugMKgGJaLI/images/logo-light.svg?fit=max\u0026auto=format\u0026n=IKCWYZugMKgGJaLI\u0026q=85\u0026s=fbbc2f6e5c18d0cc912d4eb6bd3af8ca","dark":"https://mintcdn.com/catamaranresearch/IKCWYZugMKgGJaLI/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=IKCWYZugMKgGJaLI\u0026q=85\u0026s=45090618928ba93bf1541f1237343216"},"favicon":"https://mintcdn.com/catamaranresearch/Nr4-Qd7vJxaLolgu/images/favicon.svg?fit=max\u0026auto=format\u0026n=Nr4-Qd7vJxaLolgu\u0026q=85\u0026s=af5b7478b24f7fa69691fdc785300537","api":{"openapi":"openapi.yaml","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["python","curl"],"prefill":true,"autogenerate":true},"url":"full"},"appearance":{"default":"system"},"background":{"color":{"light":"#fafafa","dark":"#121212"}},"navbar":{"links":[{"href":"https://github.com/catamaran-research/nullspace","type":"github"}]},"footer":{"socials":{"github":"https://github.com/catamaran-research/nullspace"}},"search":{"prompt":"Search Nullspace docs"},"seo":{"indexing":"navigable"},"fonts":{"heading":{"family":"JetBrains Mono"}},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"one-light","dark":"one-dark-pro"}},"latex":false},"contextual":{"options":["copy","assistant","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/catamaranresearch/bD-Cd21B2-kH3wuD/images/og-card.svg?fit=max\u0026auto=format\u0026n=bD-Cd21B2-kH3wuD\u0026q=85\u0026s=c0f0e8a21a89402d5babb5b32aaf4786"},"interaction":{"drilldown":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"catamaranresearch","hasAudioNarration":false,"actualSubdomain":"catamaranresearch","customDomains":["docs.ns.rocks"],"gitSource":{"type":"github","owner":"catamaran-hq","repo":"nullspace","deployBranch":"main","contentDirectory":"docs/site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae9562737dad6e4be6a3d43:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":258},{"language":"default","tag":"Endpoints","count":256},{"language":"default","tag":"Documentation","count":95},{"language":"default","tag":"Templates","count":62},{"language":"default","tag":"Machines","count":51},{"language":"default","tag":"Reference","count":48},{"language":"default","tag":"Volumes","count":42},{"language":"default","tag":"Desktop","count":38},{"language":"default","tag":"Agent Deployments","count":23},{"language":"default","tag":"Files","count":23}]},"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":[]}
{"page":{"pagePath":"machines/auto-resume","slug":"/machines/auto-resume","pageMetadata":{"title":"Auto-Resume","description":"Pause idle machines and wake them when SDK calls or public traffic arrive.","href":"/machines/auto-resume"},"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: \"Pause idle machines and wake them when SDK calls or public traffic arrive.\"\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`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Auto-resume is for long-lived workspaces, preview servers, and per-user\nmachines that should not run constantly. Configure the machine to pause on\ntimeout, then set `,_jsx(_components.code,{children:`auto_resume=True`}),` so public HTTP/WebSocket traffic can wake\nit before the request is proxied.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-on-create`,children:`Configure on create`}),`\n`,_jsxs(_components.p,{children:[`Choose one control plane for the create call. The snippets below configure the\nsame timeout and auto-resume behavior. The TypeScript SDK does not expose\n`,_jsx(_components.code,{children:`autoResume`}),` or a `,_jsx(_components.code,{children:`pause`}),` timeout policy on create, so configure auto-resume\nfrom the Python SDK, CLI, or HTTP API.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python SDK`,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#A626A4`,\"--shiki-dark\":`#C678DD`},children:`from`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` nullspace `}),_jsx(_components.span,{style:{color:`#A626A4`,\"--shiki-dark\":`#C678DD`},children:`import`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`machine `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`create`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` template`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"base\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` timeout`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`600`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` on_timeout`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"pause\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` auto_resume`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`True`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`CLI`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#4078F2`,\"--shiki-dark\":`#61AFEF`},children:`nullspace`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` machine`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` create`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` --template`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` base`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` --timeout`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` 600`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` --on-timeout`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` pause`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` --auto-resume`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`HTTP API`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#4078F2`,\"--shiki-dark\":`#61AFEF`},children:`curl`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` -fsS`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` -X`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` POST`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"`}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#98C379`},children:\"${\"}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#E06C75`},children:`NULLSPACE_API_URL`}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#98C379`},children:`}`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`/v1/machines\"`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` -H`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#98C379`},children:\"${\"}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#E06C75`},children:`NULLSPACE_API_KEY`}),_jsx(_components.span,{style:{color:`#E45649`,\"--shiki-dark\":`#98C379`},children:`}`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` -H`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:` -d`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"template\": \"base\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"timeout_ms\": 600000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"lifecycle\": { \"on_timeout\": \"pause\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"auto_resume\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`auto_resume=True`}),` requires pause/hibernate timeout behavior. A machine with\ndestroy-on-timeout cannot auto-resume because there is no paused state to\nrestore.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`wake-from-public-traffic`,children:`Wake from public traffic`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`server `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` machine.commands.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`run`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:` \"python3 -m http.server 8080 --bind 0.0.0.0\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` shell`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`True`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` cwd`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"/workspace\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:` background`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`True`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`url `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`get_url`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`8080`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:`print`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(url)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`After the machine times out and pauses, an inbound request to the signed HTTP\nURL or signed WebSocket URL asks the control plane to resume the paused\nmachine. When the resume completes within the bounded wait window, the edge\nforwards the original request to the resumed execution.`}),`\n`,_jsxs(_components.p,{children:[`If auto-resume is disabled or the resume cannot complete in time, the public\nURL returns `,_jsx(_components.code,{children:`503 Service Unavailable`}),` with `,_jsx(_components.code,{children:`Retry-After: 5`}),`. The JSON body\nincludes a stable `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`retryable`}),`, and `,_jsx(_components.code,{children:`suggested_action`}),`. Disabled policy\nresponses use `,_jsx(_components.code,{children:`machine_paused_auto_resume_disabled`}),` with `,_jsx(_components.code,{children:`retryable: false`}),`.\nTimeout or control-plane availability failures are retryable and can be retried\nafter the `,_jsx(_components.code,{children:`Retry-After`}),` delay.`]}),`\n`,_jsx(Heading,{level:`2`,id:`wake-from-sdk-calls`,children:`Wake from SDK calls`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#A626A4`,\"--shiki-dark\":`#C678DD`},children:`from`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` nullspace `}),_jsx(_components.span,{style:{color:`#A626A4`,\"--shiki-dark\":`#C678DD`},children:`import`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`machine `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`connect`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"mch_...\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`result `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` machine.commands.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`run`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"echo resumed\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`, `}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#E06C75`,\"--shiki-dark-font-style\":`italic`},children:`shell`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#986801`,\"--shiki-dark\":`#D19A66`},children:`True`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:`print`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(result.stdout)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Machine.connect(id)`}),` is an explicit reconnect operation. If `,_jsx(_components.code,{children:`id`}),` points at a\npaused machine alias, `,_jsx(_components.code,{children:`connect()`}),` resumes its snapshot and returns a running\nmachine handle.`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`Machine.get_info_by_id(id)`}),` when you need a read-only status check that\ndoes not wake a paused machine.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`info `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`get_info_by_id`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#50A14F`,\"--shiki-dark\":`#98C379`},children:`\"mch_...\"`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:`print`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(info.status, info.snapshot_id)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`paused-aliases-and-new-ids`,children:`Paused aliases and new IDs`}),`\n`,_jsxs(_components.p,{children:[`Resume creates a new running machine execution. The original paused machine ID\nis kept as an alias so reconnect and traffic-triggered wakeups can find the\nlatest resumed target. Code that persists machine IDs should update its stored\nID after `,_jsx(_components.code,{children:`connect()`}),` or resume returns a new handle.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-light one-dark-pro`,style:{backgroundColor:`#FAFAFA`,\"--shiki-dark-bg\":`#282c34`,color:`#383A42`,\"--shiki-dark\":`#abb2bf`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`original_id `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` machine.id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`snapshot `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`pause`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`resumed `}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#56B6C2`},children:`=`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:` Machine.`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#61AFEF`},children:`connect`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(original_id)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0184BC`,\"--shiki-dark\":`#56B6C2`},children:`print`}),_jsx(_components.span,{style:{color:`#383A42`,\"--shiki-dark\":`#ABB2BF`},children:`(original_id, resumed.id)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Shared volume attachments are remounted when a machine resumes. VM memory and\nmutable rootfs state still depend on snapshot compatibility with the runtime\nhost and kernel.`}),`\n`,_jsx(Heading,{level:`2`,id:`common-patterns`,children:`Common patterns`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Pattern`}),_jsx(_components.th,{children:`Recommended configuration`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Preview server that should wake on a browser hit`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`on_timeout=\"pause\", auto_resume=True`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per-user workspace stored by machine ID`}),_jsxs(_components.td,{children:[`Store the latest `,_jsx(_components.code,{children:`machine.id`}),` after `,_jsx(_components.code,{children:`connect()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Background agent task with explicit scheduler`}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`Machine.connect(id)`}),` before each task`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Disposable CI-style run`}),_jsx(_components.td,{children:`Keep default destroy-on-timeout behavior`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/networking/preview-urls`,children:`Preview URLs`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/machines/persistence`,children:`Persistence`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/machines/metrics-timeouts`,children:`Metrics and timeouts`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/observability/lifecycle-events`,children:`Lifecycle events`})}),`\n`]})]})}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":{"theme":{"light":"one-light","dark":"one-dark-pro"}},"config":{},"pageMetadata":{"title":"Auto-Resume","description":"Pause idle machines and wake them when SDK calls or public traffic arrive.","href":"/machines/auto-resume"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Configure on create","slug":"configure-on-create","depth":2,"children":[]},{"title":"Wake from public traffic","slug":"wake-from-public-traffic","depth":2,"children":[]},{"title":"Wake from SDK calls","slug":"wake-from-sdk-calls","depth":2,"children":[]},{"title":"Paused aliases and new IDs","slug":"paused-aliases-and-new-ids","depth":2,"children":[]},{"title":"Common patterns","slug":"common-patterns","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"catamaranresearch","siteName":"Nullspace","title":"Auto-Resume - Nullspace","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-21T17:43:51.769Z","originalFileLocation":"machines/auto-resume.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=\"Pause idle machines and wake them when SDK calls or public traffic arrive.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nullspace\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_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/catamaranresearch/u9xmdi3i1cKfEW81/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Auto-Resume - Nullspace\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pause idle machines and wake them when SDK calls or public traffic arrive.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nullspace\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ns.rocks/machines/auto-resume\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://catamaranresearch.mintlify.site/_mintlify/api/og/v2?division=Machines\u0026amp;title=Auto-Resume\u0026amp;description=Pause+idle+machines+and+wake+them+when+SDK+calls+or+public+traffic+arrive.\u0026amp;theme=a2a81298f98231bb639fb480\u0026amp;signature=5691dccfcdda47c346d2965c0325196bd432771ba76b643a797b9fbf4e42471a\">\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=\"Auto-Resume - Nullspace\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pause idle machines and wake them when SDK calls or public traffic arrive.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://catamaranresearch.mintlify.site/_mintlify/api/og/v2?division=Machines\u0026amp;title=Auto-Resume\u0026amp;description=Pause+idle+machines+and+wake+them+when+SDK+calls+or+public+traffic+arrive.\u0026amp;theme=a2a81298f98231bb639fb480\u0026amp;signature=5691dccfcdda47c346d2965c0325196bd432771ba76b643a797b9fbf4e42471a\">\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/catamaranresearch/u9xmdi3i1cKfEW81/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nullspace\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1a1d23\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ns.rocks/machines/auto-resume\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/machines/auto-resume.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ns.rocks/#organization\",\"name\":\"Nullspace\",\"url\":\"https://docs.ns.rocks\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/catamaranresearch/IKCWYZugMKgGJaLI/images/logo-light.svg?fit=max\u0026auto=format\u0026n=IKCWYZugMKgGJaLI\u0026q=85\u0026s=fbbc2f6e5c18d0cc912d4eb6bd3af8ca\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ns.rocks#website\",\"name\":\"Nullspace\",\"url\":\"https://docs.ns.rocks\",\"publisher\":{\"@id\":\"https://docs.ns.rocks/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ns.rocks/machines/auto-resume#webpage\",\"url\":\"https://docs.ns.rocks/machines/auto-resume\",\"name\":\"Auto-Resume\",\"description\":\"Pause idle machines and wake them when SDK calls or public traffic arrive.\",\"dateModified\":\"2026-06-21T17:43:51.769Z\",\"isPartOf\":{\"@id\":\"https://docs.ns.rocks#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ns.rocks/machines/auto-resume#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ns.rocks/machines/auto-resume#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Machines\",\"item\":\"https://docs.ns.rocks/machines/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auto-Resume\",\"item\":\"https://docs.ns.rocks/machines/auto-resume\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ns.rocks/machines/auto-resume#article\",\"headline\":\"Auto-Resume\",\"name\":\"Auto-Resume\",\"description\":\"Pause idle machines and wake them when SDK calls or public traffic arrive.\",\"url\":\"https://docs.ns.rocks/machines/auto-resume\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ns.rocks/machines/auto-resume#webpage\"},\"dateModified\":\"2026-06-21T17:43:51.769Z\",\"publisher\":{\"@id\":\"https://docs.ns.rocks/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ns.rocks#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nullspace\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nullspace\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/machines/auto-resume.md","siteName":"Nullspace","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Welcome to Nullspace","sidebarTitle":"Welcome","href":"/introduction"},{"title":"Build","href":"/build"},{"title":"First Machine","href":"/quickstarts/first-machine"},{"title":"Development Environment","href":"/quickstarts/development-environment"},{"title":"Recipes","href":"/quickstarts/recipes"},{"title":"Self-Hosted Single-Host","href":"/quickstarts/self-hosted-single-host"}]},{"group":"Machines","icon":"box","pages":[{"title":"Machines","href":"/machines/overview"},{"title":"Create, Connect, And List Machines","href":"/machines/create-connect-list"},{"title":"Machine Lifecycle","href":"/machines/lifecycle"},{"group":"Lifecycle primitives","pages":[{"title":"Create","href":"/concepts/create"},{"title":"Exec","href":"/concepts/exec"},{"title":"Hibernate","href":"/concepts/hibernate"},{"title":"Resume","href":"/concepts/resume"},{"title":"Fork","href":"/concepts/fork"},{"title":"Destroy","href":"/concepts/destroy"}]},{"title":"Persistence","description":"Pause machines, resume paused state, and keep long-running sessions cheap.","href":"/machines/persistence"},{"title":"Auto-Resume","href":"/machines/auto-resume"},{"title":"Snapshots","description":"Create reusable machine snapshots and spawn independent machines from them.","href":"/machines/snapshots"},{"title":"Fork","href":"/machines/fork"},{"title":"Metrics And Timeouts","href":"/machines/metrics-timeouts"}]},{"group":"Commands","icon":"terminal","pages":[{"title":"Commands","href":"/commands/overview"},{"title":"Streaming Command Output","href":"/commands/streaming"},{"title":"Run commands in background","href":"/commands/background"},{"title":"Processes","href":"/commands/processes"}]},{"group":"Filesystem","icon":"folder-open","pages":[{"title":"Filesystem","href":"/filesystem"},{"title":"Uploads","href":"/filesystem/uploads"},{"title":"Downloads","href":"/filesystem/downloads"},{"title":"Search, Replace, And Watch","href":"/filesystem/search-watch"}]},{"group":"Code Interpreter","icon":"square-terminal","pages":[{"title":"Code Interpreter","href":"/code-interpreter/overview"},{"title":"Overview","href":"/code-interpreter/analyze-data"},{"title":"Pre-installed libraries","href":"/code-interpreter/pre-installed-libraries"},{"group":"Charts and visualizations","pages":[{"title":"Overview","href":"/code-interpreter/charts-overview"},{"title":"Static charts","href":"/code-interpreter/static-charts"},{"title":"Interactive charts","href":"/code-interpreter/interactive-charts"}]},{"title":"Streaming Code Output","href":"/code-interpreter/streaming"},{"title":"Code Contexts","href":"/code-interpreter/contexts"},{"title":"Runs And Artifacts","href":"/code-interpreter/runs-artifacts"},{"group":"Supported languages","pages":[{"title":"Overview","href":"/code-interpreter/languages-overview"},{"title":"Python","href":"/code-interpreter/language-python"},{"title":"JavaScript And TypeScript","href":"/code-interpreter/language-javascript-typescript"},{"title":"R","href":"/code-interpreter/language-r"},{"title":"Java","href":"/code-interpreter/language-java"},{"title":"Bash","href":"/code-interpreter/language-bash"}]}]},{"group":"Desktop","icon":"monitor","pages":[{"title":"Desktop Environments","href":"/desktop/overview"},{"title":"Desktop Automation","href":"/desktop/automation"},{"title":"Managed Desktop Viewer","href":"/desktop/viewer"},{"title":"Desktop Recordings","href":"/desktop/recordings"}]},{"group":"Templates","icon":"layers","pages":[{"title":"Templates","href":"/templates/overview"},{"title":"Quickstart","href":"/templates/quickstart"},{"title":"How it works","href":"/templates/how-it-works"},{"group":"Author templates","pages":[{"title":"Defining template","href":"/templates/defining"},{"title":"Base image","href":"/templates/base-images"},{"title":"Private registries","href":"/templates/private-registries"},{"title":"User and workdir","href":"/templates/user-workdir"},{"title":"Start \u0026 ready commands","href":"/templates/start-ready"},{"title":"Choose A Per-Template Kernel","href":"/guides/template-kernel-selection"}]},{"group":"Build and operate","pages":[{"title":"Build","href":"/templates/build"},{"title":"Caching","href":"/templates/caching"},{"title":"Logging","href":"/templates/logging"},{"title":"Error handling","href":"/templates/errors"},{"title":"Names","href":"/templates/names"},{"title":"Tags \u0026 versioning","href":"/templates/tags-versioning"},{"title":"Template Warm Pools","href":"/templates/warm-pools"}]}]},{"group":"Volumes","icon":"hard-drive","pages":[{"title":"Volumes","href":"/volumes/overview"},{"title":"Managing volumes","href":"/volumes/managing-volumes"},{"title":"Mounting volumes","href":"/volumes/mounting-volumes"},{"title":"Read \u0026 write","href":"/volumes/read-write"},{"title":"Direct Volume Files","href":"/volumes/files"},{"title":"File \u0026 directory metadata","href":"/volumes/file-directory-metadata"},{"group":"Transfer data","pages":[{"title":"Upload data","href":"/volumes/upload-data"},{"title":"Download data","href":"/volumes/download-data"},{"title":"Volume Transfers","href":"/volumes/transfers"}]}]},{"group":"Networking","icon":"globe","pages":[{"title":"Networking And Security","href":"/networking/overview"},{"title":"API Keys","href":"/guides/api-keys"},{"title":"Preview URLs","href":"/networking/preview-urls"},{"title":"Custom Preview Proxy","href":"/networking/custom-preview-proxy"},{"title":"Token Model","href":"/networking/token-model"},{"title":"Access Control","href":"/networking/access-control"},{"title":"WebSockets","href":"/networking/websockets"},{"title":"Share A Preview URL","href":"/guides/share-machine-url"},{"title":"Tunnel Egress Through Your Own Proxy","href":"/guides/proxy-tunneling"},{"title":"Mount An S3/GCS/R2 Bucket","href":"/guides/mount-bucket"}]},{"group":"Interactive access","icon":"plug","pages":[{"title":"Access Overview","href":"/access/overview"},{"title":"PTY Sessions","href":"/access/pty"},{"title":"SSH Access","href":"/access/ssh"},{"title":"Debug Retained Machines","href":"/access/debug-retained-machines"},{"group":"CLI workflows","pages":[{"title":"Connect To Machine","href":"/cli/connect-to-machine"},{"title":"Create Machine","href":"/cli/create-machine"},{"title":"Execute Commands In Machine","href":"/cli/execute-commands"},{"title":"Manage Files","href":"/cli/manage-files"},{"title":"Shutdown Running Machines","href":"/cli/shutdown-running-machines"}]}]},{"group":"Observability","icon":"activity","pages":[{"title":"Observability","href":"/observability/overview"},{"title":"Lifecycle Events","href":"/observability/lifecycle-events"},{"title":"Lifecycle Webhooks","href":"/observability/webhooks"},{"title":"Monitor Stream","href":"/observability/monitor"}]}]},{"tab":"Examples","icon":"code","pages":[{"title":"Examples","href":"/examples"}]},{"tab":"Agents","icon":"bot","pages":[{"title":"Agents","href":"/agents/overview"}]},{"tab":"Reference","icon":"terminal","pages":[{"title":"Reference","href":"/sdk-reference"}]},{"tab":"API Reference","icon":"braces","pages":[{"title":"API Reference","href":"/api-reference"}]}]},"basePath":"","title":"Auto-Resume - Nullspace","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}