Understand operations, processes, client waits, event streams, and saved images.
An operation starts fresh compute from an image and runs a primary process. When that process ends, the service stops any remaining subprocesses and finishes the operation. A regular SDK session uses one operation per command. The default lazy session keeps an operation alive and runs commands as subprocesses until it snapshots.To reuse changed files after compute stops, save a filesystem image. A lazy session does this on snapshot(), idle timeout, or normal context exit; a regular session saves non-disposable commands before returning. Use the saved image UUID as the next starting point. Saving an image stops the runtime.
Lifecycle
For example, one operation can install dependencies and save an image. The next starts from those installed files on fresh compute. A server started during installation must be started again if the next operation needs it.The primary process determines when finalization begins. Additional subprocesses share its VM, filesystem, resources, and operation lifetime. A subprocess result does not create a separate image.
Operation states
The public operation API exposes these states:
State
Meaning for a caller
PENDING
The operation is waiting to be assigned.
ASSIGNED
Resources have been assigned; execution may be starting.
EXECUTING
The operation is running. Wait for an application readiness signal before starting a subprocess that depends on the primary workload.
SUCCESS
The service completed the operation. Inspect the process exit code, signal, timeout flag, output, and result image separately.
FAILED
The service could not complete the operation. Use the operation error and ID for diagnosis.
CANCELLED
Cancellation reached a terminal operation state. Inspect the response before assuming a result image exists.
SUCCESS is an operation state. A process can still report a nonzero exit code, signal, or timeout in its result. Check the process result before using its output or saved image.
Separate lifetimes
Client request or wait
A response, disconnect, or client-side limit ends the wait. Query the operation before submitting duplicate work.
SSE subscription
The stream can complete, fail, or disconnect independently of execution. Resume with the last fully processed event ID when supported, then inspect terminal status.
Operation compute
Compute ends when the primary workload finalizes, cancellation completes, or the platform fails the operation. Running processes, memory, and connections end with it.
Stored image
The image remains available until it is removed or reaches the applicable retention boundary. Reuse its immutable UUID only while the image is available.Do not treat a REST SSE disconnect as cancellation. Resume the stream or query the operation before deciding whether to retry. SDK 0.5.1 operation waits request remote cancellation if waiting fails or is cancelled. A failed or closed event iterator only stops that subscription; use cancel() to request cancellation. Handle transport disconnects, SDK wait failures, execution timeouts, and explicit cancellation as separate cases.
Results and recovery
SUCCESS with exit code 0
The command completed successfully. Inspect output and the returned image before continuing.
SUCCESS with a nonzero exit code
The service ran the command, which reported failure. Correct the command or input and start a new operation from a known image.
Process timed_out=true
The guest execution reached its configured limit. Inspect signal, exit state, output, and result-image fields. Do not assume timeout persistence.
CANCELLED
The operation stopped after cancellation. Confirm terminal status and result-image availability before retrying.
FAILED or a client exception
No normal successful operation result is available. Keep the operation ID and redacted error details; inspect status before retrying.Choose the next image using the result-image rules.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nebius Token Factory documentation","description":"Comprehensive Nebius Token Factory documentation: quickstart, API reference, model inference guides, fine-tuning, integrations \u0026 examples for seamless LLM deployment.","colors":{"primary":"#4C37DC","light":"#6057F7","dark":"#4C37DC"},"logo":{"light":"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Light.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=aaaf7203191be69af9622c9cb61e1b98","dark":"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Dark.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=96180f98bde0b68968fc43abb9112851"},"favicon":"https://mintcdn.com/nebius-723e8b65/o-_JxcbZvL-sB_4h/favicon.svg?fit=max\u0026auto=format\u0026n=o-_JxcbZvL-sB_4h\u0026q=85\u0026s=17d862a4d75224124e0b82336a568152","background":{"color":{"light":"#ffffff","dark":"#121215"}},"navbar":{"links":[{"href":"https://tokenfactory.nebius.com/?modals=contact-us","label":"Contact us"}],"primary":{"type":"button","label":"Nebius Token Factory","href":"https://tokenfactory.nebius.com/"}},"footer":{"socials":{"x":"https://x.com/nebiustf","github":"https://github.com/nebius/token-factory-cookbook","linkedin":"https://linkedin.com/company/nebius","discord":"https://discord.com/invite/WJ2DUQRz4m"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"LinkedIn","icon":"linkedin","href":"https://www.linkedin.com/company/nebius/"},{"anchor":"Discord Community","icon":"discord","href":"https://discord.com/invite/WJ2DUQRz4m"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/nebiustf"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nebius-723e8b65","hasAudioNarration":false,"actualSubdomain":"nebius-723e8b65","customDomains":["docs.tokenfactory.nebius.com"],"gitSource":{"type":"github","owner":"nebius","repo":"ai-studio-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0431b8c5fffd200d2740c8","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Guides","count":197},{"language":"default","tag":"Sandboxes","count":170},{"language":"default","tag":"API Reference","count":83},{"language":"default","tag":"Inference and Training","count":46},{"language":"default","tag":"Contree MCP","count":44},{"language":"default","tag":"Contree CLI","count":33},{"language":"default","tag":"Contree SDK","count":32},{"language":"default","tag":"Command Reference","count":22},{"language":"default","tag":"datasets","count":20},{"language":"default","tag":"Inference","count":19}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":false},"customCss":[]}
{"page":{"pagePath":"sandboxes/concepts/execution-lifecycle","slug":"/sandboxes/concepts/execution-lifecycle","pageMetadata":{"title":"Execution lifecycle","description":"Understand operations, processes, client waits, event streams, and saved images.","href":"/sandboxes/concepts/execution-lifecycle"},"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: \"Understand operations, processes, client waits, event streams, and saved images.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Mermaid,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`An operation starts fresh compute from an image and runs a primary process. When that process ends, the service stops any remaining subprocesses and finishes the operation. A regular SDK session uses one operation per command. The default lazy session keeps an operation alive and runs commands as subprocesses until it snapshots.`}),`\n`,_jsxs(_components.p,{children:[`To reuse changed files after compute stops, save a filesystem image. A lazy session does this on `,_jsx(_components.code,{children:`snapshot()`}),`, idle timeout, or normal context exit; a regular session saves non-disposable commands before returning. Use the saved image UUID as the next starting point. Saving an image stops the runtime.`]}),`\n`,_jsx(Heading,{level:`2`,id:`lifecycle`,children:`Lifecycle`}),`\n`,_jsx(Mermaid,{chart:`flowchart TB\n A[Input image] --> B[Choose save or discard]\n B --> C\n subgraph runtime[Temporary compute]\n C[Primary process runs]\n C --> D[Primary process ends]\n D --> E[Stop children\u003cbr/>and finalize]\n end\n E --> F[Output and result]\n F --> G{Saved image?}\n G -->|Yes| H[Reuse its UUID]\n G -->|No| I[No saved state]`}),`\n`,_jsx(_components.p,{children:`For example, one operation can install dependencies and save an image. The next starts from those installed files on fresh compute. A server started during installation must be started again if the next operation needs it.`}),`\n`,_jsx(_components.p,{children:`The primary process determines when finalization begins. Additional subprocesses share its VM, filesystem, resources, and operation lifetime. A subprocess result does not create a separate image.`}),`\n`,_jsx(Heading,{level:`2`,id:`operation-states`,children:`Operation states`}),`\n`,_jsx(_components.p,{children:`The public operation API exposes these states:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`State`}),_jsx(_components.th,{children:`Meaning for a caller`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PENDING`})}),_jsx(_components.td,{children:`The operation is waiting to be assigned.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ASSIGNED`})}),_jsx(_components.td,{children:`Resources have been assigned; execution may be starting.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXECUTING`})}),_jsx(_components.td,{children:`The operation is running. Wait for an application readiness signal before starting a subprocess that depends on the primary workload.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SUCCESS`})}),_jsx(_components.td,{children:`The service completed the operation. Inspect the process exit code, signal, timeout flag, output, and result image separately.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FAILED`})}),_jsx(_components.td,{children:`The service could not complete the operation. Use the operation error and ID for diagnosis.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCELLED`})}),_jsx(_components.td,{children:`Cancellation reached a terminal operation state. Inspect the response before assuming a result image exists.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`SUCCESS`}),` is an operation state. A process can still report a nonzero exit code, signal, or timeout in its result. Check the process result before using its output or saved image.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`separate-lifetimes`,children:`Separate lifetimes`}),`\n`,_jsx(Heading,{level:`3`,id:`client-request-or-wait`,children:`Client request or wait`}),`\n`,_jsx(_components.p,{children:`A response, disconnect, or client-side limit ends the wait. Query the operation before submitting duplicate work.`}),`\n`,_jsx(Heading,{level:`3`,id:`sse-subscription`,children:`SSE subscription`}),`\n`,_jsx(_components.p,{children:`The stream can complete, fail, or disconnect independently of execution. Resume with the last fully processed event ID when supported, then inspect terminal status.`}),`\n`,_jsx(Heading,{level:`3`,id:`operation-compute`,children:`Operation compute`}),`\n`,_jsx(_components.p,{children:`Compute ends when the primary workload finalizes, cancellation completes, or the platform fails the operation. Running processes, memory, and connections end with it.`}),`\n`,_jsx(Heading,{level:`3`,id:`stored-image`,children:`Stored image`}),`\n`,_jsx(_components.p,{children:`The image remains available until it is removed or reaches the applicable retention boundary. Reuse its immutable UUID only while the image is available.`}),`\n`,_jsxs(_components.p,{children:[`Do not treat a REST SSE disconnect as cancellation. Resume the stream or query the operation before deciding whether to retry. SDK 0.5.1 operation waits request remote cancellation if waiting fails or is cancelled. A failed or closed event iterator only stops that subscription; use `,_jsx(_components.code,{children:`cancel()`}),` to request cancellation. Handle transport disconnects, SDK wait failures, execution timeouts, and explicit cancellation as separate cases.`]}),`\n`,_jsx(Heading,{level:`2`,id:`results-and-recovery`,children:`Results and recovery`}),`\n`,_jsxs(Heading,{level:`3`,id:`success-with-exit-code-0`,children:[_jsx(_components.code,{children:`SUCCESS`}),` with exit code `,_jsx(_components.code,{children:`0`})]}),`\n`,_jsx(_components.p,{children:`The command completed successfully. Inspect output and the returned image before continuing.`}),`\n`,_jsxs(Heading,{level:`3`,id:`success-with-a-nonzero-exit-code`,children:[_jsx(_components.code,{children:`SUCCESS`}),` with a nonzero exit code`]}),`\n`,_jsx(_components.p,{children:`The service ran the command, which reported failure. Correct the command or input and start a new operation from a known image.`}),`\n`,_jsxs(Heading,{level:`3`,id:`process-timed_out=true`,children:[`Process `,_jsx(_components.code,{children:`timed_out=true`})]}),`\n`,_jsx(_components.p,{children:`The guest execution reached its configured limit. Inspect signal, exit state, output, and result-image fields. Do not assume timeout persistence.`}),`\n`,_jsx(Heading,{level:`3`,id:`cancelled`,children:_jsx(_components.code,{children:`CANCELLED`})}),`\n`,_jsx(_components.p,{children:`The operation stopped after cancellation. Confirm terminal status and result-image availability before retrying.`}),`\n`,_jsxs(Heading,{level:`3`,id:`failed-or-a-client-exception`,children:[_jsx(_components.code,{children:`FAILED`}),` or a client exception`]}),`\n`,_jsx(_components.p,{children:`No normal successful operation result is available. Keep the operation ID and redacted error details; inspect status before retrying.`}),`\n`,_jsxs(_components.p,{children:[`Choose the next image using the `,_jsx(_components.a,{href:`/sandboxes/concepts/images-checkpoints-and-branches#interpret-the-result-image`,children:`result-image rules`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`continue`,children:`Continue`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sandboxes/concepts/images-checkpoints-and-branches`,children:`Images, checkpoints, and branches`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sandboxes/concepts/sessions-and-execution-modes`,children:`Sessions and execution modes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sandboxes/guides/run-commands-and-results`,children:`Run commands and handle results`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sandboxes/guides/stream-output-and-events`,children:`Stream output and events`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sandboxes/guides/run-subprocesses-and-send-input`,children:`Run subprocesses and send input`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/sandboxes/operations/get-an-operation-status`,children:`Operation status reference`})}),`\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":{"config":{},"pageMetadata":{"title":"Execution lifecycle","description":"Understand operations, processes, client waits, event streams, and saved images.","href":"/sandboxes/concepts/execution-lifecycle"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Lifecycle","slug":"lifecycle","depth":2,"children":[]},{"title":"Operation states","slug":"operation-states","depth":2,"children":[]},{"title":"Separate lifetimes","slug":"separate-lifetimes","depth":2,"children":[{"title":"Client request or wait","slug":"client-request-or-wait","depth":3,"children":[]},{"title":"SSE subscription","slug":"sse-subscription","depth":3,"children":[]},{"title":"Operation compute","slug":"operation-compute","depth":3,"children":[]},{"title":"Stored image","slug":"stored-image","depth":3,"children":[]}]},{"title":"Results and recovery","slug":"results-and-recovery","depth":2,"children":[{"title":"SUCCESS with exit code 0","slug":"success-with-exit-code-0","depth":3,"children":[]},{"title":"SUCCESS with a nonzero exit code","slug":"success-with-a-nonzero-exit-code","depth":3,"children":[]},{"title":"Process timed_out=true","slug":"process-timed_out=true","depth":3,"children":[]},{"title":"CANCELLED","slug":"cancelled","depth":3,"children":[]},{"title":"FAILED or a client exception","slug":"failed-or-a-client-exception","depth":3,"children":[]}]},{"title":"Continue","slug":"continue","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nebius-723e8b65/6229d1e239953167/global.js"],"subdomain":"nebius-723e8b65","siteName":"Nebius Token Factory documentation","title":"Execution lifecycle - Nebius Token Factory documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T12:00:02.466Z","originalFileLocation":"sandboxes/concepts/execution-lifecycle.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=\"Understand operations, processes, client waits, event streams, and saved images.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Execution lifecycle - Nebius Token Factory documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand operations, processes, client waits, event streams, and saved images.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nebius-723e8b65.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Execution+lifecycle\u0026amp;description=Understand+operations%2C+processes%2C+client+waits%2C+event+streams%2C+and+saved+images.\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=eb1bac4a438d1ce94154bd5ca818d2d359244d0b0b7d5c50e8e067bcb459aa15\">\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=\"Execution lifecycle - Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand operations, processes, client waits, event streams, and saved images.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nebius-723e8b65.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Execution+lifecycle\u0026amp;description=Understand+operations%2C+processes%2C+client+waits%2C+event+streams%2C+and+saved+images.\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=eb1bac4a438d1ce94154bd5ca818d2d359244d0b0b7d5c50e8e067bcb459aa15\">\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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4C37DC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sandboxes/concepts/execution-lifecycle.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\",\"name\":\"Nebius Token Factory documentation\",\"url\":\"https://docs.tokenfactory.nebius.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Light.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=aaaf7203191be69af9622c9cb61e1b98\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tokenfactory.nebius.com#website\",\"name\":\"Nebius Token Factory documentation\",\"url\":\"https://docs.tokenfactory.nebius.com\",\"publisher\":{\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle#webpage\",\"url\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle\",\"name\":\"Execution lifecycle\",\"description\":\"Understand operations, processes, client waits, event streams, and saved images.\",\"dateModified\":\"2026-11-16T12:00:02.466Z\",\"isPartOf\":{\"@id\":\"https://docs.tokenfactory.nebius.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sandboxes\",\"item\":\"https://docs.tokenfactory.nebius.com/sandboxes/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Execution lifecycle\",\"item\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle#article\",\"headline\":\"Execution lifecycle\",\"name\":\"Execution lifecycle\",\"description\":\"Understand operations, processes, client waits, event streams, and saved images.\",\"url\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tokenfactory.nebius.com/sandboxes/concepts/execution-lifecycle#webpage\"},\"dateModified\":\"2026-11-16T12:00:02.466Z\",\"publisher\":{\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tokenfactory.nebius.com#website\"}}]}\u003c/script>","agentPointerHref":"/sandboxes/concepts/execution-lifecycle.md","siteName":"Nebius Token Factory documentation","nav":{"global":{"anchors":[{"anchor":"LinkedIn","icon":"linkedin","href":"https://www.linkedin.com/company/nebius/"},{"anchor":"Discord Community","icon":"discord","href":"https://discord.com/invite/WJ2DUQRz4m"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/nebiustf"}]},"tabs":[{"tab":"Guides","pages":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"play","href":"/quickstart"},{"title":"Switch to Token Factory","icon":"arrow-down-arrow-up","href":"/switch"}]},{"group":"Inference","pages":[{"title":"Overview","icon":"book-open-lines","href":"/ai-models-inference/overview"},{"group":"Dedicated Endpoint","icon":"circle-dot","expanded":true,"pages":[{"title":"Overview","href":"/ai-models-inference/dedicated-endpoints/overview"},{"group":"Quick Start","pages":[{"title":"Quickstart","href":"/ai-models-inference/dedicated-endpoints/quickstart"},{"title":"Quickstart: Deploy via API","icon":"code","href":"/ai-models-inference/dedicated-endpoints/deploy-api"},{"title":"Quickstart: Deploy in UI","icon":"arrow-pointer","href":"/ai-models-inference/dedicated-endpoints/deploy-ui"}]},{"group":"Core Concepts","pages":[{"title":"Control \u0026 Data Plane","href":"/ai-models-inference/dedicated-endpoints/control-data-plane"},{"title":"Capacity, availability, and service guarantees","href":"/ai-models-inference/dedicated-endpoints/capacity-and-scaling"},{"title":"Billing Policy","href":"/ai-models-inference/dedicated-endpoints/billing-policy"},{"title":"Lifecycle \u0026 Readiness Status","href":"/ai-models-inference/dedicated-endpoints/lifecycle-and-status"},{"title":"Operating Dedicated Endpoint","href":"/ai-models-inference/dedicated-endpoints/operating"}]},{"title":"Best Practices","href":"/ai-models-inference/dedicated-endpoints/best-practice"},{"title":"Custom model weights","href":"/ai-models-inference/dedicated-endpoints/custom-weights"},{"title":"FAQ \u0026 Troubleshooting","href":"/ai-models-inference/dedicated-endpoints/faq"}]},{"title":"Function calling \u0026 Tools","icon":"function","href":"/ai-models-inference/function-calling"},{"title":"Structured output \u0026 JSON","sidebarTitle":"Structured output \u0026 JSON","icon":"brackets-curly","href":"/ai-models-inference/json"},{"title":"Rate Limits \u0026 Scaling","icon":"arrow-trend-up","href":"/ai-models-inference/rate-limits"},{"title":"UI \u0026 Playground","sidebarTitle":"UI \u0026 Playground","icon":"message","href":"/ai-models-inference/playground"},{"title":"Generating consistent images with LoRA adapters","icon":"image","hidden":true,"href":"/ai-models-inference/image-lora"},{"title":"Сustom model weights management","hidden":true,"icon":"weight-hanging","href":"/ai-models-inference/model-weights-management"},{"title":"Public Serverless Endpoints","icon":"circle-small","href":"/public-serverless"},{"title":"Cached Tokens","icon":"hexagon-nodes-bolt","href":"/cached-tokens"}]},{"group":"Observability","pages":[{"title":"Inference Observability","icon":"chart-column","href":"/ai-models-inference/observability"},{"title":"Observability API integrations","icon":"chart-network","href":"/ai-models-inference/observability-api-integrations"}]},{"group":"Post-training","pages":[{"title":"Overview","icon":"book-open-lines","href":"/post-training/overview"},{"title":" Dataset formats for fine-tuning","sidebarTitle":"Datasets","icon":"table","href":"/post-training/datasets"},{"title":"Models for fine-tuning in Nebius Token Factory","sidebarTitle":"Models","icon":"list-ul","href":"/post-training/models"},{"title":"Supervised Finetuning ","icon":"layer-group","href":"/post-training/how-to-fine-tune"},{"title":"Custom speculator","icon":"forward-fast","href":"/post-training/custom-speculator"},{"title":"Merging LoRA Adapters","icon":"merge","href":"/post-training/merge-moe-lora-weights"}]},{"group":"Data Lab","pages":[{"title":"Overview","icon":"book-open-lines","href":"/data-lab/overview"},{"title":"Import Chat Completions","icon":"upload","href":"/data-lab/chat-completions"},{"title":"Fine-tuning","icon":"layer-group","href":"/data-lab/fine-tuning"},{"title":"Data Processing","icon":"table","href":"/data-lab/data-processing"},{"title":"Datasets","icon":"folder-arrow-up","href":"/data-lab/datasets"}]},{"group":"Sandboxes","pages":[{"title":"Sandboxes overview","icon":{"name":"book-open-lines","style":"regular","library":"fontawesome"},"href":"/sandboxes/overview"},{"group":"Get started","icon":"circle-user-circle-question","pages":[{"title":"Set up access","href":"/sandboxes/start/set-up-access"},{"title":"Python quickstart","href":"/sandboxes/start/python-quickstart"},{"title":"CLI quickstart","href":"/sandboxes/start/cli-quickstart"},{"title":"Choose an interface","description":"Choose between the Python SDK, REST API, CLI, and MCP for a Sandboxes workflow.","href":"/sandboxes/start/choose-an-interface"}]},{"group":"Concepts","icon":"box-isometric","pages":[{"title":"Execution lifecycle","href":"/sandboxes/concepts/execution-lifecycle"},{"title":"Images, checkpoints, and branches","description":"Save filesystem state deliberately and start independent work from immutable images.","href":"/sandboxes/concepts/images-checkpoints-and-branches"},{"title":"Inspect images without starting a VM","href":"/sandboxes/concepts/inspect-images"},{"title":"Sessions and execution modes","href":"/sandboxes/concepts/sessions-and-execution-modes"}]},{"group":"Guides","icon":"paper-plane","pages":[{"title":"Run commands and handle results","href":"/sandboxes/guides/run-commands-and-results"},{"title":"Stream output and events","href":"/sandboxes/guides/stream-output-and-events"},{"title":"Run subprocesses and send input","href":"/sandboxes/guides/run-subprocesses-and-send-input"},{"title":"Prepare and reuse environments","href":"/sandboxes/guides/prepare-and-reuse-environments"},{"title":"Work with files and artifacts","href":"/sandboxes/guides/work-with-files-and-artifacts"},{"title":"Branch, compare, and recover","href":"/sandboxes/guides/branch-compare-and-recover"},{"title":"Configure networking and secrets","href":"/sandboxes/guides/configure-networking-and-secrets"},{"title":"Run concurrent workloads","href":"/sandboxes/guides/run-concurrent-workloads"}]},{"group":"Cookbook","icon":"book-spells","pages":[{"title":"Sandboxes cookbook","href":"/sandboxes/cookbook/index"},{"title":"Prepare once, reuse safely","href":"/sandboxes/cookbook/prepare-once-reuse-safely"},{"title":"Stream a build or test run","href":"/sandboxes/cookbook/stream-a-build-or-test-run"},{"title":"Interact with a process during an operation","href":"/sandboxes/cookbook/interact-with-a-process"},{"title":"Try two coding fixes and keep the passing branch","href":"/sandboxes/cookbook/try-two-coding-fixes"},{"title":"Generate and download a binary artifact","href":"/sandboxes/cookbook/generate-and-download-binary-artifact"},{"title":"Build and refresh a reusable custom environment","href":"/sandboxes/cookbook/build-reusable-custom-environment"},{"title":"Prepare inputs, then verify with networking disabled","href":"/sandboxes/cookbook/verify-with-networking-disabled"},{"title":"Run a bounded evaluation batch","href":"/sandboxes/cookbook/run-bounded-evaluation-batch"},{"title":"Recover from a known-good image","href":"/sandboxes/cookbook/recover-from-known-good-image"}]},{"group":"Operate","icon":"message-exclamation","pages":[{"title":"Troubleshooting","href":"/sandboxes/operate/troubleshooting"},{"title":"Limits, retention, and usage","href":"/sandboxes/operate/limits-retention-and-usage"},{"title":"Security and data handling","href":"/sandboxes/operate/security-and-data-handling"},{"title":"Update images and clients","href":"/sandboxes/operate/update-images-and-clients"}]},{"title":"Reference map and compatibility","icon":{"name":"file-text","style":"regular","library":"fontawesome"},"href":"/sandboxes/reference/index"},{"title":"Sandboxes for SWE agents","icon":"robot","href":"/sandboxes/swe-agents"},{"group":"Contree SDK","pages":[{"icon":"book-open-lines","title":"ConTree SDK","href":"/sandboxes/sdk/index"},{"group":"Start here","pages":[{"icon":"hand-wave","title":"Your first sandbox","href":"/sandboxes/sdk/python_sdk/getting-started"},{"icon":"layer-group","title":"Import a Docker image","href":"/sandboxes/sdk/python_sdk/images"},{"icon":"file-code","title":"Build a Docker image","href":"/sandboxes/sdk/python_sdk/building-images"},{"group":"Advanced usage","pages":[{"icon":"sliders","title":"Advanced usage","href":"/sandboxes/sdk/python_sdk/advanced"},{"title":"Advanced: assemble a sandbox yourself","href":"/sandboxes/sdk/python_sdk/manual-sandbox"}]}]},{"group":"Work with a Session","pages":[{"icon":"terminal","title":"Work with a Session","href":"/sandboxes/sdk/python_sdk/session-model"},{"icon":"code-branch","title":"Branch, switch, and roll back","href":"/sandboxes/sdk/python_sdk/branching"},{"icon":"database","title":"Save and resume a session","href":"/sandboxes/sdk/python_sdk/sessions"},{"icon":"file-arrow-up","title":"Work with sandbox files","href":"/sandboxes/sdk/python_sdk/files"},{"icon":"diagram-project","title":"Advanced: control a running sandbox","href":"/sandboxes/sdk/python_sdk/operation"},{"title":"Advanced: resume a background operation","href":"/sandboxes/sdk/python_sdk/detached-operations"},{"title":"Reuse uploads and retain their sources","href":"/sandboxes/sdk/python_sdk/caching"}]},{"group":"Integrations","pages":[{"icon":"robot","title":"LangChain DeepAgents","href":"/sandboxes/sdk/integrations/langchain"},{"title":"Run Harbor on ConTree","href":"/sandboxes/sdk/integrations/harbor"},{"icon":"robot","title":"mini-swe-agent","href":"/sandboxes/sdk/integrations/mini-swe-agent"}]},{"group":"Advanced Usage","pages":[{"title":"Implement a custom Store","href":"/sandboxes/sdk/python_sdk/custom-store"},{"title":"Customize the SDK","href":"/sandboxes/sdk/python_sdk/customization"},{"title":"SDK migration guide","href":"/sandboxes/sdk/python_sdk/migration"},{"icon":"triangle-exclamation","title":"Handle failures and unexpected state","href":"/sandboxes/sdk/python_sdk/troubleshooting"}]},{"group":"Reference and development","pages":[{"group":"API reference","pages":[{"title":"API reference","href":"/sandboxes/sdk/python_sdk/reference/index"},{"title":"Sessions and operations","href":"/sandboxes/sdk/python_sdk/reference/session"},{"title":"Sandbox factories","href":"/sandboxes/sdk/python_sdk/reference/sandbox"},{"title":"Image helpers","href":"/sandboxes/sdk/python_sdk/reference/images"},{"title":"File transfer","href":"/sandboxes/sdk/python_sdk/reference/files"},{"title":"Tree stores","href":"/sandboxes/sdk/python_sdk/reference/store"},{"title":"Dockerfile builders","href":"/sandboxes/sdk/python_sdk/reference/docker"},{"title":"Caches and upload sources","href":"/sandboxes/sdk/python_sdk/reference/cache"},{"title":"Execution contracts","href":"/sandboxes/sdk/python_sdk/reference/execution"},{"title":"deepagents sandboxes","href":"/sandboxes/sdk/python_sdk/reference/langchain"},{"title":"SDK exceptions","href":"/sandboxes/sdk/python_sdk/reference/exceptions"}]},{"title":"Develop and test the documentation","href":"/sandboxes/sdk/contributing"}]}]},{"group":"Contree CLI","pages":[{"icon":"book-open-lines","title":"Overview","href":"/sandboxes/cli/index"},{"group":"Tutorial","pages":[{"icon":"graduation-cap","title":"Tutorial","href":"/sandboxes/cli/tutorial/index"},{"icon":"download","title":"Install \u0026 Authenticate","href":"/sandboxes/cli/tutorial/installation"},{"icon":"rocket","title":"Your First Sandbox","href":"/sandboxes/cli/tutorial/first-steps"},{"icon":"terminal","title":"Interactive Shell","href":"/sandboxes/cli/tutorial/shell"},{"icon":"code-branch","title":"Sessions, Branches \u0026 Rollback","href":"/sandboxes/cli/tutorial/sessions"},{"icon":"folder-open","title":"Working with Files","href":"/sandboxes/cli/tutorial/files"},{"icon":"layer-group","title":"Images \u0026 Tags","href":"/sandboxes/cli/tutorial/images"},{"icon":"hammer","title":"Building from a Dockerfile","href":"/sandboxes/cli/tutorial/build"},{"icon":"gears","title":"Scripting \u0026 Automation","href":"/sandboxes/cli/tutorial/workflows"},{"icon":"gear","title":"Configuration \u0026 Profiles","href":"/sandboxes/cli/tutorial/configuration"}]},{"group":"Command Reference","pages":[{"icon":"book-open-cover","title":"Command Reference","href":"/sandboxes/cli/commands/index"},{"icon":"key","title":"auth - Configure credentials and profiles","href":"/sandboxes/cli/commands/auth"},{"icon":"cube","title":"use - Choose an image for the session","href":"/sandboxes/cli/commands/use"},{"icon":"play","title":"run - Execute a command in the sandbox","href":"/sandboxes/cli/commands/run"},{"icon":"hammer","title":"build - Build an image from a Dockerfile","href":"/sandboxes/cli/commands/build"},{"icon":"layer-group","title":"images - List and import images","href":"/sandboxes/cli/commands/images"},{"icon":"tag","title":"tag - Tag or untag an image","href":"/sandboxes/cli/commands/tag"},{"icon":"spinner","title":"operation - Manage operations","href":"/sandboxes/cli/commands/operation"},{"icon":"list","title":"ps - List activity","href":"/sandboxes/cli/commands/ps"},{"icon":"magnifying-glass","title":"show - Inspect an operation","href":"/sandboxes/cli/commands/show"},{"icon":"circle-xmark","title":"kill - Cancel operations","href":"/sandboxes/cli/commands/kill"},{"icon":"list-ul","title":"ls - List files in the image","href":"/sandboxes/cli/commands/ls"},{"icon":"file-lines","title":"cat - Show file content from the image","href":"/sandboxes/cli/commands/cat"},{"icon":"binoculars","title":"grep - Search file contents in the image","href":"/sandboxes/cli/commands/grep"},{"icon":"copy","title":"cp - Download a file from the image","href":"/sandboxes/cli/commands/cp"},{"icon":"folder","title":"cd - Change session working directory","href":"/sandboxes/cli/commands/cd"},{"icon":"leaf","title":"env - Manage session environment variables","href":"/sandboxes/cli/commands/env"},{"icon":"file","title":"file - Stage file edits for the next run","href":"/sandboxes/cli/commands/file"},{"icon":"clock","title":"session - Manage sessions, branches, history","href":"/sandboxes/cli/commands/session"},{"icon":"terminal","title":"shell - Interactive REPL","href":"/sandboxes/cli/commands/shell"},{"icon":"wand-magic-sparkles","title":"skill - Install agent skills","href":"/sandboxes/cli/commands/skill"},{"icon":"robot","title":"agent - Coding-agent manual","href":"/sandboxes/cli/commands/agent"}]}]},{"group":"Contree MCP","pages":[{"icon":"book-open-lines","title":"Overview","href":"/sandboxes/mcp/index"},{"icon":"rocket","title":"Quickstart","href":"/sandboxes/mcp/quickstart"},{"icon":"database","title":"Resources","href":"/sandboxes/mcp/resources"},{"icon":"shapes","title":"Patterns","href":"/sandboxes/mcp/patterns"},{"icon":"clipboard-list","title":"Cheatsheet","href":"/sandboxes/mcp/cheatsheet"},{"icon":"shield-halved","title":"Reporting Security Issues","href":"/sandboxes/mcp/security"},{"group":"Concepts","pages":[{"icon":"lightbulb","title":"Concepts","href":"/sandboxes/mcp/concepts/index"},{"icon":"layer-group","title":"Core Concepts","href":"/sandboxes/mcp/concepts/core"},{"icon":"diagram-project","title":"Workflows","href":"/sandboxes/mcp/concepts/workflows"}]},{"group":"Tools Reference","pages":[{"icon":"screwdriver-wrench","title":"Tools Reference","href":"/sandboxes/mcp/tools/index"},{"icon":"play","title":"run","href":"/sandboxes/mcp/tools/run"},{"icon":"arrows-rotate","title":"rsync","href":"/sandboxes/mcp/tools/rsync"},{"icon":"file-import","title":"import_image","href":"/sandboxes/mcp/tools/import_image"},{"icon":"ticket","title":"registry_token_obtain","href":"/sandboxes/mcp/tools/registry_token_obtain"},{"icon":"key","title":"registry_auth","href":"/sandboxes/mcp/tools/registry_auth"},{"icon":"images","title":"list_images","href":"/sandboxes/mcp/tools/list_images"},{"icon":"image","title":"get_image","href":"/sandboxes/mcp/tools/get_image"},{"icon":"tag","title":"set_tag","href":"/sandboxes/mcp/tools/set_tag"},{"icon":"upload","title":"upload","href":"/sandboxes/mcp/tools/upload"},{"icon":"download","title":"download","href":"/sandboxes/mcp/tools/download"},{"icon":"folder-open","title":"list_files","href":"/sandboxes/mcp/tools/list_files"},{"icon":"file-lines","title":"read_file","href":"/sandboxes/mcp/tools/read_file"},{"icon":"magnifying-glass","title":"grep","href":"/sandboxes/mcp/tools/grep"},{"icon":"magnifying-glass","title":"get_operation","href":"/sandboxes/mcp/tools/get_operation"},{"icon":"list-check","title":"list_operations","href":"/sandboxes/mcp/tools/list_operations"},{"icon":"hourglass-half","title":"wait_operations","href":"/sandboxes/mcp/tools/wait_operations"},{"icon":"ban","title":"cancel_operation","href":"/sandboxes/mcp/tools/cancel_operation"},{"icon":"circle-question","title":"get_guide","href":"/sandboxes/mcp/tools/get_guide"}]},{"group":"Prompts Reference","pages":[{"icon":"comments","title":"Prompts Reference","href":"/sandboxes/mcp/prompts/index"},{"icon":"gear","title":"prepare-environment","href":"/sandboxes/mcp/prompts/prepare-environment"},{"icon":"terminal","title":"run-python","href":"/sandboxes/mcp/prompts/run-python"},{"icon":"terminal","title":"run-shell","href":"/sandboxes/mcp/prompts/run-shell"},{"icon":"rotate","title":"sync-and-run","href":"/sandboxes/mcp/prompts/sync-and-run"},{"icon":"box-open","title":"install-packages","href":"/sandboxes/mcp/prompts/install-packages"},{"icon":"code-fork","title":"parallel-tasks","href":"/sandboxes/mcp/prompts/parallel-tasks"},{"icon":"hammer","title":"build-project","href":"/sandboxes/mcp/prompts/build-project"},{"icon":"bug","title":"debug-failure","href":"/sandboxes/mcp/prompts/debug-failure"},{"icon":"magnifying-glass","title":"inspect-image","href":"/sandboxes/mcp/prompts/inspect-image"},{"icon":"layer-group","title":"multi-stage-build","href":"/sandboxes/mcp/prompts/multi-stage-build"}]},{"group":"Integration","pages":[{"icon":"plug","title":"Integration","href":"/sandboxes/mcp/integration/index"},{"icon":"sliders","title":"Configuration","href":"/sandboxes/mcp/integration/configuration"},{"icon":"triangle-exclamation","title":"Troubleshooting","href":"/sandboxes/mcp/integration/troubleshooting"}]},{"group":"Reference","pages":[{"icon":"book","title":"Reference","href":"/sandboxes/mcp/reference/index"},{"icon":"book-bookmark","title":"Glossary","href":"/sandboxes/mcp/reference/glossary"}]}]}]},{"group":"Teams \u0026 Access Management","pages":[{"title":"Overview","icon":"book-open-lines","href":"/team-access/overview"},{"title":"Groups \u0026 Access management","icon":"user-group","href":"/team-access/groups"},{"title":"User Invitations","icon":"user-plus","href":"/team-access/invitations"},{"title":"Organizations and Projects","icon":"buildings","href":"/team-access/org-projects"},{"title":"Configure Single Sign-On","icon":"user-key","href":"/team-access/sso"}]},{"group":"Other Capabilities","pages":[{"title":"Enterprise","icon":"suitcase","hidden":true,"href":"/other-capabilities/enterprise"},{"title":"Billing \u0026 Consumption","icon":"money-bill","href":"/other-capabilities/billing-new"},{"title":"Prompt presets","sidebarTitle":"Prompt presets","icon":"file-pen","href":"/utilities/prompt-presets"},{"title":"Support tickets: sending questions, bug reports and feature requests ","hidden":true,"href":"/utilities/support-tickets-sending"},{"icon":{"name":"bell","style":"regular","library":"fontawesome"},"title":"Notifications and Subscription","href":"/notifications-and-subscription"}]},{"group":"Integrations","pages":[{"title":"Overview","icon":"book-open-lines","href":"/integrations/overview"}]},{"group":"Platform Notices","pages":[{"group":"Deprecations","icon":"bullhorn","pages":[{"title":"Model Deprecations: December 2026","sidebarTitle":"December 2026","href":"/model-deprecations-december-2026"},{"title":"Model Deprecations: November 2026","sidebarTitle":"November 2026","href":"/november-2026-deprecation-notice"},{"title":"Model Deprecations: August 2026","sidebarTitle":"August 2026","href":"/august-2026-deprecation-notice"},{"title":"Model Deprecations: June 2026","sidebarTitle":"June 2026","href":"/june-2026-deprecation-notice"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal/terms-of-service"}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/cookbook/overview"}]}]},"basePath":"","title":"Execution lifecycle - Nebius Token Factory documentation","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}