AI & Evals9 min read

My agents live in the cloud now

The guide to moving your agents off your MacBook so you can finally close the lid.

I realized I had a problem when running from session to session at the AI engineering conference in San Francisco in July, feeling embarrassed that I had my macbook lid open.

I had five different agents busy working on my computer, and I didn’t want to lose progress by closing the lid. I had just regained Claude Fable access after the government shut it down for three days, so I felt urgency to use all of my token allowance in case it got taken away again.

You can get many more agents running in parallel once you adopt the cloud, and it’s better for security because everything’s running in a sandbox instead of on your personal computer. It’s also a bit of a flex in AI to have your agents running after you shut your laptop lid, as observed in “How Codex Happened”, and the minute someone sees you with your macbook half open, they know you’re not in the cloud club.

I knew that you could run agents in the cloud, and I had experimented with a mac mini on a private network, but I hadn’t fully made the transition. I kept running into friction setting it up, and even for someone technical it’s not obvious what you need to do to make it happen.

Here’s what I ran into:

  • My API keys lived on my Mac
  • Every session starts on a blank machine
  • Claude couldn’t read its own conversation history
  • I didn’t have any of my local files
  • There’s no GPU in the cloud
  • My agent reads a lot of Twitter
  • My skills didn’t follow me to the cloud

It took my macbook running out of memory and freezing in the middle of a meeting because I had too many agents running, for me to finally do something about it. I spent a day forcing myself to reach for the cloud for every single Claude Code session, and solved every blocker that stood in my way. Whether you’re on Claude, Codex, or another harness, you can follow this guide and join me in the cloud.

1. My API keys lived on my Mac

Without your API keys your agent can’t talk to the outside world. Very often I’m telling Claude to generate an image, transcribe audio or test another model provider on a task for me, but it can’t do that on the fresh new computer Anthropic provides for it in the cloud.

So before anything else I wrote down every service my local sessions quietly relied on. I had built up a jumbled collection of API over the years, stored in random places, and needed new ones to separate my cloud activity from what I was running locally (and so I can cancel them if there’s a hack). Here’s what I used:

  • OpenRouter, so Claude could call any other LLM I ask it to
  • Google Gemini, which I use for both understanding images, audio, and video, but also generating images, audio and video
  • fal, for alternative models for image and video generation
  • Cloudflare R2, for storing large files in a place Claude can access them
  • Raindrop, an observability tool for session logs
  • RunPod, for renting cloud GPUs
  • Browserbase, for a hosted browser so my agent can browse websites for me
  • The X API, for reading tweets

Each one of those was an individual request to our ops team, and we create a new Ramp card for each so that the budget is limited and we don’t get overcharged if something goes wrong. Claude gives you a place to put environment variables and secret keys so that they load up on every cloud session, making them available to your agent.

2. Every session starts on a blank machine

Keys aren’t much use without the tools that use them. Every cloud session starts on a fresh Ubuntu machine, so anything your agents call has to be installed by the environment’s setup script. Mine installs Gemini CLI (so I can use it for image, audio and video), and the libraries for using all the other services I listed in step 1. There were also a couple of other libraries I found useful to include for dealing with PDFs and PowerPoint files. They stay downloaded for about a week, or until you next edit the setup file – it takes about five minutes to download everything again when that happens.

3. Claude couldn’t read its own conversation history

Once sessions can run without me, I need a way to see what they did. Locally I often ask Claude to read its old session logs to work out what went wrong, or what I did last Tuesday. Those are files on my disk; in the cloud they disappear at the end of every session. So the setup script installs tracing hooks that send every session’s events to Raindrop, and registers the Raindrop MCP so any agent can search past sessions, including its own. It’s also useful for experiments, because you can tag a batch of sessions and filter for just those.

Raindrop showing events from three cloud Claude Code sessions

4. I didn’t have any of my local files

Cloud sessions can’t see your local files, and you can’t upload anything over 30 MB, so you need a shared drive that both sides can reach. I made one private Cloudflare R2 bucket and an API key that only works on that bucket, which is like a folder in the cloud you and your agent can both read from and upload to. I wrote a short skill telling agents where the bucket is, which folders to use, and never to make it public.

With a bucket in place, I uploaded my full writing corpus so I can do AI writing experiments in the cloud. A cloud machine has about 30 GB of disk, so a large corpus can’t live there whole. Copy it to the bucket, and sessions fetch only the parts a task needs. It came to 19,780 files taking 4.9 GB of space that I can access from anywhere, even if my laptop dies.

5. There’s no GPU in the cloud

Cloud machines have no GPU, so they can’t run open source models. I’ve been experimenting a lot with mechanistic interpretability where you peek inside what an LLM is thinking, and Claude won’t let you do that so you have to use an open source model like Qwen3-8B.

