Skip to content

compiler.dev docs

compiler.dev runs your existing GitHub Actions jobs on fast, isolated Linux machines. You keep GitHub Actions and your checks; only the machine changes. With the routed setup, if compiler.dev cannot take a job, or your credit or monthly cap runs out, the job runs on the runner it used before you switched, whether that is GitHub-hosted or your own. The one-line runs-on: compiler-8cpu label works once the GitHub App is installed, but has no automatic fallback: the job waits for a compiler.dev runner (see size labels).

Getting started

1. Sign in and install the GitHub App. Sign in with GitHub, then install the compiler.dev App on your organization and choose the repositories it can see. The App reads workflows and job metadata, registers one-time runners for jobs routed to compiler.dev, and — only through the setup PR — proposes workflow changes. It never merges anything.

2. Pick a repository and a mode. We analyze its workflows and show which jobs can move. Choose Try safely (comparison: a copy runs on our machines, your results still come from your runners) or Switch now with 10%, 25%, 50% or 100% of pull requests. A PR stays on the same side for all of its pushes and re-runs.

3. Merge the setup PR. Each routed workflow gets a small compiler-route job that asks compiler.dev where the job should run; your jobs use its answer as runs-on. Your steps are unchanged. Nothing moves until the PR is merged.

4. Watch the first run. The app shows each job live — queued, booting, running, done — with the machine name and the duration against your previous runners.

Which jobs can move

Fallback & rollback

Build cache (Nx / Turborepo)

On compiler.dev runners, Nx (20.8+) and Turborepo automatically use a remote cache next to the runners — nothing to change in your workflows. Caches are isolated per repository; pull requests can read the default branch's cache but only write their own, so a PR can never inject artifacts into trusted builds. To opt out for a job, set NX_SELF_HOSTED_REMOTE_CACHE_SERVER: "" and/or TURBO_API: "" in that job's env:.

OIDC with AWS

OIDC lets a job get short-lived AWS credentials without storing an access key in GitHub. Each run asks GitHub for a signed token, and AWS swaps it for temporary credentials. The token flow is the standard GitHub Actions one, so the workflow below is the usual one with a compiler.dev runs-on label. For a longer walk-through, see GitHub Actions OIDC to AWS.

1. Add GitHub as an identity provider in IAM. Provider URL https://token.actions.githubusercontent.com, audience sts.amazonaws.com.

2. Create a role with this trust policy. Replace 111122223333, ORG and REPO. The sub condition is what keeps other repositories and branches out, so always set it.

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": { "Federated": "arn:aws:iam::111122223333:oidc-provider/token.actions.githubusercontent.com" },
    "Action": "sts:AssumeRoleWithWebIdentity",
    "Condition": {
      "StringEquals": {
        "token.actions.githubusercontent.com:aud": "sts.amazonaws.com",
        "token.actions.githubusercontent.com:sub": "repo:ORG/REPO:ref:refs/heads/main"
      }
    }
  }]
}

3. Use the role in your workflow. The job needs id-token: write:

permissions:
  id-token: write
  contents: read

jobs:
  deploy:
    runs-on: compiler-8cpu
    steps:
      - uses: actions/checkout@v4
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::111122223333:role/github-deploy
          aws-region: eu-west-2
      - run: aws sts get-caller-identity

OIDC with Google Cloud

Workload Identity Federation lets a job act as a Google Cloud service account without a stored key file. Each run asks GitHub for a signed token, and Google swaps it for short-lived credentials. The token flow is the standard GitHub Actions one, so the workflow below is the usual one with a compiler.dev runs-on label.

1. Create a workload identity pool and a GitHub provider. Issuer https://token.actions.githubusercontent.com. Map claims to attributes and add a condition so only your repository is accepted:

gcloud iam workload-identity-pools providers create-oidc github \
  --project=MY_PROJECT --location=global --workload-identity-pool=github-pool \
  --issuer-uri="https://token.actions.githubusercontent.com" \
  --attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository,attribute.ref=assertion.ref" \
  --attribute-condition="assertion.repository == 'ORG/REPO'"

2. Let that repository use a service account. Grant roles/iam.workloadIdentityUser on the service account to the principal set for the repository:

principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/github-pool/attribute.repository/ORG/REPO

3. Use it in your workflow. The job needs id-token: write:

permissions:
  id-token: write
  contents: read

jobs:
  deploy:
    runs-on: compiler-8cpu
    steps:
      - uses: actions/checkout@v4
      - uses: google-github-actions/auth@v2
        with:
          workload_identity_provider: projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/github-pool/providers/github
          service_account: deploy@MY_PROJECT.iam.gserviceaccount.com
      - uses: google-github-actions/setup-gcloud@v2
      - run: gcloud auth list

Get started with your box

