Quickstart
From sign-in to your first job on CI Router, in a few minutes.
#Before you start
- CI Router works with a GitHub organization or a personal account. Personal accounts are supported.
- The first job needs a paid Starter or Pro plan. A team owner picks it in the dashboard.
- Public repositories are off by default. An owner turns them on. See Public repositories.
- Runners are Linux x64, or arm64 with the
arm64tag on providers that offer it. They start from a small image, Ubuntu 24.04 on most providers, not GitHub's full image. Add a setup step for each tool your job uses.
#Sign in
Go to the sign-in page. Continue with GitHub, Google or your email.
Signing in creates your team. You are its owner.
#Install the GitHub App
On the dashboard, choose Install the GitHub App. Pick your organization. Then pick the repositories the App may see. CI Router routes jobs from those repositories only.
We recommend Only select repositories. Start with the ones you want to move, and add more later on GitHub.
If you are not an owner of the organization, GitHub sends the request to an owner. The dashboard connects when they approve it. The App's permissions are on Install the GitHub App.
#Choose a plan
Open Billing and subscribe. Starter is $25 a month: $20 of compute credit plus a $5 service fee (25%). Pro is $120 a month: $100 of compute credit plus a $20 service fee (20%).
Jobs cost the provider's list price. They use the plan's compute credit first, then credit you buy. Each top-up adds your plan's service fee as its own line. A job that cannot be paid for waits in GitHub's queue. Plans and credit has the details.
Your first job needs a plan. If you cancel, credit you bought stays usable until it runs out. A later top-up pays the Starter fee.
#Change runs-on
In the workflow file, set the job's runs-on to ci-router. This Node.js example installs its own runtime. Use your own install and test commands.
jobs:
test:
runs-on: ci-router
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm testLeave runs-on as it is on jobs you do not move. Switch one job, one workflow or one repository at a time.
Your coding agent can do it. On the dashboard, Copy prompt for your coding agent copies this text. Paste it into your agent in the repository. It moves the jobs that can move and opens a pull request. Move your workflows lists the jobs to leave alone.
Move this repository's GitHub Actions jobs to CI Router.
CI Router runs GitHub Actions jobs on Linux machines, x64 by default and arm64 on request on providers that offer it. A job opts in with one line, `runs-on: ci-router`. Steps, secrets, logs and checks stay on GitHub as they are. Jobs only run on CI Router in repositories where the CI Router GitHub App is installed.
1. Read every workflow in .github/workflows/.
2. Change `runs-on` to `ci-router` on jobs that run on `ubuntu-latest`, `ubuntu-24.04` or `ubuntu-22.04`, and to `[ci-router, arm64]` on jobs that run on `ubuntu-24.04-arm`. When `runs-on` comes from a matrix (`${{ matrix.os }}`), change only the Ubuntu entries. Machines run a recent Linux (Ubuntu 24.04 on most): a job that depends on Ubuntu 22.04 stays where it is.
3. Leave these jobs unchanged:
- jobs on macOS, Windows, GPU or self-hosted runners;
- jobs that deploy, publish, release or sign anything (production, a container registry, a package index, an app store, or a job with a protected `environment:`). Never move one of these blindly: move it only if I ask, after the build and test jobs have passed on CI Router;
- jobs that call a reusable workflow (`uses:` at the job level): the called workflow decides.
4. Write `runs-on: ci-router`, plus only these optional tags, at most one of each kind: `arm64` for an arm job (no tag means x64); a size (`1cpu`, `2cpu`, `4cpu`, `8cpu` or `16cpu`) only when the job is known to need a fixed size, for example a big build; `cheap` or `fast` only when I ask for cheaper or faster runs. Without a size tag the router picks the size; without `cheap` or `fast` it balances cost and speed. Use no other label: GitHub's runner labels and Docker labels are refused. CI Router reads what a job needs (`services:`, `container:`, Docker steps and commands) from the workflow and picks a machine that has it.
5. Machines start from a minimal Linux image, not GitHub's full image. Only bash, curl and tar are always there. If a job relies on any other preinstalled tool (git, Python, Node.js, Go, Java, browsers for Playwright or Selenium, gh, the aws CLI, kubectl, terraform...), add its setup step (`actions/setup-python`, `actions/setup-node`, `actions/setup-go`, `actions/setup-java`, `npx playwright install --with-deps`, `sudo apt-get install -y git`...). What each machine has: https://ci-router.com/docs/runners/tools
6. Make the change on a new branch and open a pull request. Never push to the default branch. In the description, list the jobs you moved and the jobs you left alone with the reason, and say how to roll a job back: set its `runs-on` back to the value it had before (for example `ubuntu-latest`, or `ubuntu-24.04-arm` for an arm job).
7. When the pull request's checks have run, check the moved jobs. A job that fails for a missing tool gets its setup step. A job that needs something CI Router does not offer goes back to the `runs-on` value it had before.
Docs:
- Quickstart: https://ci-router.com/docs/quickstart
- What the runners support and what is installed: https://ci-router.com/docs/runners
- Keeping a job on GitHub-hosted runners: https://ci-router.com/docs/runners#github-hosted
To pin a size, add a size tag: runs-on: [ci-router, 8cpu]. Arm jobs take arm64. The runs-on line lists every tag.
#Run it and check
Push a commit that triggers the workflow. Then check three places:
- GitHub. The job leaves the queue and runs. Its log looks as on any runner.
- Runs in the dashboard. The job appears with its status and duration.
- Overview in the dashboard. The setup checklist ticks off each step. It disappears when all three are done.
#Go back
Set runs-on back to its old value and push. The next run uses your previous runner. Nothing else changes. To stop CI Router for good, uninstall the GitHub App.