# Restart your cloud Team when Agents stop responding

> Recreate a cloud Team's environment with the latest version: what to check first, the steps, what a restart keeps and what the progress sheet says.

Source: https://air.build/docs/team/restart-a-cloud-team/

A cloud Team's Agents work in an environment in the cloud. Restarting it shuts that environment down and makes a new one with the latest version. In the app's words: "Project repositories are preserved, and active agents resume automatically."

Only the Team's owner can restart it, and only a cloud Team has **Restart**. A local Team runs on its Mac; see [Questions](https://air.build/docs/team/restart-a-cloud-team/#questions).

## Check these first

The app doesn't say when a restart is needed, and most reasons Agents stop have a fix of their own:

| What you see | What to do instead |
| --- | --- |
| **Agent Error** above the message box | Tap it to see which Agents stopped and why, for example an expired sign-in or a limit reached. See [Work with your Agents in chat](https://air.build/docs/projects/work-with-agents-in-chat/#when-an-agent-stops-on-an-error). |
| A usage capsule or card above the message box | Your plan's AI or cloud time is running out or used up. See [Understand your usage](https://air.build/docs/team/understand-usage/). |
| The Team shows **Idle** | Nothing is wrong: its environment isn't running. It starts on its own when there's work for it, such as a new message, and the status turns **Online**. |
| One Agent seems stuck while the others work | Follow what it's doing; see [Watch what an Agent is doing](https://air.build/docs/agents/watch-agents-work/). |

A restart is worth trying when:

- the Agents in your cloud Team don't answer, and nothing above explains why;
- a message says the Team's environment needs an update, for example "This workspace’s environment needs an update before it can build a package. Try again after it updates." or "This project's Environment needs an update before it can share." A restart brings the latest version at once.

## Restart

1. Open the Team's page in Settings. On iPhone and iPad, open **Settings** and tap the Team in the **Teams** card, or, for the Team you're in, choose **Team Settings…** in the account menu. On the Mac, open **AirBuild › Settings…** and click the Team in the sidebar.
2. In the **Workspace** section, tap **Restart** (on the Mac, click it).
3. The app asks **Restart Cloud Environment?** Tap **Restart**.
4. The **Restart Cloud Environment** sheet shows **Shutting down the previous environment…**, then **Starting the new environment…**. It can't be closed or canceled while it works.
5. When it says **Cloud environment is online.**, tap **Done**.

If the new environment hasn't checked in after about two minutes, the sheet says "The environment is initializing and will be online shortly." Tap **Done**: it carries on starting, and the Team's status turns **Online** when it's ready.

## What a restart keeps

The confirmation promises two things: project repositories are kept, and Agents that were working pick up again on their own. Chats, Agents and their settings aren't part of the environment and stay as they are.

The app doesn't say what happens to a build or a Preview that's running at the moment you restart. If one stopped, start it again.

## If the restart fails

| What the sheet says | What to do |
| --- | --- |
| "The previous environment is still shutting down. Wait a moment and try again." | Wait a moment, then tap **Try Again**. |
| "Unable to restart the environment. Check your connection and try again." | Check your connection, then tap **Try Again**, or **Close**. |
| "Only cloud workspaces can be restarted." | The Team is a local Team. See [Questions](https://air.build/docs/team/restart-a-cloud-team/#questions). |
| Another reason | Tap **Try Again**, or **Close** and try later. |

Every message and row of the Team's page is listed in Settings › [Teams](https://air.build/docs/settings/teams/#restart-a-cloud-team).

## Questions

**Does restarting lose my projects?**

No. See [What a restart keeps](https://air.build/docs/team/restart-a-cloud-team/#what-a-restart-keeps).

**I'm a member. Can I restart the Team?**

No. **Restart** is shown only to the Team's owner. Ask them to restart it.

**Can I restart a local Team?**

There's no **Restart** for a local Team: its environment runs inside AirBuild on the Mac that hosts it and starts when AirBuild opens there. If that Mac says "The environment stopped and is restarting.", it's restarting on its own. To bring it the latest version, see [Update the Mac that runs your local Team](https://air.build/docs/team/update-your-teams-mac/).
