Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs
Draft. Build offload is new and has not been run end to end yet.
A single-VM host on EC2 can send heavy builds, such as a release build of a large Rust workspace, to a short-lived Lambda MicroVM. The session keeps running on the host. The build runs in a VM made from the same session image, so it sees the same toolchains, user and paths. Its artifacts come back into the session’s workspace.Offload is off by default. It needs an EC2 host, one CloudFormation stack and one image build per release.
Requirements
A host installed with Single VM, on EC2, in a region where Lambda MicroVMs are available.
Permission to create IAM roles and an S3 bucket in the account, once.
The AWS CLI on the machine where you run the image script, with a version that has the lambda-microvms commands.
an S3 bucket for job sources, artifacts and logs, encrypted, with no public access and TLS-only. Runs expire after 2 days and the build cache after 14.
the build role that Lambda uses to build the images
an instance role and instance profile for the host, or a policy attached to your existing instance role (ExistingInstanceRoleName)
a least-privilege policy: this region only, images named oc-offload-* only, and no shell into a build VM
It builds one image per size tier from the session image the host runs (SP_IMAGE in the release’s .sp-version.env): s (2 GiB) and m (8 GiB) by default, changed with --tiers s:2048,m:8192. Each build takes about 5 minutes. At the end it prints:
The optional limits are SP_OFFLOAD_MAX_CONCURRENT (default 2), SP_OFFLOAD_MAX_MINUTES (default 60, at most 480), SP_OFFLOAD_SOURCE_MAX_MB and SP_OFFLOAD_ARTIFACT_MAX_MB (default 2048 each). SP_OFFLOAD_REGION defaults to the instance’s region.
Turn it off
sudo selfhost/host-install.sh --disable-offload
Running builds are cancelled. To remove everything, delete the images named oc-offload-* and then the stack. The bucket is retained, so empty and delete it yourself.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpenComputer","description":"Cloud sandboxes for running AI agents","colors":{"primary":"#131311","light":"#dfdfdf","dark":"#131311"},"logo":{"light":"https://mintcdn.com/opensandbox/aaniDSrU3bGw3tVF/images/logo-light.svg?fit=max\u0026auto=format\u0026n=aaniDSrU3bGw3tVF\u0026q=85\u0026s=9c78bb2fa07583fc6ecde5be51f5aa28","dark":"https://mintcdn.com/opensandbox/aaniDSrU3bGw3tVF/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=aaniDSrU3bGw3tVF\u0026q=85\u0026s=4471efb27763bca749ade989047f914a","href":"https://opencomputer.dev"},"favicon":"https://mintcdn.com/opensandbox/m2Lpfuq_Nk-X7p1_/images/favicon-docs.svg?fit=max\u0026auto=format\u0026n=m2Lpfuq_Nk-X7p1_\u0026q=85\u0026s=42b1b0d9b259625ca93df3fd660b3cbf","api":{"mdx":{"auth":{"method":"key","name":"X-API-Key"},"server":"https://app.opencomputer.dev"}},"appearance":{"default":"light"},"background":{"color":{"light":"#f8f6f1","dark":"#0f0f0f"}},"navbar":{"links":[{"href":"https://github.com/diggerhq/opencomputer","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"https://app.opencomputer.dev"}},"footer":{"socials":{"github":"https://github.com/diggerhq/opencomputer"}},"fonts":{"heading":{"family":"Newsreader","weight":600},"body":{"family":"Inter","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"opensandbox","hasAudioNarration":false,"actualSubdomain":"opensandbox","customDomains":["docs.opencomputer.dev"],"gitSource":{"type":"github","owner":"diggerhq","repo":"opencomputer","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0e46c8fce7902cee0143ce","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Serverless Agents","count":40},{"language":"default","tag":"Concepts","count":16},{"language":"default","tag":"Use in Slack","count":14},{"language":"default","tag":"API and CLI","count":10},{"language":"default","tag":"Agent API","count":9},{"language":"default","tag":"Getting started","count":7},{"language":"default","tag":"Self-hosting","count":7},{"language":"default","tag":"Examples","count":5},{"language":"default","tag":"Reference","count":5},{"language":"default","tag":"Build an application","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"styles/custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\nh5{font-family:'Inter', sans-serif}#navbar .nav-logo{display:none}#navbar a:has(.nav-logo)::after{content:\"opencomputer\";font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace;font-weight:500;font-size:1.125rem;letter-spacing:-0.025em;color:#131311}.dark #navbar a:has(.nav-logo)::after{color:#dfdfdf}code,kbd,samp,pre,pre code{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace}::selection{background:#131311;color:#f8f6f1}.dark ::selection{background:#dfdfdf;color:#0f0f0f}[data-component-part=\"card-title\"]{font-family:\"Inter\", -apple-system, BlinkMacSystemFont, sans-serif}[data-component-part=\"card-title\"]+.prose{font-size:0.875rem;line-height:1.5;margin-top:0.625rem}:root{--oc-radius: 0.375rem;--rounded-lg: var(--oc-radius);--rounded-xl: var(--oc-radius);--rounded-2xl: var(--oc-radius);--rounded-3xl: var(--oc-radius)}[data-component-part=\"code-group-tab-content\"],[data-component-part=\"code-group-tab-content\"] [data-component-part=\"code-block-root\"]{border-top-left-radius:0;border-top-right-radius:0}:root{--oc-sidebar-radius: 0.125rem}#sidebar a{border-radius:var(--oc-sidebar-radius)}.nav-tag-pill-text[data-nav-tag]{border-radius:var(--oc-sidebar-radius)}"},{"filePath":"style.css","content":"#banner{background-color:#7c3aed!important}@layer components{html[data-current-path^=\"/agents\"] #banner{display:none!important}html[data-current-path^=\"/agents\"]{--banner-height: 0px !important}}"}]}
{"page":{"pagePath":"self-hosting/offload","slug":"/self-hosting/offload","pageMetadata":{"title":"Build offload (AWS)","description":"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs","href":"/self-hosting/offload"},"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: \"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\"\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`,ul:`ul`,..._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(Warning,{children:`Draft. Build offload is new and has not been run end to end yet.`}),`\n`,_jsxs(_components.p,{children:[`A single-VM host on EC2 can send heavy builds, such as a release build of a large Rust workspace, to a short-lived `,_jsx(_components.a,{href:`https://docs.aws.amazon.com/lambda/`,children:`Lambda MicroVM`}),`. The session keeps running on the host. The build runs in a VM made from the same session image, so it sees the same toolchains, user and paths. Its artifacts come back into the session’s workspace.`]}),`\n`,_jsx(_components.p,{children:`Offload is off by default. It needs an EC2 host, one CloudFormation stack and one image build per release.`}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A host installed with `,_jsx(_components.a,{href:`/self-hosting/single-vm`,children:`Single VM`}),`, on EC2, in a region where Lambda MicroVMs are available.`]}),`\n`,_jsx(_components.li,{children:`Permission to create IAM roles and an S3 bucket in the account, once.`}),`\n`,_jsxs(_components.li,{children:[`The AWS CLI on the machine where you run the image script, with a version that has the `,_jsx(_components.code,{children:`lambda-microvms`}),` commands.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-create-the-stack`,children:`1. Create the stack`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://github.com/diggerhq/opencomputer/blob/main/selfhost/aws/offload.yaml`,children:_jsx(_components.code,{children:`selfhost/aws/offload.yaml`})}),` creates:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`an S3 bucket for job sources, artifacts and logs, encrypted, with no public access and TLS-only. Runs expire after 2 days and the build cache after 14.`}),`\n`,_jsx(_components.li,{children:`the build role that Lambda uses to build the images`}),`\n`,_jsxs(_components.li,{children:[`an instance role and instance profile for the host, or a policy attached to your existing instance role (`,_jsx(_components.code,{children:`ExistingInstanceRoleName`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`a least-privilege policy: this region only, images named `,_jsx(_components.code,{children:`oc-offload-*`}),` only, and no shell into a build VM`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cloudformation`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stack-name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` opencomputer-offload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --template-file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selfhost/aws/offload.yaml`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --capabilities`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` CAPABILITY_IAM`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cloudformation`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` describe-stacks`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stack-name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` opencomputer-offload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --query`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Stacks[0].Outputs'`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` table`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If the stack created an instance profile, attach it to the host:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ec2`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` associate-iam-instance-profile`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --instance-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --iam-instance-profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Arn=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`InstanceProfileAr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`n`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The host’s own offload service is the only process on the host that can reach the instance metadata service and so these credentials. Sessions cannot.`}),`\n`,_jsx(Heading,{level:`2`,id:`2-build-the-images`,children:`2. Build the images`}),`\n`,_jsxs(_components.p,{children:[`On the host, from the repository checkout, run the `,_jsx(_components.code,{children:`ImageCommand`}),` from the stack outputs:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`selfhost/aws/build-offload-image.sh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --region`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`regio`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`n`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stack`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` opencomputer-offload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --bucket`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`OffloadBucke`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build-role-arn`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`BuildRoleAr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`n`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # prints the AWS calls`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`selfhost/aws/build-offload-image.sh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --region`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`regio`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`n`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --stack`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` opencomputer-offload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --bucket`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`OffloadBucke`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build-role-arn`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`BuildRoleAr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`n`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`It builds one image per size tier from the session image the host runs (`,_jsx(_components.code,{children:`SP_IMAGE`}),` in the release’s `,_jsx(_components.code,{children:`.sp-version.env`}),`): `,_jsx(_components.code,{children:`s`}),` (2 GiB) and `,_jsx(_components.code,{children:`m`}),` (8 GiB) by default, changed with `,_jsx(_components.code,{children:`--tiers s:2048,m:8192`}),`. Each build takes about 5 minutes. At the end it prints:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_IMAGE_S`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`arn:aws:lambda:…:microvm-image:oc-offload-s-1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_IMAGE_M`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`arn:aws:lambda:…:microvm-image:oc-offload-m-1`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Run it again after each host upgrade that changes the session image. If nothing changed, it reuses the existing image versions.`}),`\n`,_jsx(Heading,{level:`2`,id:`3-turn-it-on`,children:`3. Turn it on`}),`\n`,_jsxs(_components.p,{children:[`Add these to `,_jsx(_components.code,{children:`/etc/opencomputer/selfhost.env`}),`, with the two image lines from step 2:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_BACKEND`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`aws-microvm`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_BUCKET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`OffloadBucket`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_IMAGE_S`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`…`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SP_OFFLOAD_IMAGE_M`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`…`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selfhost/host-install.sh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --enable-offload`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The optional limits are `,_jsx(_components.code,{children:`SP_OFFLOAD_MAX_CONCURRENT`}),` (default 2), `,_jsx(_components.code,{children:`SP_OFFLOAD_MAX_MINUTES`}),` (default 60, at most 480), `,_jsx(_components.code,{children:`SP_OFFLOAD_SOURCE_MAX_MB`}),` and `,_jsx(_components.code,{children:`SP_OFFLOAD_ARTIFACT_MAX_MB`}),` (default 2048 each). `,_jsx(_components.code,{children:`SP_OFFLOAD_REGION`}),` defaults to the instance’s region.`]}),`\n`,_jsx(Heading,{level:`2`,id:`turn-it-off`,children:`Turn it off`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selfhost/host-install.sh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --disable-offload`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Running builds are cancelled. To remove everything, delete the images named `,_jsx(_components.code,{children:`oc-offload-*`}),` and then the stack. The bucket is retained, so empty and delete it yourself.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Build offload (AWS)","description":"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs","href":"/self-hosting/offload"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"1. Create the stack","slug":"1-create-the-stack","depth":2,"children":[]},{"title":"2. Build the images","slug":"2-build-the-images","depth":2,"children":[]},{"title":"3. Turn it on","slug":"3-turn-it-on","depth":2,"children":[]},{"title":"Turn it off","slug":"turn-it-off","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"opensandbox","siteName":"OpenComputer","title":"Build offload (AWS) - OpenComputer","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T01:43:00.689Z","originalFileLocation":"self-hosting/offload.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=\"light\"}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=\"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenComputer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_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/opensandbox/vrTxF2H8n0YOSmT7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build offload (AWS) - OpenComputer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenComputer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.opencomputer.dev/self-hosting/offload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://opensandbox.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Build+offload+%28AWS%29\u0026amp;description=Run+heavy+builds+from+a+single-VM+host+in+short-lived+AWS+Lambda+MicroVMs\u0026amp;theme=adde308964881de2358ad3b3\u0026amp;signature=af49c11ae2b164f4a3f3038f751d5a77dc14523f12254962be8873b3a6bb8b47\">\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=\"Build offload (AWS) - OpenComputer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://opensandbox.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Build+offload+%28AWS%29\u0026amp;description=Run+heavy+builds+from+a+single-VM+host+in+short-lived+AWS+Lambda+MicroVMs\u0026amp;theme=adde308964881de2358ad3b3\u0026amp;signature=af49c11ae2b164f4a3f3038f751d5a77dc14523f12254962be8873b3a6bb8b47\">\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/opensandbox/vrTxF2H8n0YOSmT7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenComputer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#131311\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.opencomputer.dev/self-hosting/offload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/self-hosting/offload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.opencomputer.dev/#organization\",\"name\":\"OpenComputer\",\"url\":\"https://docs.opencomputer.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/opensandbox/aaniDSrU3bGw3tVF/images/logo-light.svg?fit=max\u0026auto=format\u0026n=aaniDSrU3bGw3tVF\u0026q=85\u0026s=9c78bb2fa07583fc6ecde5be51f5aa28\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.opencomputer.dev#website\",\"name\":\"OpenComputer\",\"url\":\"https://docs.opencomputer.dev\",\"publisher\":{\"@id\":\"https://docs.opencomputer.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.opencomputer.dev/self-hosting/offload#webpage\",\"url\":\"https://docs.opencomputer.dev/self-hosting/offload\",\"name\":\"Build offload (AWS)\",\"description\":\"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\",\"dateModified\":\"2026-11-30T01:43:00.689Z\",\"isPartOf\":{\"@id\":\"https://docs.opencomputer.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.opencomputer.dev/self-hosting/offload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.opencomputer.dev/self-hosting/offload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Self-hosting\",\"item\":\"https://docs.opencomputer.dev/self-hosting/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build offload (AWS)\",\"item\":\"https://docs.opencomputer.dev/self-hosting/offload\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.opencomputer.dev/self-hosting/offload#article\",\"headline\":\"Build offload (AWS)\",\"name\":\"Build offload (AWS)\",\"description\":\"Run heavy builds from a single-VM host in short-lived AWS Lambda MicroVMs\",\"url\":\"https://docs.opencomputer.dev/self-hosting/offload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.opencomputer.dev/self-hosting/offload#webpage\"},\"dateModified\":\"2026-11-30T01:43:00.689Z\",\"publisher\":{\"@id\":\"https://docs.opencomputer.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.opencomputer.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpenComputer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OpenComputer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/self-hosting/offload.md","siteName":"OpenComputer","nav":{"global":null,"groups":[{"group":"Getting started","pages":[{"title":"What is OpenComputer","href":"/getting-started/introduction"},{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"Architecture","href":"/getting-started/architecture"}]},{"group":"Use in Slack","pages":[{"title":"Threads","href":"/slack/threads"},{"title":"Shared threads","href":"/slack/shared-threads"},{"title":"Linked and spawned threads","href":"/slack/linked-and-spawned-threads"},{"title":"Mid-turn messages","href":"/slack/mid-turn-messages"},{"title":"Permission modes","href":"/slack/permission-modes"},{"title":"Approvals, questions and plans","href":"/slack/approvals-questions-plans"},{"title":"Subagents","href":"/slack/subagents"},{"title":"Files and cards","href":"/slack/files-and-cards"},{"title":"Browser, screenshots and video","href":"/slack/browser-screenshots-video"},{"title":"Branches and pull requests","href":"/slack/branches-and-pull-requests"},{"title":"Preview URLs","href":"/slack/preview-urls"},{"title":"Models and harnesses","href":"/slack/models-and-harnesses"},{"title":"Secrets and variables","href":"/slack/secrets-and-variables"},{"title":"Troubleshooting","href":"/slack/troubleshooting"}]},{"group":"Self-hosting","pages":[{"title":"Start here","href":"/self-hosting/overview"},{"title":"On Azure","href":"/self-hosting/azure"},{"title":"On AWS","href":"/self-hosting/aws"},{"title":"On Google Cloud","href":"/self-hosting/gcp"},{"title":"Single VM","description":"Run @computer on one Ubuntu VM with Podman, for a quick proof of concept or for one practitioner","href":"/self-hosting/single-vm"},{"title":"Build offload (AWS)","href":"/self-hosting/offload"},{"title":"Enterprise Edition","description":"What the Enterprise Edition adds to a self-hosted @computer, and how to get a license","href":"/self-hosting/enterprise"}]},{"group":"API and CLI","pages":[{"title":"Overview","href":"/api/overview"},{"title":"Sessions","href":"/api/sessions"},{"title":"Turns","href":"/api/turns"},{"title":"Events","href":"/api/events"},{"title":"Live","href":"/api/live"},{"title":"Asks","href":"/api/asks"},{"title":"Subagents","href":"/api/subagents"},{"title":"Terminals","href":"/api/terminals"},{"title":"Files","href":"/api/files"},{"title":"opc CLI","href":"/api/cli"}]},{"group":"Reference","pages":[{"title":"Slack commands","href":"/reference/slack-commands"},{"title":"Agent tools","href":"/reference/agent-tools"},{"title":"Configuration","href":"/reference/configuration"},{"title":"Limits and defaults","href":"/reference/limits"},{"title":"API schema","href":"/reference/api-schema"}]},{"group":"Serverless Agents","pages":[{"group":"Getting started","pages":[{"title":"Serverless Agents","href":"/agents/overview"},{"title":"How it works","href":"/agents/mental-model"},{"title":"Quickstart","href":"/agents/quickstart"},{"title":"Projects and agents","href":"/agents/projects"}]},{"group":"Concepts","pages":[{"title":"Reactive agents","href":"/agents/reactive-agents"},{"title":"Sessions and turns","href":"/agents/sessions"},{"title":"Memory","href":"/agents/memory"},{"title":"Database","href":"/agents/database"},{"title":"Schedules","href":"/agents/schedules"},{"title":"Agent webhooks","href":"/agents/webhooks"},{"title":"Agent capabilities","href":"/agents/capabilities"},{"title":"Secrets and runtime variables","href":"/agents/secrets"},{"title":"Connected services","href":"/agents/services"},{"title":"GitHub App connections","href":"/agents/github"},{"title":"Slack connections","href":"/agents/slack"},{"title":"Linear connections","href":"/agents/linear"},{"title":"Bring your own model account (BYOK)","href":"/agents/byok"},{"title":"Deployments and environments","href":"/agents/deployments"},{"title":"Regions","href":"/agents/regions"},{"title":"Outbound network","href":"/agents/egress"}]},{"group":"Build an application","pages":[{"title":"React integration","href":"/agents/react"},{"title":"Serverless Agents client","href":"/reference/typescript-sdk/agents"},{"title":"Management API","href":"/agents/api"},{"title":"Session events","href":"/agents/events"}]},{"group":"Agent API","pages":[{"title":"Agent hooks","href":"/agents/hooks"},{"title":"Inputs","href":"/agents/inputs"},{"title":"Models","href":"/agents/models"},{"title":"Tools","href":"/agents/tools"},{"title":"MCP servers","href":"/agents/mcp"},{"title":"Skills","href":"/agents/skills"},{"title":"Session data","href":"/agents/session-data"},{"title":"Document memory","href":"/agents/document-memory"},{"title":"Memory providers","href":"/agents/memory-providers"}]},{"group":"Test and operate","pages":[{"title":"Playground and debugging","href":"/agents/playground"},{"title":"Logs","href":"/agents/logs"}]},{"group":"Examples","pages":[{"title":"GTM engineer","href":"/agents/examples/gtm-engineer"},{"title":"Feature flag hygiene","href":"/agents/examples/feature-flag-hygiene"},{"title":"A coding agent in Slack","href":"/agents/examples/slack-coder"},{"title":"Pull Request Reviewer","href":"/agents/examples/pr-review"},{"title":"Add high-value regression tests","href":"/agents/examples/test-coverage"}]}]}]},"basePath":"","title":"Build offload (AWS) - OpenComputer","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}