Configure cloud environments changedcloud-environments
Nearest release: v2.1.265, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−4removed
From line
393
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits66to this page, all time
The whole hunk
from line 393, old and new numbered
/
from line 393
393393
394394Use a setup script to provision the VM itself: toolchains and CLI tools that aren't [pre-installed](#installed-tools). Use a [SessionStart hook](/docs/en/hooks#sessionstart) for project setup that should run everywhere, cloud and local, like `npm install`.
395395
396Setup scripts and SessionStart hooks run in a fixed order when a cloud session starts:
397
3981. The setup script runs first, before Claude Code launches, and only when no [cached environment](#environment-caching) exists.
3992. Claude Code launches and runs your SessionStart hooks, as it does at the start of every session, local or cloud.
396Setup scripts and SessionStart hooks run in a fixed order when a cloud session starts. The table compares where you configure them, when they run, and where they run.
400397
401398| | Setup scripts | SessionStart hooks |
402399| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
No line in this hunk matches that.