Code in a box is your own Linux machine for coding agents (4 vCPU, 16 GB, 100 GB disk). Claude Code or Codex works in it on your repositories; you watch, steer and open the pull request. The disk persists, so repositories, worktrees and agent sessions are still there next time.

1. Sign in. Sign in with GitHub and install the compiler.dev App on your organization (the same App as for CI). Your organization needs prepaid credit; if it has none, the box card shows Add credit to start your box with a link to Billing.

2. Add a key. Open Workspaces (or Start coding in your box on the Overview) and create your box. Then paste your own key: an Anthropic key for Claude Code (from console.anthropic.com → API keys) or an OpenAI key for Codex (from platform.openai.com → API keys). Keys are stored encrypted, sent only to your box, and never shown again. Model usage is billed to you by Anthropic or OpenAI.

3. Start. The first boot takes about a minute; after that, Start resumes a stopped box in about 15 seconds. Sending a prompt to a stopped box starts it too.

4. Chat. Pick a repository and the agent, describe the change, and press Start chat. Each chat gets its own git worktree on branch ws/…. You see the agent's messages and commands live, then the tests it ran and the diff; send a follow-up for the next change, or open the pull request. Up to 3 agents can work on your box at once.

5. Open on another device. Open on another device makes a one-time link, valid for 5 minutes, that opens the same chats in another browser (your phone, say) for 12 hours without signing in there. Sign out other devices ends those sessions.

6. Stop. Press Stop when you're done, or just leave: the box stops by itself after 60 minutes with no agent working and nobody in an open chat. A tab you left open in the background, or haven't touched for 30 minutes, doesn't keep it awake. Stopping keeps the disk; deleting the box deletes the disk.

Fewer tokens. Agents in a box run their shell commands through RTK, which compacts the output of builds, tests and git before the model reads it (typically 60–90% less). Run rtk gain in the box to see what it saved. To bypass it for one command, start the command with RTK_DISABLED=1. To turn it off for the box, run rtk init -g --uninstall and rtk init -g --codex --uninstall; the agents then see raw output, and the box does not put it back until we ship a newer RTK version.

GitLab (beta)

Run your GitLab CI jobs on compiler.dev machines by adding a tag to the job. It works for projects and groups on gitlab.com. Self-managed GitLab: ask us at contact@compiler.dev. This is a closed beta: the GitLab (beta) page appears in the CI part of the app's menu once we switch it on for your organization.

1. Connect. Open GitLab (beta) in the app and press Connect GitLab. You sign in on GitLab and approve. compiler.dev asks for the api scope (GitLab has no narrower scope that can create runners and webhooks) and read_user. The token is stored encrypted and never shown again. To switch something on you need the Owner role on a group or the Maintainer role on a project.

2. Switch on a group or project. The page lists the groups you own and the projects you maintain, each with a switch. Switching one on creates four runners in GitLab, one per size, and adds a Job events webhook (on every project of a group, because group webhooks need a paid GitLab tier). Switching it off deletes them again, and so does Disconnect for everything. Nothing else in your GitLab is touched.

3. Add a tag to the job. In .gitlab-ci.yml:

test:
  tags: [compiler-8cpu]
  script:
    - npm test

Connect Claude (MCP)

compiler.dev has a remote MCP server, so you can see and act on your CI from Claude: ask what failed overnight, read the tail of a job log, re-run the failed jobs, check usage and credit. The URL is https://ci.compiler.dev/mcp.

Claude on the web and Claude Desktop.

Claude Code. Create a token in Connect to Claude and run:

claude mcp add --transport http compiler https://ci.compiler.dev/mcp --header "Authorization: Bearer <your token>"

What Claude can do.

Notifications. A server can't wake Claude up when no session is open. compiler.dev keeps a feed for you (a job failed, a failing job was fixed, credit is low, the spending cap was reached, a Jumbo report is ready; kept 30 days). Claude sees it when it next connects or when you ask ("anything new in CI?"), through recent_events or the compiler://events resource. Apps that keep a session open and subscribe to that resource are told immediately. Choose which events go into the feed in Connect to Claude.

Revoke. Disconnect Claude or revoke a token on the same page; it stops working at once. Tokens are stored hashed, so we can't show them again.

Billing

Usage analytics & your data

We record product and CI events (for example job queued, started and finished with durations, cache hits, onboarding steps and page views) to run the service and to power your usage dashboards. Events contain repository and job names, timings and counts, never source code, secrets, or email addresses; people are identified by an internal user id only. Your organization's events are visible only to your organization, and are kept for two years.

Data processors for Code review and Insights

These outside services process your data when Code review or Insights is on:

Turn Code review or Insights off in Settings → Features and nothing is sent to them.

Help

Questions or a job that won't move? Email contact@compiler.dev.