# Connect GitHub

> Install the flockvm GitHub App on your repositories from the CI page of the dashboard, so their jobs with runs-on: flockvm run on flockvm.

- URL: https://flockvm.com/docs/ci/setup
- Section: GitHub Actions
- Last updated: 2026-10-31

You connect GitHub once per GitHub account or organization, from the **CI** page of the dashboard. It installs the flockvm GitHub App on the repositories you pick and links that installation to your flockvm organization.

## Before you start

You need two things, one on each side:

| Side    | Who can connect                                                                                                                                                                                                                 |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| flockvm | An **owner** or **admin** of an organization in its [free trial](https://flockvm.com/docs/billing/trial) or with its plan started. Members cannot connect or disconnect GitHub, because runners spend the organization's money. |
| GitHub  | Someone who administers the account the App goes on: an **owner** of the GitHub organization, or the GitHub user itself for a personal account.                                                                                 |

> **Warning: Jobs run from the paid plan.** Until the free trial or the plan has started, the CI page asks to start it instead of showing the **Connect GitHub** button. During the trial you can connect GitHub and set up your workflows, but every new job is held: CI starts with the paid plan. Press **Start paid plan now** in **Settings → Billing** to run jobs before day 7. See [CI during the trial](https://flockvm.com/docs/billing/trial#ci-during-the-trial).

## Connect

1. **Open the CI page**

   Go to [flockvm.com/dashboard/ci](https://flockvm.com/dashboard/ci). Before anything is connected, the page shows a **Connect GitHub** panel, the labels you can use and a sample workflow.

   ![The CI page before GitHub is connected, with the Connect GitHub button](https://flockvm.com/docs/screenshots/ci-connect.webp "Connect GitHub sends you to GitHub's install page for the flockvm App.")

2. **Press Connect GitHub**

   GitHub opens the install page of the flockvm App. Pick the account or organization to install it on.

   The link is signed for your organization and your user, and is valid for 15 minutes. If you take longer, the dashboard says so and you press **Connect GitHub** again.

3. **Choose the repositories**

   Pick **All repositories** or **Only select repositories**. Only jobs of the repositories you select can run on flockvm. You can change this list later on GitHub.

4. **Authorize the flockvm App**

   GitHub asks you to authorize the flockvm App. Accept: flockvm uses this one-time authorization to check that your GitHub account administers the account you installed on. It revokes the token right after and never stores it.

5. **Back on the dashboard**

   GitHub sends you back to the CI page with **GitHub is connected. Jobs with runs-on: flockvm in its repositories now run here.** The **GitHub** panel lists the account, its type (organization or user), the installation number and when it was connected.

   ![The CI page once connected: the GitHub account, usage, the jobs and the runs-on snippet](https://flockvm.com/docs/screenshots/ci-jobs.webp "Once connected, the CI page shows your usage, your jobs and the labels to use.")

6. **Run a first job**

   Add a workflow to one of the selected repositories and push it.

   ```yaml title=".github/workflows/flockvm.yml"
   name: flockvm smoke test
   on: workflow_dispatch

   jobs:
     hello:
       runs-on: flockvm-small
       steps:
         - uses: actions/checkout@v4
         - run: uname -a && nproc && free -g && df -h / && docker version
   ```

   Run it from the repository's **Actions** tab. The job appears in the **Jobs** list of the CI page within seconds and goes queued → starting → running → success. The list refreshes every 5 seconds while a job is live.

## If you are not an owner of the GitHub organization

A GitHub organization member who is not an owner can still press **Connect GitHub**, but GitHub turns the install into a request to the organization's owners. The dashboard then says **GitHub asked the account's owners to approve the install. Once they have, press Connect GitHub again.**

After an owner approves it, press **Connect GitHub** again. The account must still be linked by someone who administers it on GitHub: if you are not an owner of that organization, ask one to connect it.

## If the App is already installed

You can press **Connect GitHub** on an account where the flockvm App is already installed, for example after you disconnected it, or to link it from another browser. GitHub comes back without asking you to install again, and may send you through its authorization page first. You end up on the CI page, connected.

An installation belongs to one flockvm organization at a time. If it is already linked to another one, the dashboard says **This GitHub installation is already connected to another flockvm organization.** Disconnect it there first.

## Connect more accounts

At the bottom of the CI page, under the **Run a job on flockvm** box, **Another GitHub account or organization? Connect it too ›** starts the same flow for another account. Each connected account shows in the **GitHub** panel, and all their jobs bill the same flockvm organization.

## Change the repositories

In the **GitHub** panel, **Repositories on GitHub ›** opens the App's settings on GitHub. Add or remove repositories there. When GitHub sends you back, the dashboard says **GitHub saved the repositories the App can see.**

## Private repositories only

flockvm runs jobs of **private** repositories. A job from a public repository is stored as failed right away, gets no VM and costs nothing. [Security](https://flockvm.com/docs/ci/security#public-repositories) explains why.

## Disconnect

1. **Press Disconnect**

   In the **GitHub** panel of the CI page, press **Disconnect** next to the account. Only owners and admins see it.

2. **Confirm**

   The dashboard asks **Stop running …'s jobs?** Press **Disconnect** to confirm, or **Keep** to cancel.

3. **Remove the App on GitHub (optional)**

   Disconnecting stops flockvm from running new jobs of that account, but the App stays installed on GitHub. To remove it, open **Repositories on GitHub ›** before you disconnect and uninstall it there, or uninstall it later from the account's settings on GitHub.

Connecting and disconnecting GitHub are recorded in the organization's [audit log](https://flockvm.com/docs/team/audit-log).

> **Note:** Jobs queued after you disconnect never run on flockvm. On GitHub they stay queued until you cancel them or GitHub drops them, so switch the workflow's `runs-on` back if you move away.

## Next steps

- [Labels and prices](https://flockvm.com/docs/ci/labels): Pick a size for each job.
- [Workflow examples](https://flockvm.com/docs/ci/workflows): Copy a workflow for Node, Python or Docker.
- [Troubleshooting](https://flockvm.com/docs/ci/troubleshooting#connecting-github): Errors while connecting GitHub.
- [Members and roles](https://flockvm.com/docs/team/members): Who is an owner or an admin.
