Self-hosted cloud coding agents you own, end to end.

Run Claude Code, Codex, Gemini CLI or any ACP agent on your GitHub repos from a VM in your own cloud. Close the laptop, get a pull request.

$curl -fsSL https://usecloudly.dev/install.sh | sh
Read the source on GitHub

How a run works on your own cloud.

1

Hand off a task from the browser.

Pick a repo and an agent, describe the change, close the laptop. The worker on your VM picks it up and starts a fresh container for this run alone.

2

Your keys never enter the sandbox.

The agent only holds a placeholder. A gateway outside the container swaps in your API key or Claude or ChatGPT plan token on the way to the vendor, so a malicious repo has nothing to steal.

3

The sandbox can't phone home.

Run containers reach only the model APIs, the main package registries and GitHub, plus any hosts you add. Everything else, DNS included, is blocked.

4

Untrusted output is checked outside.

The patch is exported in a network-less container, validated, then committed deterministically in a clone the agent never touched. The sandbox is removed.

5

A pull request lands on your repo.

The worker pushes the branch and opens the pull request with a short-lived GitHub App token. GitHub credentials never enter the sandbox.

Hand off a task from the browser.

Drag or use the arrow keys to turn the model.

See it work in 90 seconds.

A real task on Cloudly's own repo: the agent works in a container, the tests run, and the pull request opens. Then sessions talking to each other, agent races, Discord and spend limits.

Set a limit. It actually stops.

Claude Code reports exact cost per run. Codex and Gemini report tokens, priced from a table you control and marked as estimates. Runs on your Claude or ChatGPT plan don't count.

$9.40of $20.00 this month

Drag to spend the month.

Runs start normally.

Under 80% of your limit nothing interrupts you. Each run's cost is recorded the moment the agent reports it.

Switch agents with a dropdown.

Each agent reports its work in its own dialect. Cloudly translates them all into one log, so cancel and the pull request work the same whichever you pick.

Agent SDK eventCloudly log
assistant · text blockAgent message
assistant · tool_useTool call
user · tool_resultTool result
result · total_cost_usdDone, with cost

Each agent keeps its own session across your follow-ups, and its commands work as typed: /compact, /context, /model and the skills in your repo. Gemini CLI runs over the Agent Client Protocol, and so do Cursor, Grok, OpenCode, Antigravity, Pi and any agent in the ACP registry, added from Settings.

Questions

What is Cloudly?

Cloudly (usecloudly.dev) is a free, open-source server that runs coding agents such as Claude Code, Codex and Gemini CLI against your GitHub repositories, on a VM you own. You give it a task from the browser, Discord, Slack, a GitHub issue or a Sentry error, and it comes back with a branch and a pull request whose tests have been run.

Is Cloudly free?

Yes. Cloudly is MIT-licensed and there is no Cloudly account or hosted service. You pay your cloud provider for the VM (or use a free tier such as Oracle Cloud's Always Free Arm machine) and pay for model usage through your own API keys, or use the Claude or ChatGPT plan you already have.

Is Cloudly a hosted service?

No. Cloudly is software you install on your own Linux VM. There is no Cloudly account and no hosted control plane: the web app, API, worker and Postgres all run on your machine.

Can Claude Code be self-hosted?

Yes. Cloudly runs Claude Code on a VM in your own cloud account, so the agent keeps working after you close your laptop and your code stays on infrastructure you control. Each turn runs in a fresh container on that VM and ends with a pull request. It can use an Anthropic API key or your own Claude plan.

Can I use my Claude or ChatGPT subscription instead of API keys?

Yes, for your own use. Claude Code can run on a Claude plan token you create with Anthropic's own claude setup-token command, and Codex on a ChatGPT sign-in. Plans are meant for one person's ordinary use, so if other people use your Cloudly, give it API keys rather than your plan. Runs on a plan don't count toward Cloudly's spend limit.

Which coding agents does Cloudly support?

Claude Code, Codex and Gemini CLI are built in. Cursor, Grok, OpenCode, Antigravity, Pi and any other agent in the Agent Client Protocol (ACP) registry can be added from Settings. You pick one per session, or give the same task to several and keep the best result.

Is there an open-source alternative to Codex cloud or Devin?

Cloudly is one. It's MIT-licensed, runs on your own VM, and works with Codex, Claude Code, Gemini CLI and other agents instead of a single vendor's. Like hosted agents, it takes a task, works with your laptop closed and opens a pull request; unlike them, the environment and the keys stay yours.

Where does my code run, and are my API keys safe?

On a VM in your own cloud account. Each turn runs in a throwaway, non-root Docker container. Agents only ever see placeholders for your keys: an egress proxy fills in the real key on the way to the hosts you allow. GitHub credentials stay outside the sandbox too; Cloudly commits and opens the pull request itself.

Does Cloudly use containers or microVMs?

Containers. Each turn runs in a fresh, non-root Docker container that is deleted afterwards, with network access limited to an allowlist. Keys and GitHub credentials stay outside the container, so there is nothing to steal inside it.

How does Cloudly stop a malicious repository from stealing my keys?

The agent only ever holds placeholders. A proxy outside the sandbox swaps in the real key on requests to approved hosts, and other network traffic, DNS included, is blocked. The finished change is exported and validated in a container with no network, then committed in a clean clone the agent never touched.

How does the spend limit work?

You set a monthly limit. At 80% you get a banner and an email; at 100% new runs are refused. Claude Code reports exact cost, while Codex and Gemini token usage is priced from a table you control and marked as an estimate. Runs on a Claude or ChatGPT plan don't count.

Can I give the same task to several agents?

Yes. Give one task to two or three agents, compare their cost, time, diff size and summaries side by side, and open the best result as the pull request. For questions rather than code, a council of agents researches, cross-examines and writes one report.

Does Cloudly support MCP servers?

Yes. Connect Linear, Notion, Sentry or your own MCP server once in Settings. Cloudly handles the OAuth sign-in and keeps the tokens, and every agent gets the tools without ever holding a token.

How is Cloudly different from hosted agents or desktop agent apps?

Hosted cloud agents run your code on someone else's servers. Desktop agent apps run agents on the computer in front of you, so the work pauses when it sleeps. Cloudly is a self-hosted server: agents keep working with your laptop closed, on infrastructure and keys you control, and every change is checked by your tests and optionally a reviewer agent before it becomes a pull request.

What do I need to install it?

A fresh Ubuntu 22.04+ or Debian 12+ VM with 1 GB of RAM or more, and a GitHub account. Run curl -fsSL https://usecloudly.dev/install.sh | sh on the VM; it sets up Docker, Postgres and HTTPS, then finishes in the browser in about fifteen minutes. You can also run it on your own computer to try it.

Put Cloudly on your own cloud.

$curl -fsSL https://usecloudly.dev/install.sh | sh

Run it on a fresh Linux VM. It installs Docker, gets an HTTPS certificate even without a domain, and finishes setup in the browser.

Read the installation guide

Good fits today

  • Oracle Cloud Always Free (Arm, 12 GB)
  • Google Cloud e2-micro (1 GB, one run at a time)
  • AWS (new-account credits)
  • DigitalOcean

Check each provider's current terms before you rely on a free tier.