
# Devboxes

> **Preview.** On agent.cloud, build and run the app on your computer with `agc up`: it gives your agent the same loop, with a production-like mirror.

## How do I build an app on agent.cloud today?

On your own computer, in the app's folder:

```bash
agc init
agc up
agc check
agc ship
```

The full loop: [Local development with agc up](/docs/build/local-development-with-agc-up.md). Handing it to your agent: [Working with your coding agent](/docs/getting-started/working-with-your-coding-agent.md).

## Ask your agent

```text
Build and run camp-bookings on this computer with agc up, then check it and ship it.
```

## What does `agc devbox` do on production?

Every `agc devbox` command answers `devbox.not_available` (exit 1) whose fix is to build on this computer with `agc init` and `agc up`.

## Errors

| Code | Exit | Cause | Fix |
|---|---|---|---|
| `devbox.not_available` | 1 | Devboxes aren't on in this environment | Build on this computer with `agc init` and `agc up` |

```json
{
  "ok": false, "product": "agent.cloud", "command": "devbox",
  "error": { "code": "devbox.not_available", "message": "Devboxes aren’t available on this agent.cloud yet.",
             "fix": "Build and run the app on this computer with `agc init` and `agc up`, as today.", "retryable": false },
  "next": [{ "cmd": "agc help onboarding", "why": "the laptop way" }]
}
```

## Agent notes

- On `devbox.not_available`, don't retry or ask for a join code. Run `agc init`, then `agc up`.

## Related

- [Local development with agc up](/docs/build/local-development-with-agc-up.md)
- [Environments](/docs/reference/agc-environment-variables.md#environments-production-and-staging)
- [Working with your coding agent](/docs/getting-started/working-with-your-coding-agent.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "ship/devboxes: <what is wrong>" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
