# Free CI for open source

**Public repositories run on Groundbox for free.** Install the [Groundbox - Free for Open Source](https://github.com/apps/groundbox-free-for-open-source) app on GitHub (it is on GitHub Marketplace too), pick your public repositories, and change `runs-on` as on any plan. No card, and no sign-up beyond the install: installing makes your Groundbox team.

```
runs-on: groundbox-4vcpu    # any size: see Sizes and labels
```

## How many minutes

Each public repository gets its own free minutes every month, by its stars, as 2 vCPU minutes (a 4 vCPU minute counts as 2):

- Under 50 stars: your account's free minutes (3,000 a month), shared by your repositories, as on the free plan.
- 50 stars or more: 10,000 minutes a month for the repository.
- 1,000 stars or more: 25,000 minutes a month for the repository.

Stars count once the repository is a month old. We read them from each job, so a repository moves up as it grows. The minutes reset on the 1st (UTC) and don't roll over. Past them, your team's own plan applies: its free minutes, its credit, or the paid plan. If your project needs more, write to us and we can sponsor it.

## The rules

- Public repositories only. A private repository's jobs wait with a note; install the Groundbox app for those.
- Free jobs stop after an hour, and new GitHub accounts get shorter jobs for their first week.
- CI is for building and testing your project. Mining and other abuse get the repository blocked.
- If you already have the Groundbox app on the same account, keep both: your jobs run through the Groundbox app, and your public repositories still get their open-source minutes.

In an organization, GitHub sends public repositories' jobs to self-hosted runners only when the runner group allows it. See [Public repositories](https://groundbox.dev/docs/ci/held#public-repos).

## See your minutes

```
groundbox ci open-source
```

The API is `GET /v1/ci/open-source` (`ci:read`): the accounts with the app, and each public repository's stars, tier (`standard`, `starred` or `popular`), its free minutes this month, what it used and what is left. The SDKs have `get_ci_open_source`.
