Skip to content
AthasDocs
Download

Cloud Agents

Run Claude Code or Codex in an isolated cloud sandbox and get a draft pull request.

Updated

On this page

Cloud Agents run Claude Code or Codex on a GitHub repository in an isolated Cloudflare sandbox. The agent clones the repository, works on your task on your Athas credit, and opens a draft pull request with its changes. Runs continue when Athas is closed, so you can start a task, close your laptop, and review the pull request later.

Requirements

No API key is needed. Optionally, a run can use your own Anthropic API key for Claude Code or OpenAI API key for Codex instead of Athas credit. See Providers and Models.

Start a Run

  1. Open AI: Cloud Agents from the command palette.

  2. Choose a repository you connected to Athas and its base branch.

  3. Choose Claude Code or Codex, a model, and a time limit.

  4. Describe the task and click Run in the cloud.

The run list shows each run's status and activity while it works. When the agent finishes with changes, Athas links the draft pull request on a new athas/agent-… branch. Review and merge it on GitHub like any other pull request. Stop a run at any time; its work so far is discarded.

Pricing

Sandbox time costs $0.40 per hour. You pay for the time the sandbox actually ran, never more than the time limit you chose. While a run is active, Athas holds the cost of its full time limit and releases the unused part when it finishes. A run that fails to start is not charged.

The agent's model usage is billed like other hosted AI: list price plus the usage markup, from the same credit. Claude Code runs on Claude Sonnet 5.5 and Codex on GPT 5.6 Terra unless you choose another model. Each run has a model spending limit of $5. Athas holds the limit with the time limit while the run is active and charges only what the model calls actually cost. A run that reaches its limit stops, fails with a message saying so, and does not open a pull request.

Sandbox time and model usage come out of your included Pro credit first, then from your prepaid balance. When less credit is left than a full run needs, the run gets a smaller model limit. See Hosted AI Pricing.

With your own API key, Anthropic or OpenAI bills the model usage to that key and Athas bills only sandbox time.

Limits

  • Up to 2 runs at the same time per account
  • Time limits of 30 minutes, 1 hour, or 2 hours
  • Model spending limit of $5 per run on Athas credit
  • The sandbox has no open Internet access. It can reach its model API, read the run's repository on GitHub, and read from package registries such as npm, PyPI, crates.io, Go modules, RubyGems, and Maven Central.

Privacy and Security

  • The sandbox never holds a model credential, only a placeholder. On Athas credit, model requests leave the sandbox through Athas with a token that is valid only for that run and only until its time limit. With your own API key, the key is sent with the run, is never stored, and is added to model API requests on their way out of the sandbox.
  • The sandbox can only read the repository. Athas creates the branch, commit, and draft pull request through the GitHub API after the agent finishes, so the agent never has write access.
  • Each run gets its own sandbox, which is destroyed when the run ends.
  • Athas keeps the run's repository, task, status, activity log, sandbox time, and pull request link so you can see your run history.

Before starting a run

Choose the repository and base branch deliberately, commit files the agent needs, and make the task and tests explicit. Local uncommitted work is not part of the clone. Inspect the resulting draft pull request and its checks before merging; see Agent context.