Codex Cloud while your PC sleeps: prepare the remote environment
A cloud task needs its own repository, dependencies and allowed access. Files available only on your laptop do not automatically appear there.
In brief
Codex Cloud can continue tasks in an isolated remote workspace while your computer sleeps. That works because the task runs in a prepared cloud environment, not because your closed laptop keeps executing it.
Understanding the execution location helps you prepare dependencies and avoid assuming the task can access a local-only file.
Prepare a reproducible starting point
Use the environment’s repository and dependency setup, then identify the commands a reviewer can repeat. Include required public fixtures in the project when appropriate. Do not make success depend on an undocumented file living only on one developer’s desktop.
Keep access narrow
Provide only the repository and external access needed for the task. Use the platform’s supported secret controls where genuinely required; never commit credentials as a setup shortcut. Check managed workspace policy before assuming cloud access is enabled.
Review the handoff result
Inspect the diff, generated artifacts and command output. Distinguish tests run in the remote environment from checks needed on another OS or a live service. A cloud task completing overnight does not by itself authorize deployment or prove the result works everywhere.
Before you act
Availability and workspace cloud permissions apply. Do not place production secrets in setup files or assume a successful remote check proves an untested Windows-specific behaviour.
What to do next
- Connect the intended repository and configure its supported environment.
- Verify dependencies and a normal build/test command in that environment.
- Start a bounded task and inspect its changes and actual test results before merging.