One prompt you paste into Claude Code. Claude sets your project up for the cloud and builds itself a /cloud-task command. Then you hand over a task, close the laptop, and in the morning the result is waiting for you to review.
Get the prompt ↓Copy the prompt. The button below copies all of it at once.
Paste it into Claude Code, in your project's folder. Claude checks your plan, connects GitHub together with you and writes a guide for your project. It takes about ten minutes.
Hand over a task, close the laptop. Type /cloud-task and describe what you want. For example: /cloud-task share button for recipes
A Claude plan from Pro up (Pro, Max or Team). Claude Code on your computer, Mac, Windows or Linux. A free GitHub account, the prompt helps you connect it. And the Claude app on your phone, in case Claude asks something while you are out. No Claude Code yet? That takes about ten minutes: setting Claude up properly.
Set me up to run Claude Code in the cloud, so I can give you a task, close my laptop, and come back to finished work. Work in the project folder I opened you in. Go step by step, tell me in plain English what you are doing, and ask me before you change anything. 1. Check the basics and tell me what is missing: - Am I signed in with a claude.ai account on Pro, Max or Team? Run: claude auth status. Cloud sessions need one of these plans. They count toward my normal usage limit, and the cloud computer itself costs nothing extra. - Is this folder a git repository with at least one commit? Is it on GitHub? (git remote -v) - Is the GitHub CLI installed and logged in? (gh auth status) If the project is not on GitHub yet, offer to make it a private GitHub repository: gh repo create --private --source=. --push If I say no, that is fine: claude --cloud can upload the project from my computer instead (committed files only, under 100 MB). 2. Connect GitHub to my Claude account. You cannot do this part for me, so walk me through one of these and wait until I say it is done: - If gh is logged in: I type /web-setup here in Claude Code. - Otherwise: I open claude.ai/code in the browser, follow the steps, and install the Claude GitHub App on this repository. 3. Make the project easy to work on from an empty computer. A cloud session starts on a fresh machine that only has my code, so: - Find out how to install, run, test and build this project. Try the commands and fix what is missing. - Write or update CLAUDE.md in the project root with: what the project is (two lines), the exact install, test and build commands, these rules (never push to main, always work on a new branch, run the tests before saying you are done, keep changes small), and anything a newcomer would trip over. - If the project needs tools that a normal Linux machine does not have, write a short setup script (bash) that installs them. Tell me to paste it into the Setup script field of my cloud environment at claude.ai/code (the environment picker under the message box). - If it needs secret keys or passwords, never put them in the code. Tell me to add them as environment variables in that same cloud environment. - Commit these changes on a new branch called claude-cloud-setup, push it, and tell me to merge it into main. 4. Create a skill so my tasks come back clean instead of messy. Make the file ~/.claude/skills/cloud-task/SKILL.md with exactly this content: ``` --- name: cloud-task description: Turn a rough idea into a clear task and send it to a Claude Code cloud session that keeps working after I close my laptop. Use when I say "/cloud-task <idea>", "send this to the cloud", "run this overnight" or "do this while I sleep". --- # cloud-task 1. If the idea is unclear, ask me up to 3 short questions: what does done look like, what must not be touched. Skip this if it is clear. 2. Write docs/tasks/<short-name>.md in the project with: - Goal: one sentence - Done means: 3 to 6 points I can check, always including "the tests pass" - Steps: the plan, in order - Do not touch: files or features to leave alone - If unsure: stop and ask me a question with 2 or 3 options instead of guessing 3. Commit the task file and push the current branch. The cloud session copies the project from GitHub, not from my laptop, so anything not pushed is missing there. 4. Start the cloud session: claude --cloud "Do the task in docs/tasks/<short-name>.md. Work on a new branch, keep commits small, run the tests, and finish with a short summary of what changed and what I should check." 5. Tell me the session link, that I can close the laptop now, and that any questions show up in the Claude app on my phone (Code tab). Several tasks at once: one task file and one cloud session each. They run at the same time, each on its own computer. Never give two sessions tasks that change the same files. ``` 5. Test it with something small and harmless. Run the cloud-task skill with this idea: "Read the project and write docs/overview.md: what it does, how the folders are organised, and 3 things worth improving." Show me the session link and tell me to open it on my phone. 6. Finish with a short cheat sheet in plain English: - Start a task: /cloud-task and your idea. Or claude --cloud "task", or claude.ai/code, or the Code tab in the Claude app. - Answer questions: the Claude app on your phone. - Check the result: open the session at claude.ai/code, look at the changes, then create a pull request. - Carry on at your laptop: claude --teleport (pick the session).
Its own computer. Every cloud session gets its own machine at Anthropic. It copies your project from GitHub and keeps working, even while your laptop sleeps.
Its own branch. Claude works on a copy next to your live version. Nothing goes live before you have looked at the changes.
Questions on your phone. When something is unclear, Claude asks in the Claude app instead of guessing. You tap an answer, Claude carries on.
The cloud computer costs nothing extra, it runs on your normal Claude plan. The usage does count toward your usual limit, so big overnight tasks use more of it. Everything is also in Anthropic's official guide: Claude Code in the cloud.
I post skills on Instagram regularly, and the full guide always ends up here on the site, free and without a signup.