# Cloud agent

> Canonical: https://skillalmanac.com/glossary/cloud-agent | Last verified: 2026-11-25 | Index status: index-eligible

In this entry, a cloud agent means a coding agent that runs tasks on remote infrastructure in a separate workspace. Codex Cloud and Claude Code cloud sessions are examples; the broader term also covers other hosted agents.

Also called: cloud coding agent, remote coding agent, cloud coding agents, cloud coding sessions.

## In plain language

Here, a cloud agent is an AI helper that does a coding job on remote infrastructure instead of your machine. You describe a task, such as fixing a bug, and it works in a remote workspace. You can close your laptop and check the result later, on a phone or in a browser. Think of sending a job to a contractor with their own workshop instead of working at your own desk. The trade-offs are access and cost. The agent sees what you connect, such as a GitHub repository, so unpushed local work is not there unless you send it. Runs count toward your plan's usage limits, and several in parallel use that allowance faster.

## Technical definition

A cloud agent pairs an agent loop with a hosted execution environment. OpenAI's Codex Cloud documentation says tasks run remotely, each with its own workspace that can keep working while your computer is asleep, using environments that are reusable setups of repositories, dependencies and tools. Anthropic's Claude Code documentation describes a cloud session as a Claude Code session that runs on cloud infrastructure, started from the web, the mobile app, the desktop app or the terminal with claude --cloud. On its GitHub-clone path, the virtual machine uses the remote branch, excluding unpushed work. Its documented local-bundle path can instead upload local history and tracked changes, subject to platform and size conditions. Network access is limited by default in Anthropic-managed environments.

## How it shows up when you use agents

With a local [coding agent](/glossary/coding-agent), the work happens in your checkout and uses your machine. With a cloud agent you hand a task to a hosted environment and come back to a result, usually a branch or a diff. OpenAI's Codex Cloud page describes giving Codex coding tasks to work through in the cloud, and Anthropic describes Claude Code cloud sessions as sessions that run on cloud infrastructure. OpenAI says Codex tasks keep working while your computer is asleep; Anthropic says cloud sessions keep running after you close your laptop.

Three things matter in practice.

- **What the agent can see.** On Anthropic's GitHub-clone path, push local commits first. Without a remote, or without the Claude GitHub App installed on the GitHub repository, the CLI can upload a local bundle instead; the docs also describe forcing that route. A full bundle can contain local history and uncommitted tracked changes. Size limits can reduce history, untracked files are excluded, and platform-specific filters differ: macOS/Linux/WSL omit certain sensitive-file edits, while native Windows uploads tracked edits without that filename filtering. Check the current eligibility rules before relying on a bundle. Codex tasks use reusable environments of repositories, dependencies and tools.
- **Where it can reach.** Anthropic says network access in its hosted environments is limited by default. Review what an environment can reach and which credentials it holds before running a task.
- **What it costs.** Anthropic says cloud sessions count toward your plan's usage limits and that running several in parallel consumes more of them in proportion.

What breaks when this is misunderstood: a clone-based task that depends on files you have not pushed can run against old code, and a vague one-line task is harder to correct than in a local session you are watching. Write the brief as if the agent has no memory of your conversation. Consider [plan mode](/glossary/plan-mode) first, so the approved plan is saved in the repository. A cloud agent is one surface for [agentic coding](/glossary/agentic-coding), alongside local ones.

## Common confusions

- **Cloud agent versus cloud-hosted model.** A model served from a cloud API is [inference](/glossary/inference). A cloud agent is the whole loop of reading, editing and testing, running on remote infrastructure.
- **Cloud agent versus remote control.** Anthropic's documentation says `--remote-control` is unrelated to `--cloud`: it lets you monitor and steer a local session from another device. A cloud session runs on cloud infrastructure.
- **Cloud agent versus a local sandbox.** A sandbox limits what local commands can touch. A cloud agent moves the whole session off your machine, and its environment has its own network and credential settings.
- **Myth: a cloud agent can see all your work.** It sees the checkout or bundle supplied to that session, plus any other resources you explicitly connect. A remote clone omits unpushed work, while an eligible local bundle can include tracked local changes; neither means access to every file on your machine.

## Worked examples in this catalogue

### [What Is OpenAI Codex? Surfaces and Their Uses](https://skillalmanac.com/learn/what-is-openai-codex)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide to the Codex surfaces: a terminal CLI, an IDE extension, a cloud agent and a desktop app, with what each is for and a hypothetical comparison of the same fix handled locally and in Codex Cloud.

Why it exercises the concept: It places the cloud agent beside the local options, so you can see which choice moves the work off your machine.

### [git-worktree-and-pr-flow](https://skillalmanac.com/skills/skill-almanac/git-worktree-and-pr-flow)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Parallel agent tasks run in isolated git worktrees, each on a clean branch, with small pull requests and a safe merge flow.

Why it exercises the concept: Cloud agents are often started several at a time, each producing a branch for review. This skill covers the same pattern of isolated branches and small pull requests on your own machine.

### [Codex](https://skillalmanac.com/tools/codex)

```
codex cloud
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: From the Codex CLI, codex cloud submits work to a configured cloud environment and can apply the result to your local repository, according to the Codex CLI documentation.

Why it exercises the concept: It is the terminal entry point to Codex's cloud agent, so the task runs in OpenAI's environment and not on your laptop.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
claude --cloud "Fix the authentication bug in src/auth/login.ts"
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code creates a new cloud session for the current repository and the task runs there while you keep working locally. Anthropic's documentation says you can follow it on claude.ai or the Claude mobile app.

Why it exercises the concept: It is Anthropic's cloud coding workflow: the remote session may clone GitHub or receive a local bundle under the documented conditions.

## Related terms

- [Coding agent](https://skillalmanac.com/glossary/coding-agent.md)
- [Agentic coding](https://skillalmanac.com/glossary/agentic-coding.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Autonomous agent](https://skillalmanac.com/glossary/autonomous-agent.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [Plan mode](https://skillalmanac.com/glossary/plan-mode.md)

## Sources

- [Codex Cloud](https://learn.chatgpt.com/docs/cloud), OpenAI (ChatGPT Learn) (accessed 2026-11-24)
- [Use Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web), Anthropic (Claude Code Docs) (accessed 2026-11-24)
- [Codex CLI](https://learn.chatgpt.com/docs/codex/cli), OpenAI (ChatGPT Learn) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
