# See how many Xcode Cloud hours you've used

> Have an Agent read your Apple team's Xcode Cloud plan: what's used and left, when it resets, and which month, app or workflow used the time.

Source: https://air.build/docs/app-store/see-your-xcode-cloud-hours/

Xcode Cloud time comes from your Apple team's Xcode Cloud plan, shared by the team's apps. Apple's [Reviewing Xcode Cloud usage data](https://developer.apple.com/documentation/xcode/reviewing-xcode-cloud-usage-data) says that depending on the plan, you have a certain amount of Xcode Cloud usage. An Agent can tell you how much of it you've used, how much is left, and what used it.

> [!NOTE]
> The **Xcode Cloud** tab shows workflows and builds, not the plan's usage. Ask an Agent in the Project's chat. It uses `asc web xcode-cloud usage` (listed under `xcode-cloud` in [asc: web session commands](https://air.build/docs/cli/asc-web/#subcommands)), which reads Apple's figures with the Team owner's Apple sign-in. If that sign-in has expired, the owner signs in again: see [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/#sign-in-again).

## See what's left

Ask in the Project's chat, for example:

```text
How many Xcode Cloud hours have we used this month, and how many are left?
```

1. The Agent runs `asc web xcode-cloud usage summary`. Its help describes it as "Show current Xcode Cloud plan usage: used/available/total compute minutes and reset date."
2. It replies with the plan's name, the minutes used, available and in total, the date the plan resets, and Apple's link to manage the plan. The command counts minutes; ask the Agent for hours if you prefer.

Nothing changes in App Store Connect: these commands only read.

## See what used the time

Ask, for example:

```text
Which of our apps and workflows used the most Xcode Cloud time this month?
```

| Ask for | The Agent uses | What comes back |
| --- | --- | --- |
| Use month by month | `usage months` | Minutes and number of builds per month, the last 12 months unless you name others, and each app's share. |
| One app, day by day | `usage days` | Minutes and builds per day, the last 30 days unless you give dates, with each workflow's share. |
| One app's workflows | `usage workflows` | Minutes and builds per workflow over the period, next to the period before. For one workflow, its use day by day. |

Xcode Cloud calls each app a product. To read one app, the Agent first finds its product with `asc web xcode-cloud products`.

## What to ask next

- Use less: find the workflow that uses the most, then change when it starts or switch it off on the **Xcode Cloud** tab. See [Build with Xcode Cloud](https://air.build/docs/app-store/build-with-xcode-cloud/#edit-switch-off-or-delete-a-workflow).
- Get more time: Apple's page says the Account Holder of the Apple team can buy a plan with more Xcode Cloud time in the Apple Developer app. See [Reviewing Xcode Cloud usage data](https://developer.apple.com/documentation/xcode/reviewing-xcode-cloud-usage-data) and Apple's [Xcode Cloud](https://developer.apple.com/xcode-cloud/) page.
- Keep an eye on it: have an Agent read the summary every week and tell you how much is left. See [Schedule work for an Agent](https://air.build/docs/agents/schedule-agent-work/).

## Questions

**The minutes don't match how long my builds took.**

Apple's page says Xcode Cloud runs build steps in parallel, so the time a build takes and the usage it reports are different. See Apple's [Reviewing Xcode Cloud usage data](https://developer.apple.com/documentation/xcode/reviewing-xcode-cloud-usage-data).

**The Agent finds no usage for an app.**

No workflow of that app used Xcode Cloud in the period. Ask for a longer one, or for another app.

**The Agent says Apple denied the request (403).**

The message says the account's role likely lacks permission for this, or the web session expired. Ask the Team owner to sign in again in **Settings** › **Developer** › **Sign In Again**, and to check their role on the Apple team.

**The app has no Xcode Cloud product.**

Xcode Cloud isn't set up for it yet. See [Build with Xcode Cloud](https://air.build/docs/app-store/build-with-xcode-cloud/#if-xcode-cloud-isnt-set-up).
