# Agent Cloud docs

> What Agent Cloud does for the apps your coding agent builds, what it costs during the beta, and a glossary of the words you'll see.

Source coverage: agc >=0.3.0, verified against summationai/agent-cloud at cf39991.

A source check is not a live task test. Honor page availability and required human approvals.

Report a wrong page: agc feedback docs "<slug>: <what is wrong>" --body <file>, or POST /docs/feedback.

Ask a task question: `GET https://docs.ac0.app/docs/ask.md?q=<question>` answers in Markdown from the written pages, citing them. Error help: `GET https://docs.ac0.app/docs/fix/<code>.md` for an agc error code.

Start with the [task directory](https://docs.ac0.app/docs/agents/start.md), and fetch only the topic bundle or page you need.

[Agent briefs](https://docs.ac0.app/docs/agent-briefs.json) hold every page's brief and execution contract. For one page's sources and required context, add .json to its URL.

Each canonical page has an HTML view and a .md twin under /docs/.

## Getting started

- [What Agent Cloud is](https://docs.ac0.app/docs/getting-started/what-agent-cloud-is.md): What Agent Cloud does for the apps your coding agent builds, what it costs during the beta, and a glossary of the words you'll see.
- [The life of a release](https://docs.ac0.app/docs/getting-started/the-life-of-a-release.md): What happens between `agc ship` and a live app, stage by stage, and why a failure before the migrate step leaves production untouched.
- [Quickstart: a new app from an empty folder](https://docs.ac0.app/docs/getting-started/quickstart-new-app.md): From an empty folder to a live app at <name>.ac0.app: the preview and publish links you'll get along the way, or a console prompt that makes the app yours from the start.
- [Quickstart: an existing app](https://docs.ac0.app/docs/getting-started/quickstart-existing-app.md): Bring a repo that already has code to Agent Cloud: link it with `agc init`, check what it inferred, and ship the first release.
- [Installing agc](https://docs.ac0.app/docs/getting-started/installing-agc.md): Install the agc command-line tool once per machine, check it's the right `agc` on your PATH, and see how it keeps itself current.
- [Working with your coding agent](https://docs.ac0.app/docs/getting-started/working-with-your-coding-agent.md): How Claude Code, Codex and Cursor learn to use Agent Cloud, how you claim an app and connect your agent, and how the agent reports platform problems.

## Common questions

- [How do I deploy an app built with Claude Code, Cursor or Codex?](https://docs.ac0.app/docs/questions/deploy-an-app-built-with-claude-code-cursor-or-codex.md): Put an app your coding agent wrote online with Agent Cloud: install agc, run agc init in the app's folder, and let the agent ship; the first release goes out without an approval step.
- [How do I let a coding agent deploy to production safely?](https://docs.ac0.app/docs/questions/let-a-coding-agent-deploy-to-production-safely.md): Let Claude Code, Codex or Cursor ship to production without handing it production credentials: rehearse releases on a copy of production, keep data changes to rehearsed migrations that can't lose rows, and have a person approve what drops or empties data, or every release under watch.

## Core concepts

- [Mirror vs production](https://docs.ac0.app/docs/concepts/mirror-vs-production.md): What differs between your mirror (your own masked copy of the app) and production, so you know what you can break and what only `agc ship` can change.
- [Operations and waiting](https://docs.ac0.app/docs/concepts/operations-and-waiting.md): Every ship is an operation that runs on Agent Cloud, not in your terminal; this page covers how to follow one, re-attach to it, repeat a ship safely, tell whether it went live, and what a receipt is and isn't evidence of.
- [Rehearsals](https://docs.ac0.app/docs/concepts/rehearsals.md): Before a release touches production, Agent Cloud runs it against a fresh, unmasked fork of production and runs your checks there; this page explains what runs, what you get back, and what a rehearsal can still reach.
- [Approvals](https://docs.ac0.app/docs/concepts/approvals.md): Which releases and changes wait for a person, who that person is, how long the question stays open, and which decisions can be answered in the agent's chat versus only in the console.
- [Masking](https://docs.ac0.app/docs/concepts/masking.md): How Agent Cloud gives agents realistic data without production access: which columns stay as they are on mirrors and masked production reads, how masked values are made, how to add masking, and how an owner makes a column visible.
- [What agents can and can't do](https://docs.ac0.app/docs/concepts/what-agents-can-and-cant-do.md): The lines Agent Cloud draws around a coding agent (no production credentials, secrets by name only, people decide what can't be undone) and where those lines are guarantees versus defense in depth.
- [Where apps run (targets)](https://docs.ac0.app/docs/concepts/where-apps-run.md): An app runs on a deployment target, Agent Cloud's own GCP node by default or an organization's own AWS account; this page explains the kinds of target and what changes for an app and its agent on a private one.

## Building an app

- [Recommended stack](https://docs.ac0.app/docs/build/recommended-stack.md): The stack Agent Cloud builds and runs with no Dockerfile, the three package.json scripts it relies on, and the two starter apps `agc init` copies into an empty folder.
- [Python apps](https://docs.ac0.app/docs/build/python-apps.md): How Agent Cloud recognizes, builds and runs a Python (uv) app, and what it needs from your project.
- [How your image is built](https://docs.ac0.app/docs/build/how-your-image-is-built.md): How Agent Cloud turns a snapshot into a production image, with your Dockerfile or its own, and the time limits on a build.
- [What goes into a snapshot](https://docs.ac0.app/docs/build/what-goes-into-a-snapshot.md): Which files `agc ship` sends, which it always leaves out, the size limits, how symlinks are handled, and how to declare build inputs too big for the snapshot as assets.
- [Local development with agc up](https://docs.ac0.app/docs/build/local-development-with-agc-up.md): Run your app on your own machine against a masked copy of production, one mirror per git branch, with `agc up` and `agc down`, and run one command against it with `agc exec`.
- [The mirror sandbox and egress](https://docs.ac0.app/docs/build/the-mirror-sandbox-and-egress.md): Your mirror's app, worker and `agc exec` run inside an OS sandbox whose only way out is agc's allowlisting proxy; `[mirror] egress_allow` grants the hosts it may reach.
- [.env.mirror, the shell environment and dependencies](https://docs.ac0.app/docs/build/env-mirror-and-shell-environment.md): Test keys for your mirror go in `.env.mirror`, your shell's other variables are held back, and `agc up` installs dependencies outside the mirror's sandbox and runs install scripts inside it, offline.
- [Background work and workers](https://docs.ac0.app/docs/build/background-work-and-workers.md): Run jobs outside the request in a worker process, with a queue table in your own database that survives crashes, retries and duplicate workers.
- [Sending email](https://docs.ac0.app/docs/build/sending-email.md): Send plain-text email from your app through Agent Cloud with an idempotency key, captured on mirrors and in rehearsals, sent for real only in production; how it's authenticated, and how an owner resumes an app whose mail is held.
- [Choosing a sign-in shape](https://docs.ac0.app/docs/build/choosing-a-sign-in-shape.md): Pick how people get into your app (a private tool behind the edge gate, public pages with Agent Cloud sign-in, or fully public) with one manifest key, and add Agent Cloud sign-in with two routes.
- [The edge gate (shape 1)](https://docs.ac0.app/docs/build/the-edge-gate.md): Put a whole app behind Agent Cloud's sign-in gate with `[auth] provider = "edge"`; the app reads who is signed in from request headers, and `agc audience` decides who gets in.
- [Secrets](https://docs.ac0.app/docs/build/secrets.md): Give an app a credential it needs, like an API key, without the value ever passing through an agent: declare the name in agentcloud.toml, hand the person a console link, and know how Agent Cloud seals secrets and its own tokens.
- [Workflow events and replay](https://docs.ac0.app/docs/build/workflow-events-and-replay.md): Write one JSON line to stdout per step of a business process, then replay any entity's steps in order with `agc replay` on your mirror or in the console's Replay tab for production; with the exact rules each event field must pass.
- [Custom domains](https://docs.ac0.app/docs/build/custom-domains.md): Serve an app at your own domain next to its Agent Cloud address; an agent asks with `agc domain add`, a person approves and sets two DNS records, and Agent Cloud verifies, issues a certificate and routes it. Also how a person moves the app's own `<label>.ac0.app` address.
- [Your app's icon and link preview](https://docs.ac0.app/docs/build/your-apps-icon.md): Give an app its own icon: the agent draws it as SVG, `agc icon use icon.svg` sets it, and Agent Cloud sanitizes it, keeps it as a new version, and makes the favicon, home-screen icons, web manifest and a 1200×630 link preview from it, with no release.
- [Your app's feature map: features.toml and agc features](https://docs.ac0.app/docs/build/your-apps-feature-map.md): Ship a features.toml next to agentcloud.toml and Agent Cloud keeps a map of what a person can do with the app: its stages, journeys and features, which parts your checks prove, and how each feature matured, release by release. Read it with agc features.

## Data and databases

- [Your app's Postgres](https://docs.ac0.app/docs/data/your-apps-postgres.md): Each app's managed Postgres 18: one environment variable, verified TLS, compute that sleeps when idle, and the schema conventions Agent Cloud checks.
- [Migrations](https://docs.ac0.app/docs/data/migrations.md): How schema and data changes reach your mirror and production as plain SQL files that Agent Cloud applies and records, and how each is tested against production data before it runs.
- [Safe schema changes](https://docs.ac0.app/docs/data/safe-schema-changes.md): Change a column's shape without losing rows or breaking the live release: expand, migrate and contract in three ships, plus the no-transaction, drops and rekeys header directives.
- [Importing existing data](https://docs.ac0.app/docs/data/importing-existing-data.md): Validate a pg_dump locally with agc import, then a person uploads it from the console link before the app's first release.
- [Reading production safely](https://docs.ac0.app/docs/data/reading-production-safely.md): agc db query --env prod reads a masked branch of production, 100 rows at most; people get one-hour read-only console logins; on a customer's private target production data reaches an agent only if an owner allows production reads.
- [Mirror DB tools](https://docs.ac0.app/docs/data/mirror-db-tools.md): agc db (psql on your mirror), agc db query, agc db diff and agc db reset, for working with your mirror's database, and the seed data agc loads into a mirror that starts empty.

## Checks and verification

- [Checks overview](https://docs.ac0.app/docs/checks/checks-overview.md): What Agent Cloud tests before a release goes live, where each kind of check runs, what exit 11 means, and the lint warnings agc check and agc ship print.
- [Invariants](https://docs.ac0.app/docs/checks/invariants.md): SQL checks that state what must stay true in your data, run on your mirror by agc check and on a branch of production before every release, and how Agent Cloud holds a check that caught a bad release or proves a fix.
- [Smoke flows](https://docs.ac0.app/docs/checks/smoke-flows.md): HTTP steps in agentcloud.toml that run against your app on the mirror and in every rehearsal, the racing flow each invariant needs, and the exact step grammar.
- [AI browser verification](https://docs.ac0.app/docs/checks/ai-browser-verification.md): agc verify has an AI agent try your app's main feature in a real browser on the mirror; what it sends to an outside model, the organization switch that allows it, and why it never blocks a ship.

## Shipping and operating

- [agc ship, end to end](https://docs.ac0.app/docs/ship/agc-ship-end-to-end.md): What `agc ship` sends, the states an operation passes through, the outcomes and exit codes it ends in, and the flags that change it.
- [Approving in a session vs the console](https://docs.ac0.app/docs/ship/approving-in-a-session-vs-the-console.md): When a release needs a person, how an agent asks in its own chat with `decision.word`, the exact replies it may act on, and which decisions only the console takes.
- [After release: live, the watch window, rollback](https://docs.ac0.app/docs/ship/after-release-watch-and-rollback.md): What happens after `agc ship` returns live: how the guarded switch and the sentinel watch a release, how to read an incident's evidence, and how to roll forward with a fix when a release breaks.
- [Investigating a reported problem](https://docs.ac0.app/docs/ship/investigating-a-reported-problem.md): Turn "my booking isn't showing up" into a fix without asking the person for logs, using `agc capsule`, `agc logs` (scrubbed production and rehearsal lines), `agc up --at`, a check that fails the same way, and `agc ship --fixes`.
- [Well-Architected review](https://docs.ac0.app/docs/ship/well-architected-review.md): Agent Cloud's automatic review of how each app is built and run, its rules, how an agent fixes findings with `agc review`, and how an owner dismisses one.
- [CI/CD with deploy keys](https://docs.ac0.app/docs/ship/ci-cd-with-deploy-keys.md): Make, scope and revoke a per-app deploy key, ship from CI with it in `AGC_TOKEN`, ship an exact commit with `--from-git`, and make retries safe with idempotency keys and `agc wait --idempotency-key`.
- [The Work tab, agc work, agc builder](https://docs.ac0.app/docs/ship/work-tab-and-builders.md): The Work tab and `agc work`: one record per change from ask to production, Needs you, `agc builder`, and the tasks, counters, task tokens and verdicts behind each item.
- [Watch a build on the Live screen](https://docs.ac0.app/docs/ship/the-live-screen.md): What every control on a Work item's Live screen does: the step count, arrows, Play and Replay (which move only the screen, never the builder), Back to now, and the `agc now` line the builder sends.
- [The app's GitHub repo](https://docs.ac0.app/docs/ship/the-apps-github-repo.md): Every app's code lands in a private GitHub repo, one commit per live release, with `main` protected; how to join it, take it to your own GitHub, and what happens on delete.
- [PR previews](https://docs.ac0.app/docs/ship/pr-previews.md): Try a pull request against a writable copy of the app's data at its own preview address with `agc preview`, before releasing it.
- [Devboxes](https://docs.ac0.app/docs/ship/devboxes.md): On agent.cloud you build and run an app on your own computer with `agc init` and `agc up`; `agc devbox` answers `devbox.not_available` with that fix.
- [Deleting and restoring an app](https://docs.ac0.app/docs/ship/deleting-and-restoring-an-app.md): How an app's owner or an organization owner deletes an app in the console, what stops at once, what's kept for 30 days, how to restore it, and what agents see afterwards.

## Organization owners

- [Setting up an organization](https://docs.ac0.app/docs/owners/setting-up-an-organization.md): What an organization holds, how your company's organization comes to exist, how to claim its email domains, how colleagues join it, and the console's move to its own host.
- [Members, roles, invites, join requests](https://docs.ac0.app/docs/owners/members-roles-invites-join-requests.md): Who is in your organization, what owners can do that builders can't, and how people get in through invites and join requests.
- [Password sign-in for an app](https://docs.ac0.app/docs/owners/password-sign-in-for-an-app.md): Turn on Password for one app so people can sign in with an email and password, set their own by email link, or get one an owner gives them; the app never sees a password.
- [Company sign-in (SSO) and SCIM](https://docs.ac0.app/docs/owners/company-sign-in-and-scim.md): Connect Google Workspace, Okta, Entra ID or another SAML or OIDC provider so it decides who is in your organization and with which role, and how long console sessions last and what ends them.
- [New-app defaults](https://docs.ac0.app/docs/owners/new-app-defaults.md): Set how new apps in your organization sign people in, whether they're listed in your launcher, and which stack they start with; how a linked launcher gets each app's card, and the keys an app uses to shape or drop it.
- [Managing agents](https://docs.ac0.app/docs/owners/managing-agents.md): Who an agent is, what each purpose and credential kind may do and how long it lasts, and how to connect, narrow or revoke the agents and deploy keys that work as you, and what revoking cleans up.
- [Release governance](https://docs.ac0.app/docs/owners/release-governance.md): Decide which releases wait for a person (an app's `routine` or `watch` autonomy) and its monthly budget, in the console or with `agc limits set`, who can approve, how held checks protect you, and what the approval page at /a/<id> shows.
- [Connections](https://docs.ac0.app/docs/owners/connections.md): Add your organization's Snowflake, DuckLake, Flight SQL, Redis, ClickHouse or HTTP API once, decide which apps may read or write it, and let agents ask for access without ever seeing a credential.
- [Context docs for agents](https://docs.ac0.app/docs/owners/context-docs-for-agents.md): Write your organization's conventions down once, as markdown docs that every agent in the organization reads with agc context before it builds; a person's own Builder agent can add and edit them too.
- [Activity log](https://docs.ac0.app/docs/owners/activity-log.md): The organization's append-only record of who did what and when, how long it's kept and which kinds of events it holds, and the other records of what happened to an app: receipts, app events, approvals and its GitHub repository.
- [Notifications in Slack and email](https://docs.ac0.app/docs/owners/notifications.md): Who Agent Cloud notifies about an app (approvals, failed or held releases, incidents, new asks), and how to send an app's notices to a Slack channel or a team email address with `agc notifications`.
- [Deployment targets (owner view)](https://docs.ac0.app/docs/owners/deployment-targets.md): Choose where your organization's new apps run, add your own AWS account as a target, and hold, size or remove it from the console, then delete its AWS stack and clean up what a revoked runner can't.

## Private targets (infra teams)

- [Architecture of a private target](https://docs.ac0.app/docs/targets/architecture-of-a-private-target.md): What runs in your AWS account on a private target, the only paths traffic takes in and out, and how its runner registers with an STS proof, a single-use code and an hour-long token.
- [Installing with infra-agent.md](https://docs.ac0.app/docs/targets/installing-with-infra-agent-md.md): Run the generated runbook that installs a private target in your AWS account, with the CloudFormation parameters and target settings it uses.
- [Network and egress](https://docs.ac0.app/docs/targets/network-and-egress.md): Every path out of a private target, from the node's security group to the egress proxy, the relay, granted connection hosts, owner-approved outbound hosts and the CoreDNS rewrite that sends apps there.
- [Your IdP at the edge](https://docs.ac0.app/docs/targets/your-idp-at-the-edge.md): Put your own identity provider's session in front of apps on a private target, so people who are signed in to your portal open apps with no sign-in page.
- [Sizing and capacity](https://docs.ac0.app/docs/targets/sizing-and-capacity.md): How a private target decides whether a release fits, from the manifest's cpu and memory to the owner's app cap and the node, and what ship.over_cap and ship.no_room mean.
- [Manifests and updates](https://docs.ac0.app/docs/targets/manifests-and-updates.md): Updating a private target's Kubernetes objects in five reviewed steps, the runner's self-upgrade, the stack policy for CloudFormation updates, and the version matrix.
- [The doctor](https://docs.ac0.app/docs/targets/the-doctor.md): The agc-doctor script on a private target's node prints one redacted JSON report about the node, its connectivity, isolation and manifests; it's the first thing to send Agent Cloud.

## Reference

- [CLI reference](https://docs.ac0.app/docs/reference/cli-reference.md): Every agc command, subcommand and flag as agc 0.3.0 dispatches them, every `agc help` topic and the docs page it maps to, and the commands the spec describes that answer cli.not_available, with what to do instead.
- [The JSON envelope](https://docs.ac0.app/docs/reference/the-json-envelope.md): The JSON envelope normal commands print, field by field, with the outcomes agc actually sets, the three commands that stream NDJSON, how agc chooses JSON or text, and what each exit code means and what to do about it.
- [Error code catalog](https://docs.ac0.app/docs/reference/error-code-catalog.md): Every error code agc can return, with its exit code, the command that emits it, its message and its fix, generated from the source.
- [agentcloud.toml reference](https://docs.ac0.app/docs/reference/agentcloud-toml-reference.md): Every key agc and Agent Cloud read from agentcloud.toml, what each takes and who reads it, plus the keys agc init writes that nothing reads.
- [App runtime contract](https://docs.ac0.app/docs/reference/app-runtime-contract.md): The environment variables and HTTP headers your app's processes get in production, in a rehearsal and on a mirror, including the variables for each Snowflake, DuckLake, Flight SQL and HTTP API connection, which role they carry where, and the connection code Agent Cloud gives for DuckLake and Flight SQL.
- [Platform APIs: sign-in and email](https://docs.ac0.app/docs/reference/sign-in-broker-api.md): The two Agent Cloud APIs an app calls: the sign-in broker's routes (authorize, token, users, and the starts for your own sign-in buttons), the person's role, the code's lifetime and the test mode mirrors and rehearsals use; and POST $AGC_EMAIL_URL, which sends one plain-text email per idempotency key, with every response, every error and where mail is captured instead of sent.
- [agc environment variables, environments and local state](https://docs.ac0.app/docs/reference/agc-environment-variables.md): Every environment variable agc itself reads, what it changes and its default; how agc keeps the production and staging environments apart and what `cli.environment_mismatch` means; and every file agc keeps in its state folder, with which are safe to delete.
- [Limits and quotas](https://docs.ac0.app/docs/reference/limits-and-quotas.md): Every numeric limit agc and Agent Cloud enforce, in one table, each read from its source line and paired with the error you get past it.
- [Versioning, changelog and release notes](https://docs.ac0.app/docs/reference/changelog-and-release-notes.md): Agent Cloud ships under one semantic version for the CLI, control plane, runner and observability, treats breaking what personal users already do as a bug before 1.0, and lists here what changed in each version, written for the people and agents who use it, with the names and codes as they are today.

## Security and trust

- [Security overview and threat model](https://docs.ac0.app/docs/security/security-overview-and-threat-model.md): Who Agent Cloud trusts with what, the boundaries that stand between a coding agent and production, and which of them are hard limits versus defence in depth.
- [Tenant isolation](https://docs.ac0.app/docs/security/tenant-isolation.md): How Agent Cloud keeps each app's pods away from other apps, the cluster and cloud credentials, which controls apply per cluster type (including private targets), and how the nightly probe app and the doctor verify them.
- [Production data protection](https://docs.ac0.app/docs/security/production-data-protection.md): What production data an agent can see on Agent Cloud, through masked copies, read-only masked queries, pass-or-fail rehearsal results and scrubbed logs, where an app's data lives on a private target, and the owner setting that allows read-only production queries there.
- [Web security for the console and apps](https://docs.ac0.app/docs/security/web-security-for-the-console-and-apps.md): The browser-facing defences on the Agent Cloud console and on apps under Agent Cloud: why the console and apps are separate sites, cookies, CSRF tokens, CSP, HSTS, the edge origin check and its `cross_origin` exceptions for webhooks and public forms, and the login-CSRF binding of edge sign-in.
- [How Agent Cloud protects production](https://docs.ac0.app/docs/security/known-limits-stated-honestly.md): What each Agent Cloud security control protects, where it applies and its numbers, so a security reviewer can choose autonomy and approval settings.
- [Vulnerability disclosure and abuse](https://docs.ac0.app/docs/security/vulnerability-disclosure-and-abuse.md): Where to report a security issue in Agent Cloud or abuse by an app hosted on it, and what Agent Cloud publishes at /.well-known/security.txt and /abuse.

## Compare and migrate

- [Agent Cloud vs Vercel, and moving over](https://docs.ac0.app/docs/compare/agent-cloud-vs-vercel.md): How Agent Cloud and Vercel differ for an app with a server, background work and a Postgres database, and how to prepare a Vercel app for Agent Cloud.
- [Agent Cloud vs Railway, Render, Fly and Heroku](https://docs.ac0.app/docs/compare/agent-cloud-vs-railway.md): How Agent Cloud compares with Railway, Render, Fly.io and Heroku for a server plus Postgres, and how to prepare an app from any of them for Agent Cloud.
- [Agent Cloud vs Lovable / Bolt / Replit, and moving over](https://docs.ac0.app/docs/compare/agent-cloud-vs-lovable-bolt-replit.md): Build an app in Lovable, Bolt or Replit, then run it on Agent Cloud with rehearsed releases, built-in sign-in, sealed secrets and masked data, and how to prepare the code, sign-in, files and data export.
- [Agent Cloud vs your own AWS](https://docs.ac0.app/docs/compare/agent-cloud-vs-your-own-aws.md): What an Agent Cloud private target in your AWS VPC gives you compared with assembling ECS or EKS, RDS and a release process yourself, including what stays outside your account.
- [Which platform should my agent deploy to?](https://docs.ac0.app/docs/compare/which-platform-should-my-agent-deploy-to.md): A decision guide, for coding agents and the people prompting them, on when to deploy an app to Agent Cloud and when Vercel, Railway, Render, Fly.io, Heroku, a builder like Lovable, or your own AWS fits better.

## Optional

- [Complete documentation](https://docs.ac0.app/llms-full.txt): every page above in one Markdown file, about 1.2 MB.
- [Task directory](https://docs.ac0.app/docs/agents/start.md): bundles of the pages needed for common agent tasks.
- [Agent briefs](https://docs.ac0.app/docs/agent-briefs.json): every page's brief and execution contract, as JSON, about 84 KB.
- [FAQ](https://docs.ac0.app/faq.md): common questions, each answered by the opening of the page that covers it.
- [Docs changelog](https://docs.ac0.app/docs/changelog.xml): every change to these docs, as an Atom feed.