This was what was causing my mac to melt down, and it wasn’t even capable of running bigger open source models. So rather than keep my mechinterp work on my Mac, the environment uses the RunPod key to rent GPUs when a task needs one.

Similarly, rather than running open source video or image generation models locally I use a fal key for image and video generation, which hosts those models for me. Both are cheap to test and let you scale your usage up or down as needed.

6. My agent reads a lot of Twitter

Cloud machines browse from datacenter addresses with no logins, so they show up as bots and X and plenty of other sites block them from browsing. For X, the answer is to use the official API through the xurl skill.

For everything else, I chose Browserbase, which the agent-browser skill I was using already supports. Its residential proxies are what get you past sites that block cloud machines. This doesn’t work for everything, but it works well enough that my agent can mostly browse the web unencumbered.

7. My skills didn’t follow me to the cloud

By this point the cloud machine had my keys, tools, logs and files, but not the instructions I’d built up for using them. The biggest surprise of the day, was that skills in ~/.claude/skills on your Mac never reach the cloud. Only skills uploaded to your claude.ai account and skills committed to a repo’s .claude/skills folder do. I found that out after writing the bucket skill from step 4, which my cloud agents couldn’t see. I’d assumed that telling Claude “add this as a skill” put it on my account, not just my computer.

The fix is to create a GitHub repository, and put your personal skills in there as a plugin. You can then connect that plugin to your Claude account, and any time you update that repo your cloud Claudes get the update too.

Close the lid

My setup isn’t perfect, but in a day I reached the point where my agents work while I’m away from the keyboard. That means I can easily spin off a cloud session from my phone while traveling and pick it back up from my laptop when I get to the office (or vice versa). It’s also the necessary precursor to having my agents keep going on my projects overnight while I sleep.

I don’t need to keep my mac awake with the amphetamine app, or feel it overheat while it’s running a local model. It’s not going to run out of space and crash in a meeting anymore. My battery usage has gone way down, because nothing important is happening locally, it’s all in the cloud. I can also sleep easier because I know it’s Anthropic’s job to protect my cloud computers, and they’re probably doing marginally better than I am protecting my mac.

This was still way too much needless configuration, and I hope one day I can get Claude to do all this setup for me. With computer use getting better it’s becoming more possible, but I also ran into a lot of refusals from Claude because his safety filters stop him from working with API keys and other sensitive settings. Claude also can’t successfully request new credit cards from our ops team (yet). If you’re moving to the cloud after reading this, be kind to your ops team – you’re about to be more productive but that’ll mean spending a lot more tokens, and they still need to sign off.

Addendum: why cloud mode still isn’t good enough

A few weeks on, I’m still about 20% local. Here’s what keeps sending me back to my Mac:

  • Skills still don’t stick. I asked a cloud session to install a skill “globally,” and it explained that globally meant a container that gets deleted when the session ends. Its suggestions were to run a command on my own computer, the one I’m trying to close, or to commit the skill to whatever repo the session happened to be in. I can’t just say “save this skill for me” and have it work everywhere.
  • No browser preview. When a session builds an app, I can’t see it running. The preview pane says the browser isn’t available in this session, so Claude has to fake it by building static snapshots of every state the app could be in.
  • No images on GitHub. A cloud session can open a pull request but can’t put screenshots in it. Image links come out as plain text, so someone with a real browser has to paste them in by hand.
  • No new repos or gists. A session’s GitHub access only covers the repos it started with. Anything new it makes has to go somewhere I can push from my laptop.
  • Local and cloud sessions can’t see each other. A cloud session can read your other cloud sessions, and a local session can read the logs on your disk, but neither can see the other side. When I asked Claude on my Mac to review my last 89 cloud sessions, it could see their titles but not what was in them, so the only option was to message every session and ask it to report on itself. Raindrop solves this by putting every session’s history in one place both sides can search, but it should be built in.
  • Long sessions get lost. A long cloud session I started from my phone compacted itself because I was “away,” and after that I couldn’t get it to show me what it had been working on.
  • Projects force the cloud. Claude Code Projects only runs in cloud mode, which makes it much less useful to me. A lot of my work still can’t be done there, even after a full day of setup.
  • It’s the same list as before. Too little RAM, no GPU, sites that block bots, and no local files. I’ve worked around each one, but each workaround is a key to rotate or a bill to pay.

A cloud session explaining that installing a skill “globally” only lasts until the container is deleted

To be fair, Codex is worse: it needs a separate cloud environment for every repo, and you add each secret one at a time. Claude at least lets me keep one default environment with my keys in it for everything.

Written by

More to read

More on AI & Evals
AI & Evals

Escape the Permanent Underclass

AI spending ranges from $0 to $20,000/month — and the gap is growing. Explore the "permanent underclass theory," why Silicon Valley fears being priced out of AI, and what economics says about whether human labor really becomes worthless.

Michael TaylorRead