When you create an agent, the runtime environment from your original chat session is automatically saved. This means any packages you installed, files you created, or tools you configured are available every time the agent runs — no setup needed.
The runtime environment is captured as a snapshot and reused across all runs of the agent — no setup needed on later runs.
When you create an agent from a chat session, the super agent captures the full state of your workspace at that moment — installed packages, generated files, and configuration. Every future run of that agent starts from this saved state instead of a blank environment.For example, if your chat session installed pandas, matplotlib, and seaborn to generate charts, every future run of the agent will have those packages pre-installed. The super agent doesn’t need to reinstall them each time.
Over time, you may want to add new packages or change the configuration for an existing agent. Use the Update Environment button on the agent detail page.
1
Open the agent detail page
Navigate to your agent from the Agents page in the sidebar.
2
Click Update Environment
The Update Environment button is in the top-right corner of the agent detail page. This opens a new chat session with your agent’s current environment pre-loaded.
The Update Environment button on the agent detail page
3
Make your changes
Ask the super agent to install packages, update tools, or make any changes you need. For example:
Install the seaborn and plotly packages
The super agent will list the current environment and help you make changes.
4
Save to Agent
When you’re done, click the Save to Agent button in the blue banner at the top of the chat. This captures the updated environment for all future runs.
The environment setup banner with the Save to Agent button
The “Save to Agent” button persists across page refreshes and navigation — you can install packages across multiple messages before saving.
When you use Update Environment, a session is created in the agent’s session history with the Env Setup label. These sessions are separate from regular agent runs so you can easily distinguish environment maintenance from actual usage.
If the saved environment becomes unavailable for any reason, the agent automatically falls back to the default runtime environment. Your agent’s skill and configuration still work — you may just need to re-install any custom packages.
When running an agent, any packages installed during that run are not saved back to the environment. Only the Update Environment flow and the original agent creation capture the environment. This keeps agent runs clean and reproducible.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CREAO Documentation","colors":{"primary":"#000000","light":"#666666","dark":"#333333"},"logo":{"light":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/light.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=c85112c81c4c08190781587305b2c952","dark":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/dark.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=569d79e8794145f8bb87aa5a5dde7cc7"},"favicon":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/favicon.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=1a8f63e36d68f08b47fab42c4fe0e7e2","api":{"playground":{"display":"simple"},"examples":{"defaults":"required","languages":["bash","node","python"],"prefill":true}},"navbar":{"links":[],"primary":{"type":"button","label":"Try CREAO","href":"https://agent.creao.ai"}},"footer":{"socials":{"x":"https://x.com/CreaoAI","linkedin":"https://www.linkedin.com/company/creaoai","discord":"https://discord.gg/VPNExXcP9W"}},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"CREAO","icon":"rocket","href":"https://agent.creao.ai"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VPNExXcP9W"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"creaoagent","hasAudioNarration":false,"actualSubdomain":"creaoagent","customDomains":["docs.creao.ai"],"gitSource":{"type":"github","owner":"creaoai","repo":"creao-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af65743bef8966fcc1ac01d","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"CREAO CLI","count":66},{"language":"default","tag":"Using CREAO","count":26},{"language":"default","tag":"Concepts","count":14},{"language":"default","tag":"Features","count":11},{"language":"default","tag":"Get Started","count":7},{"language":"default","tag":"Agents","count":7},{"language":"default","tag":"Rooms","count":6},{"language":"default","tag":"Skills","count":6},{"language":"default","tag":"Agent Brain","count":5},{"language":"default","tag":"Workspaces","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"pro/agent-runtime-environment","slug":"/pro/agent-runtime-environment","pageMetadata":{"title":"Agent Runtime Environment","description":"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.","href":"/pro/agent-runtime-environment"},"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: \"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\"\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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`When you create an agent, the runtime environment from your original chat session is automatically saved. This means any packages you installed, files you created, or tools you configured are available every time the agent runs — no setup needed.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The runtime environment is captured as a snapshot and reused across all runs of the agent — no setup needed on later runs.`})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(_components.p,{children:`When you create an agent from a chat session, the super agent captures the full state of your workspace at that moment — installed packages, generated files, and configuration. Every future run of that agent starts from this saved state instead of a blank environment.`}),`\n`,_jsxs(_components.p,{children:[`For example, if your chat session installed `,_jsx(_components.code,{children:`pandas`}),`, `,_jsx(_components.code,{children:`matplotlib`}),`, and `,_jsx(_components.code,{children:`seaborn`}),` to generate charts, every future run of the agent will have those packages pre-installed. The super agent doesn’t need to reinstall them each time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`updating-the-environment`,children:`Updating the environment`}),`\n`,_jsxs(_components.p,{children:[`Over time, you may want to add new packages or change the configuration for an existing agent. Use the `,_jsx(_components.strong,{children:`Update Environment`}),` button on the agent detail page.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open the agent detail page`,children:_jsxs(_components.p,{children:[`Navigate to your agent from the `,_jsx(_components.strong,{children:`Agents`}),` page in the sidebar.`]})}),_jsxs(Step,{title:`Click Update Environment`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Update Environment`}),` button is in the top-right corner of the agent detail page. This opens a new chat session with your agent’s current environment pre-loaded.`]}),_jsx(Frame,{caption:`The Update Environment button on the agent detail page`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=e68ac0c4717d76645bb7a08f1c65a1e0`,alt:`Agent detail page header showing the Update Environment, Follow up, and Run Agent buttons`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`220`,height:`220`,\"data-path\":`images/app-update-env-button.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=280\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=9ef9664c8594b5234bc9a0b3ecb37f1b 280w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=560\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=95025b70f457944b4f6f57adbefcbebb 560w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=840\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=322ed4e5620953422b7d4a3fe7f62c09 840w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=e955063592247c2e4a8de5859ad6f05e 1100w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=885e4029eeb00acd286d2891a09269e2 1650w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-update-env-button.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=17b3f3e78d72faac236bf7a9d856a918 2500w`})})]}),_jsxs(Step,{title:`Make your changes`,children:[_jsx(_components.p,{children:`Ask the super agent to install packages, update tools, or make any changes you need. For example:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Install the seaborn and plotly packages`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`The super agent will list the current environment and help you make changes.`})]}),_jsxs(Step,{title:`Save to Agent`,children:[_jsxs(_components.p,{children:[`When you’re done, click the `,_jsx(_components.strong,{children:`Save to Agent`}),` button in the blue banner at the top of the chat. This captures the updated environment for all future runs.`]}),_jsx(Frame,{caption:`The environment setup banner with the Save to Agent button`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=e1ae7b0fd88d6425606a71571e66f2a5`,alt:`Chat showing the blue environment setup mode banner with a Save to Agent button`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`800`,height:`800`,\"data-path\":`images/app-env-setup-banner.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=280\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=ed83313334d05b067d308fd2c268203b 280w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=560\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=ee314bbf13577e456d5b9c6c9d4c4bb7 560w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=840\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=fa2b748a4e3294bfaeace94586dd4114 840w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=1311375bacbf1fd0803b69b327b21c75 1100w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=d3f08d3e4538e2b09594ee967c4ad8d6 1650w, https://mintcdn.com/creaoagent/0hoC_a_9G-b-Dr_u/images/app-env-setup-banner.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0hoC_a_9G-b-Dr_u\u0026q=85\u0026s=88ebce1e86827a707ae64b4b50a6b062 2500w`})})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`The “Save to Agent” button persists across page refreshes and navigation — you can install packages across multiple messages before saving.`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-gets-saved`,children:`What gets saved`}),`\n`,_jsx(_components.p,{children:`The runtime environment includes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Python packages`}),` — anything installed via `,_jsx(_components.code,{children:`pip install`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Node.js packages`}),` — global npm packages`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`System tools`}),` — any tools or utilities configured during the session`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Files and configuration`}),` — scripts, config files, and data created in the workspace`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-doesn’t-get-saved`,children:`What doesn’t get saved`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Conversation history`}),` — each agent run starts with a fresh conversation (the agent’s skill and config provide the context)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Temporary files`}),` — files outside the workspace directory are not persisted`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Running processes`}),` — background servers or processes are not carried over`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`environment-setup-sessions`,children:`Environment setup sessions`}),`\n`,_jsxs(_components.p,{children:[`When you use `,_jsx(_components.strong,{children:`Update Environment`}),`, a session is created in the agent’s session history with the `,_jsx(_components.strong,{children:`Env Setup`}),` label. These sessions are separate from regular agent runs so you can easily distinguish environment maintenance from actual usage.`]}),`\n`,_jsx(Heading,{level:`2`,id:`fallback-behavior`,children:`Fallback behavior`}),`\n`,_jsx(_components.p,{children:`If the saved environment becomes unavailable for any reason, the agent automatically falls back to the default runtime environment. Your agent’s skill and configuration still work — you may just need to re-install any custom packages.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`When running an agent, any packages installed during that run are `,_jsx(_components.strong,{children:`not`}),` saved back to the environment. Only the `,_jsx(_components.strong,{children:`Update Environment`}),` flow and the original agent creation capture the environment. This keeps agent runs clean and reproducible.`]})})]})}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":"Agent Runtime Environment","description":"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.","href":"/pro/agent-runtime-environment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Updating the environment","slug":"updating-the-environment","depth":2,"children":[]},{"title":"What gets saved","slug":"what-gets-saved","depth":2,"children":[]},{"title":"What doesn’t get saved","slug":"what-doesn’t-get-saved","depth":2,"children":[]},{"title":"Environment setup sessions","slug":"environment-setup-sessions","depth":2,"children":[]},{"title":"Fallback behavior","slug":"fallback-behavior","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"creaoagent","siteName":"CREAO Documentation","title":"Agent Runtime Environment - CREAO Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-12T11:56:46.693Z","originalFileLocation":"pro/agent-runtime-environment.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=\"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CREAO 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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agent Runtime Environment - CREAO Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CREAO Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.creao.ai/pro/agent-runtime-environment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://creaoagent.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Agent+Runtime+Environment\u0026amp;description=Customize+the+runtime+environment+your+agents+run+in+%E2%80%94+install+packages%2C+configure+tools%2C+and+save+the+setup+for+every+future+run.\u0026amp;theme=517419ff71a0ccc56d7c2a68\u0026amp;signature=66078922f3748363020f30dec680cf85c7373329f1ceccd3fb440190e3e2f041\">\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=\"Agent Runtime Environment - CREAO Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://creaoagent.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Agent+Runtime+Environment\u0026amp;description=Customize+the+runtime+environment+your+agents+run+in+%E2%80%94+install+packages%2C+configure+tools%2C+and+save+the+setup+for+every+future+run.\u0026amp;theme=517419ff71a0ccc56d7c2a68\u0026amp;signature=66078922f3748363020f30dec680cf85c7373329f1ceccd3fb440190e3e2f041\">\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/creaoagent/tUWWd22AgUwL896o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CREAO Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.creao.ai/pro/agent-runtime-environment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pro/agent-runtime-environment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.creao.ai/#organization\",\"name\":\"CREAO Documentation\",\"url\":\"https://docs.creao.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/light.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=c85112c81c4c08190781587305b2c952\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.creao.ai#website\",\"name\":\"CREAO Documentation\",\"url\":\"https://docs.creao.ai\",\"publisher\":{\"@id\":\"https://docs.creao.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.creao.ai/pro/agent-runtime-environment#webpage\",\"url\":\"https://docs.creao.ai/pro/agent-runtime-environment\",\"name\":\"Agent Runtime Environment\",\"description\":\"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\",\"dateModified\":\"2026-06-12T11:56:46.693Z\",\"isPartOf\":{\"@id\":\"https://docs.creao.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.creao.ai/pro/agent-runtime-environment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.creao.ai/pro/agent-runtime-environment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Advanced\",\"item\":\"https://docs.creao.ai/pro/sandbox-lifecycle\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agent Runtime Environment\",\"item\":\"https://docs.creao.ai/pro/agent-runtime-environment\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.creao.ai/pro/agent-runtime-environment#article\",\"headline\":\"Agent Runtime Environment\",\"name\":\"Agent Runtime Environment\",\"description\":\"Customize the runtime environment your agents run in — install packages, configure tools, and save the setup for every future run.\",\"url\":\"https://docs.creao.ai/pro/agent-runtime-environment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.creao.ai/pro/agent-runtime-environment#webpage\"},\"dateModified\":\"2026-06-12T11:56:46.693Z\",\"publisher\":{\"@id\":\"https://docs.creao.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.creao.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CREAO Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CREAO Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pro/agent-runtime-environment.md","siteName":"CREAO Documentation","nav":{"global":{"anchors":[{"anchor":"CREAO","icon":"rocket","href":"https://agent.creao.ai"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VPNExXcP9W"}]},"tabs":[{"tab":"Using CREAO","groups":[{"group":"Get Started","pages":[{"title":"Welcome to CREAO","href":""},{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"FAQ","href":"/faq"}]},{"group":"Features","pages":[{"title":"Chat","href":"/features/chat"},{"title":"Models","href":"/features/models"},{"title":"Agents","href":"/features/agents"},{"title":"Scheduled Runs","href":"/features/scheduled-runs"},{"title":"Dynamic Workflows","href":"/features/workflows"},{"title":"Slide Decks","href":"/features/slides"},{"title":"Workspaces","href":"/features/workspaces"},{"title":"Files","href":"/features/files"},{"title":"Team Rooms","href":"/features/rooms"},{"group":"CREAO Connect","pages":[{"title":"CREAO Connect","href":"/features/device-connect/index"},{"title":"Terminal and Linux servers","href":"/features/device-connect/terminal"}]}]},{"group":"Agent Brain","pages":[{"title":"Memory","href":"/features/memory"},{"title":"Skills and Connectors","href":"/features/skills-and-connectors"},{"title":"Secret Key Management","href":"/features/secrets"},{"title":"Widgets","href":"/features/widgets"},{"title":"Browser Use","href":"/features/browser-use"}]},{"group":"Advanced","pages":[{"title":"Sandbox Lifecycle","description":"Understand how your chat sandbox persists between messages — your installed packages, files, and running processes stay alive across conversations.","href":"/pro/sandbox-lifecycle"},{"title":"Agent Runtime Environment","href":"/pro/agent-runtime-environment"},{"title":"Agent Reference Files","description":"How CREAO bundles working scripts with your agents so every run uses the exact same logic — and how follow-up messages keep them up to date.","href":"/pro/agent-reference-files"},{"title":"API Trigger","href":"/pro/api-trigger"}]},{"group":"Trust \u0026 Safety","pages":[{"title":"Privacy","href":"/trust-and-safety/privacy"},{"title":"Security","href":"/trust-and-safety/security"},{"title":"Support","href":"/support"}]}]},{"tab":"CREAO CLI","pages":[{"title":"CREAO CLI","href":"/developer-api/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/community-and-updates/changelog"}]},{"tab":"Community","pages":[{"title":"Community","href":"/community-and-updates/community-hub"}]}]},"basePath":"","title":"Agent Runtime Environment - CREAO Documentation","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-rZ_6yn08.js","DynamicMarkdown-D3RQ-fEj.js","zoom-image-lightbox-CMHgNu49.js","lightbox-handle-r17bVUz3.js"]}