> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# CI on Macs

> Run your GitHub Actions and GitLab CI jobs on box Macs: change one line, pay the same per-minute box rate from the same balance

box runs the macOS jobs of your existing CI on the same Macs as `box build` and `box test`. You keep your workflow files; only the line that picks the machine changes.

Let your coding agent do it: tell it `Move our macOS CI jobs to XenoCI Box with https://docs.xenoci.com/ci/agent`. See [Set up CI with your agent](https://docs.xenoci.com/ci/agent.md).

Let your coding agent do it: paste `Move our macOS CI jobs to XenoCI with https://docs.xenoci.com/ci/agent` into Claude Code, Codex or Cursor. It follows [Set up CI with your agent](https://docs.xenoci.com/ci/agent.md), and your part is one Install click on GitHub or one GitLab runner token.

| CI | Change | Connect |
| - | - | - |
| GitHub Actions | `runs-on: xenoci` | `box ci connect --org` (XenoCI with Organizations) or `box ci connect --personal` (XenoCI with Personal) |
| GitLab CI | `tags: [xenoci]` | `box ci gitlab connect <runner token>` |

## How it works

* Every job gets a new macOS VM, removed when the job ends. Nothing carries over between jobs of different repositories.
* Minutes are charged at the [box per-minute rate](https://docs.xenoci.com/reference/pricing.md) from your box balance. There is no separate CI price.
* Up to 2 CI jobs run at once per box account, GitHub and GitLab together. Further jobs wait in your CI's queue.
* With no balance left, no job starts and nothing is charged: jobs wait in your CI's queue and start after you top up (`box topup`). Nothing is cancelled. GitHub itself cancels a job that waits more than 24 hours.
* Your source code is not stored or logged by box. Jobs from fork pull requests run without your secrets.

## Commands

```bash theme={"system"}
box ci accounts            # connected GitHub accounts and GitLab runners
box ci jobs                # recent CI jobs: status, minutes, charge
box ci logs <job id>       # the job's log (--follow while it runs)
box ci disconnect <name>   # remove a GitHub account or GitLab runner
```

Every command takes `--json`. Agents get the same through the MCP tools `ci_accounts`, `ci_connect`, `ci_gitlab_connect`, `ci_jobs`, `ci_logs` and `ci_disconnect`.

> [card] [Set up with your agent](https://docs.xenoci.com/ci/agent.md)
>
> Your agent connects the account and changes the workflow

> [card] [Set up with your agent](https://docs.xenoci.com/ci/agent.md)
>
> Your agent connects, opens the pull request and checks the first job

> [card] [GitHub Actions](https://docs.xenoci.com/ci/github.md)
>
> Connect an organization or a personal account

> [card] [GitLab CI](https://docs.xenoci.com/ci/gitlab.md)
>
> Register a project or group runner

> [card] [When a job fails](https://docs.xenoci.com/ci/agent.md#when-a-job-fails)
>
> box ci jobs --failed and box ci debug


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.