עברית 📰 Blog
← Back to Blog
AI Tools

How to Let Codex Keep Coding While Your Computer Is Asleep

Masterphub Editorial
AI News Desk
October 3, 2026

Share this article

TL;DR: Codex Cloud runs coding tasks on OpenAI managed computers, so a task keeps going after you close your laptop. You prepare and publish an environment once, assign a clear task, and review the result later. Available on Plus, Pro, Business, Enterprise, Healthcare and Education. Not on Free or Go.

What if you could give an AI coding agent a real task, close your laptop, and come back later to review the results? That is the use case behind Codex Cloud. The workflow changes from start, keep the computer awake, wait, review to prepare the environment, assign a task, step away, review.

What Codex Cloud is

A cloud environment for running Codex tasks on computers OpenAI manages. The environment holds your repositories, tools, dependencies and access settings. Once published, you reuse it instead of setting everything up again. Each task starts in its own isolated workspace, so files and changes stay separate.

Good fits: investigating bugs, implementing features, changing existing code, running tests, reviewing changes.

Cloud vs local

  • Codex Local: your computer → Codex → your project. The computer has to stay on.
  • Codex Cloud: your computer → Codex Cloud → OpenAI managed environment → your project. Once the task starts, your computer can sleep.

This is not the same as remote access. Controlling a local task remotely still depends on that computer being awake.

Setup in 10 steps

  1. Open Codex and sign in with your ChatGPT account.
  2. Create a cloud environment for the project.
  3. Connect the repository.
  4. Install the language, package manager, libraries and test tools the project needs.
  5. Configure credentials, network access or private services if the project needs them.
  6. Publish the environment once it works.
  7. Start a cloud task: pick the environment and describe the task.
  8. Step away. The computer can sleep.
  9. Review the changes and test results. Finishing is not proof the code is ready.
  10. Need changes? Continue in the same task. A new task is a separate workspace and will not have the old task's uncommitted changes. Per OpenAI, a task's VM state stays recoverable for up to 7 days.

Write tasks that can be finished

Weak: "Fix the website."

Better: "Investigate the login failure affecting users with existing accounts. Reproduce it if possible, find the root cause, implement the smallest fix, run the existing authentication tests, and summarize the files changed and test results."

A good task gives five things: context (which part matters), objective (what changes), process (what to investigate), validation (how to check it), and output (what to report).

Example before leaving work: "Review the checkout flow. Find why failed payments are sometimes recorded as successful orders. Inspect the backend and frontend code, reproduce the issue if possible, implement a minimal fix, run the existing tests, and report the files changed and any remaining concerns."

Limits

  • Codex itself is on every ChatGPT plan, including Free and Go. Codex Cloud is only on eligible Plus, Pro, Business, Enterprise, Healthcare and Education accounts. In managed workspaces, the admin decides if cloud is on.
  • It is not unlimited. Usage depends on model, task size, reasoning level and tools. A long overnight task can eat a lot of your quota.

Still review before you merge

Code changes, test results, new dependencies, security, database changes, API changes, config changes, error handling. Treat the output as engineering work that needs review, not as approval to deploy.

The real point

Not "coding while you sleep" as a gimmick. The point is that the task no longer depends on your computer being there. You define the work, the agent does it, you review it.

FAQ

Can Codex keep coding while my computer is asleep? Yes, if it runs as a Codex Cloud task.

Can I reuse an environment? Yes, once it is published.

Can I use it from mobile? Yes. After you create and publish the environment on desktop or web, you can start and continue cloud tasks on supported devices.

Is it on the Free plan? No. Free and Go don't include Codex Cloud.

Sources: Using Codex Cloud, Using Codex with your ChatGPT plan (OpenAI Help Center).

COPY. PASTE. PROFIT.

Share this article