# Agent Cloud FAQ

> Short answers to the questions people and coding agents ask most about Agent Cloud, each taken from the page that covers it.

Each answer is the opening of the page it links to; read that page for the full steps, limits and source check. Not answered here? Ask: GET https://docs.ac0.app/docs/ask.md?q=<question>

## Getting started

### What is Agent Cloud?

Agent Cloud hosts web apps that coding agents build and ship themselves. You describe the app, and your agent writes the code and runs `agc ship`.

Source: [What Agent Cloud is](https://docs.ac0.app/docs/getting-started/what-agent-cloud-is.md#what-is-agent-cloud)

### Is Agent Cloud free?

Yes. Agent Cloud is free during the beta: the app's web server and worker, its Postgres database, every agent's mirror, rehearsals and releases. There are no plans, prices or paid tier; when the beta ends, this page will say what changes.

Source: [What Agent Cloud is](https://docs.ac0.app/docs/getting-started/what-agent-cloud-is.md#is-agent-cloud-free)

### How do I deploy an app built with Claude Code, Cursor or Codex?

Install agc, run `agc init` in the app's folder, and let the agent take it from there. The first release needs no approval. The app is live at `https://<name>.ac0.app` when `agc ship` returns exit 0 with `"outcome": "live"`. If the agent isn't connected to an account yet, the first ship runs at a private preview, and you sign up with the publish link to put it live.

Source: [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)

### How do I install the agc CLI?

`agc` is the command-line tool your coding agent uses to work with Agent Cloud. Install it once per machine and it keeps itself current. It worked when `agc version` answers with `"product": "agent.cloud"`, a `version` and a `built` time.

Source: [Installing agc](https://docs.ac0.app/docs/getting-started/installing-agc.md)

### How does my coding agent learn to use Agent Cloud?

Your coding agent learns how to use Agent Cloud from the app's `AGENTS.md`, which `agc init` writes. Codex and Cursor read it, and `CLAUDE.md` points Claude Code at it. A working setup answers `agc status` with `"ok": true` and the app's name.

Source: [Working with your coding agent](https://docs.ac0.app/docs/getting-started/working-with-your-coding-agent.md)

### Do I need an account to start?

The first `agc init` on a machine needs no account: it makes an unclaimed agent identity, whose apps belong to nobody until a person opens the app's `data.claim_url`. The agent relays it exactly as printed. An app made from a console join code is already yours, with no claim link. On `init.join_other_person`, the code is another person's: run `AGC_HOME=<new folder> agc init --join <code>`.

Source: [Working with your coding agent](https://docs.ac0.app/docs/getting-started/working-with-your-coding-agent.md#claiming-an-app-and-connecting-your-agent)

### What stack should I use for a new app?

For a new app, use TypeScript: a React UI built with Vite, and one Node 24 server that serves it and the API under `/api` on `PORT`. Agent Cloud builds it with no Dockerfile, and `agc init --name <name> --stack typescript` writes a starter in that shape.

Source: [Recommended stack](https://docs.ac0.app/docs/build/recommended-stack.md)

### Can I deploy a Python app?

Agent Cloud builds a Python app without a Dockerfile when the repo is a uv project: a root `pyproject.toml` whose `[project]` table declares `dependencies`. Commit `uv.lock`, set `[service.web] command = "uvicorn app.main:app --host 0.0.0.0 --port $PORT"` (adjusted to your module), then `agc ship`. Success is `"outcome": "live"` with exit 0.

Source: [Python apps](https://docs.ac0.app/docs/build/python-apps.md)

### Do I need a Dockerfile?

Every `agc ship` builds one image from the snapshot, and the rehearsal and production run that exact image, by digest. A root `Dockerfile` is used as is; without one, Agent Cloud generates one for Node or a uv (Python) project. Success is the ship passing `building` and ending `"outcome": "live"`.

Source: [How your image is built](https://docs.ac0.app/docs/build/how-your-image-is-built.md)

### Should my agent deploy to Agent Cloud or somewhere else?

Deploy to Agent Cloud for one web server plus Postgres that an agent builds and changes, when breaking production data would hurt. Check a repo with `agc init` and `agc doctor`.

Source: [Which platform should my agent deploy to?](https://docs.ac0.app/docs/compare/which-platform-should-my-agent-deploy-to.md)

### How is Agent Cloud different from Vercel?

Vercel runs front ends and functions, with Postgres from a Marketplace provider. Agent Cloud runs one long-lived server, an optional worker and the app's own Postgres, and rehearses every database change on a fresh branch of production before it goes live.

Source: [Agent Cloud vs Vercel, and moving over](https://docs.ac0.app/docs/compare/agent-cloud-vs-vercel.md)

### Can I use Agent Cloud with Lovable, Bolt or Replit?

Lovable, Bolt and Replit are where you build an app by describing it. Agent Cloud is where a coding agent keeps running and changing it once people depend on it. Build there, sync to GitHub, then let your agent move it.

Source: [Agent Cloud vs Lovable / Bolt / Replit, and moving over](https://docs.ac0.app/docs/compare/agent-cloud-vs-lovable-bolt-replit.md)

## Safety and control

### How do I let a coding agent deploy to production safely?

The agent never holds a production credential, and `agc ship` is the only way production changes. Releases with checks, migrations or a worker rehearse on a fork of production first. A person approves every migration that drops data, and every release under `watch`.

Source: [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)

### How do I stop an AI agent from deleting my production database?

The agent never holds a credential that can delete production, and every data change goes through a rehearsal it can't skip. A rehearsal fails if any existing row disappears, and a destructive migration waits for a person in the console.

Source: [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#what-each-safeguard-stops)

### How do I make a person approve before an AI agent deploys?

**Choose the autonomy deliberately.** Under `routine`, code-only releases and unflagged migrations run with production's credentials and no person. They could read real data and send it anywhere; masking protects only the copies the agent reads. Pick `watch` for apps holding data an agent's code must never touch.

Source: [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#approving-releases)

### What can a coding agent do on Agent Cloud, and what can't it?

A coding agent builds, tests and ships. It never holds a production credential, never sees or sets a secret value, and never decides anything that can't be undone. When it hits one of those lines, agc says so: exit 10 means a person decides, 12 means policy says no.

Source: [What agents can and can't do](https://docs.ac0.app/docs/concepts/what-agents-can-and-cant-do.md)

### Which releases wait for a person's approval?

An approval asks one person about one release. Agent Cloud asks only when a change needs a human, such as a migration that drops data or any release of an app set to `watch`. The ship exits 10 with `"outcome": "waiting_approval"`; once the person approves, it goes live (exit 0, `"outcome": "live"`).

Source: [Approvals](https://docs.ac0.app/docs/concepts/approvals.md)

### What is the difference between routine and watch autonomy?

Both are stored on Agent Cloud, never in the repo, and a snapshot can't change them. `agc status` shows them as `data.autonomy` and `data.budget`; `agc limits` adds the app's instances, storage cap, where it runs and `console_url`.

Source: [Release governance](https://docs.ac0.app/docs/owners/release-governance.md#autonomy-and-budget)

### How do I keep API keys and secrets away from my coding agent?

Not through anything Agent Cloud runs. The running app itself is the exposure:

Source: [Secrets](https://docs.ac0.app/docs/build/secrets.md#where-a-secret-could-leak)

### How do I know a deploy actually went live?

Agent Cloud sets the outcome from its own build, rehearsal and release, so an agent can't produce it by claiming success. Each operation state maps to one exit code and outcome, and only `live` is a shipped release.

Source: [Operations and waiting](https://docs.ac0.app/docs/concepts/operations-and-waiting.md#outcomes-and-receipts)

### What are Agent Cloud's known security limits?

This page gives the exact scope of each Agent Cloud security control and the setting to choose: what it covers, where it applies and its numbers. For the strictest separation between agents and production data, set the app's autonomy to `watch` and decide its releases in the console.

Source: [How Agent Cloud protects production](https://docs.ac0.app/docs/security/known-limits-stated-honestly.md)

## Data and databases

### Does every app get a database?

Each app has its own managed Postgres 18 database, and production, every mirror and every rehearsal are branches of it. Your code gets the connection string in one environment variable, `DATABASE_URL` unless `[data.db] env` names another. `agc doctor` passes its "data wiring" check when your source reads that name.

Source: [Your app's Postgres](https://docs.ac0.app/docs/data/your-apps-postgres.md)

### How do I give a coding agent realistic data without production access?

Every copy of production an agent can read (your mirror, `agc db reset`, `agc up --at`, `agc db query --env prod`) is masked. Names, emails, phones, addresses and free text are replaced. Numbers, dates, booleans, UUIDs and labels stay real, so totals, joins, invariants and bugs still reproduce.

Source: [Masking](https://docs.ac0.app/docs/concepts/masking.md)

### What does masking hide from agents?

Every copy of production an agent can read (your mirror, `agc db reset`, `agc up --at`, `agc db query --env prod`) is masked. Names, emails, phones, addresses and free text are replaced. Numbers, dates, booleans, UUIDs and labels stay real, so totals, joins, invariants and bugs still reproduce.

Source: [Masking](https://docs.ac0.app/docs/concepts/masking.md)

### How do I change my app's database schema?

Production's schema and data change only through SQL files in `migrations/`. `agc migrate` applies new files to your mirror, and `agc ship` applies them to production after rehearsing them on a branch of production. Success on the mirror is the stem in `data.applied`; in production, exit 0 with `"outcome": "live"`.

Source: [Migrations](https://docs.ac0.app/docs/data/migrations.md)

### How do I test a database migration against production data before it runs?

Test a migration twice: on the masked mirror while you write it, and on an exact copy right before it ships. For values it must not change, add invariants. `hold = "unchanged"` runs a query before and after the migrations (around `agc migrate`, and again in the rehearsal) and requires the same result. `hold = "equal:<check>"` requires a new query, after them, to return what a named check returned before. Together they prove a backfill:

Source: [Migrations](https://docs.ac0.app/docs/data/migrations.md#testing-against-production-data)

### Can an agent query production data?

`agc db query "<sql>" --env prod` runs one read-only statement against a masked branch of production, never production itself. It returns at most 100 rows, and `data.as_of` says when the branch was taken. Success is `"ok": true` with `"env": "prod"` and `"read_only": true`.

Source: [Reading production safely](https://docs.ac0.app/docs/data/reading-production-safely.md)

## Building and shipping

### What is a mirror?

A mirror is your copy of the app for one task: your code running locally on a masked branch of production's database. Start it with `agc up --detach` and break it freely; real users never see it. Only `agc ship` changes production, the live app (exit 0, `"outcome": "live"`).

Source: [Mirror vs production](https://docs.ac0.app/docs/concepts/mirror-vs-production.md)

### What is a rehearsal?

A rehearsal is a dry run of your release on a fresh copy of production's database. `agc ship` runs one for you: it migrates the copy, starts the new code there and runs your checks. A failure leaves production unchanged; a pass lets the release go on toward live.

Source: [Rehearsals](https://docs.ac0.app/docs/concepts/rehearsals.md)

### What tests does Agent Cloud run before a release goes live?

Checks are the `[[check.invariant]]` and `[[check.smoke]]` entries in `agentcloud.toml`: the only tests Agent Cloud runs on a release, not your own test suite. Run them with `agc check` on your mirror. `agc ship` runs them again on a branch of production, and a failure stops the release (exit 11).

Source: [Checks overview](https://docs.ac0.app/docs/checks/checks-overview.md)

### How do I run background jobs?

A worker is your web image running another command, for work nobody should wait on, like confirmation emails. Declare it with `[service.worker] command`, queue jobs in Postgres, and make each safe to run twice. Success: `agc ship` passes `background work survives crashes and duplicate workers` and returns `"outcome": "live"`.

Source: [Background work and workers](https://docs.ac0.app/docs/build/background-work-and-workers.md)

### How do I add sign-in to my app?

Every app picks one of three sign-in shapes with the `[auth] provider` key in `agentcloud.toml`: `"edge"`, `"agent.cloud"` (the same as leaving it out) or `"none"`. After `agc ship`, `agc status` shows an organization app's live mode in `data.sign_in.mode`, and who can open it in `data.audience`.

Source: [Choosing a sign-in shape](https://docs.ac0.app/docs/build/choosing-a-sign-in-shape.md)

### Can I use my own domain?

`agc domain add example.com` asks a person to approve serving the app at `example.com` and answers with two DNS records to set. Once they approve and the records resolve, Agent Cloud verifies the domain, issues it a certificate and routes it to the live release.

Source: [Custom domains](https://docs.ac0.app/docs/build/custom-domains.md)

### Can I deploy from CI?

A deploy key lets CI ship one app without a person's agent. Put it in `AGC_TOKEN` and run `agc ship --from-git <commit>`: the release follows the same rehearsal and approval rules as any ship. Success is exit 0 with `"outcome": "live"`, and exit 10 means a person approves.

Source: [CI/CD with deploy keys](https://docs.ac0.app/docs/ship/ci-cd-with-deploy-keys.md)

### Where is my app's code stored?

Each app's code is in a private repo in Agent Cloud's GitHub organization, `agentcloud-apps/<app>`, with one commit per live release. Pushes and merges don't deploy: only `agc ship` does. Whoever manages the app can join it as a maintainer, or move it to their own GitHub, from the app's settings.

Source: [The app's GitHub repo](https://docs.ac0.app/docs/ship/the-apps-github-repo.md)

### Can apps run in my own AWS account?

Every app runs on a deployment target. By default that's **Agent Cloud GCP**, Agent Cloud's own k3s node, with the app at `https://<app>.ac0.app`. An organization owner can add an **AWS target** in their own account, where apps run in a private VPC.

Source: [Where apps run (targets)](https://docs.ac0.app/docs/concepts/where-apps-run.md)

## How apps keep improving

### How does Agent Cloud notice problems in production?

The sentinel checks every app's traffic, error logs and pod events once a minute. Detectors are code, not a model, and each names the release it blames. The watch detectors run for the first 15 minutes after a release first serves traffic, comparing it with the release before. The rest always run.

Source: [After release: live, the watch window, rollback](https://docs.ac0.app/docs/ship/after-release-watch-and-rollback.md#incidents)

### How does my agent investigate a problem a user reported?

When someone reports a problem, investigate it from production's records yourself. `agc capsule` shows what production did around an entity, incident or window, as shapes and counts, `agc logs` reads its scrubbed lines, and `agc up --at` reproduces it on masked data. Success is a fix shipped with `--fixes`.

Source: [Investigating a reported problem](https://docs.ac0.app/docs/ship/investigating-a-reported-problem.md)

### How do I stop a fixed bug from coming back?

Once Agent Cloud holds a check, any ship that removes it or changes its definition waits for a person, who decides on the console. A ship that fixes a problem succeeds with `"outcome": "live"` and exit 0, and its new check is held from then on.

Source: [Invariants](https://docs.ac0.app/docs/checks/invariants.md#held-checks-and-fixes)

### Does Agent Cloud review how my app is built?

Agent Cloud reviews every app 5 minutes after each release goes live, daily while it has a live release, and when the owner presses **Review again** on the app's **Findings** page. Each finding has a pillar, a risk, and a fix: a prompt for the agent or a setting only the person can change. `agc review` returns the open ones.

Source: [Well-Architected review](https://docs.ac0.app/docs/ship/well-architected-review.md)

### Can an AI agent test my app in a browser before release?

`agc verify` has an AI browser agent try each `[[verify]]` goal in a real browser against your app on the mirror. The verdict rides along with the next `agc ship` to the release page and never blocks it. It runs only once an organization owner turns on **AI browser checks**.

Source: [AI browser verification](https://docs.ac0.app/docs/checks/ai-browser-verification.md)

### How do agents report problems with Agent Cloud itself?

When Agent Cloud itself misleads you (a wrong answer, a `fix` that doesn't work, a missing step), file it before working around it: one issue per problem, and never for the app's own bugs. Put what you ran, expected and got, with the error code and op or receipt id, in a file, or pass `--body -` to read stdin (never argv):

Source: [Working with your coding agent](https://docs.ac0.app/docs/getting-started/working-with-your-coding-agent.md#reporting-platform-problems)

### Do these docs improve themselves?

These docs are an Agent Cloud app that keeps itself up to date. Agents report a wrong page with `agc feedback docs "<what is wrong>" --body <file>`. The pages are checked against the code production runs, open reports are read, and fixes ship once the docs checks pass.

Source: [What Agent Cloud is](https://docs.ac0.app/docs/getting-started/what-agent-cloud-is.md#what-are-docs)
