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
- Eligible: Linux jobs (
ubuntu-*) that build and test. Default machine: 8 vCPU, 16 GB, fresh for every job and deleted afterwards. - Stay on your runners: deploy and publish jobs, Windows, macOS, ARM, GPU, and jobs from forked pull requests (they can't obtain an OIDC token).
- Secrets: jobs that use secrets run on our machines with the secrets you grant. Prefer test-only credentials; the analysis flags these jobs.
Fallback & rollback
- Automatic fallback: if compiler.dev is down, slow to answer (15 s), or can't start a machine for your job, the route job answers with your original runner, or the run is cancelled and re-run on it. Real test failures are never re-routed.
- Pause: set the repository to 0% in the dashboard and new PRs use your original runners.
- Remove: revert the setup PR, or uninstall the GitHub App. Uninstalling stops all access and routing immediately.
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
- Which runs can assume the role: use
repo:ORG/REPO:ref:refs/heads/mainfor one branch,repo:ORG/REPO:environment:productionfor a GitHub environment, orStringLikewithrepo:ORG/REPO:*for the whole repository. - Pull requests from forks get no token, as on any runner.
- Your policy is yours: compiler.dev does not see or change your AWS roles. If a job cannot assume a role, the error comes from AWS; check the trust policy first.
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
- Narrower access: add
&& assertion.ref == 'refs/heads/main'to the attribute condition to allow one branch only. - Your policy is yours: compiler.dev does not see or change your Google Cloud settings. If authentication fails, the error comes from Google; check the attribute condition first.
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.
- Costs: $0.0065 per running minute (about $0.39 an hour) plus $0.10 per GB-month for the disk ($10 a month for 100 GB, also while stopped), drawn from your organization's prepaid credit. The card shows this month's cost.
- Limits: one box per person, up to 3 agents at once, and a daily spend limit per organization ($25 by default; ask us to raise it). New chats are refused when the disk is 95% full; archive finished chats to free space.
- Fair use: crypto mining and outbound email (port 25) are blocked.
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
- Sizes:
compiler-2cpu(2 vCPU, 4 GB, $0.003 per minute),compiler-4cpu(4 vCPU, 16 GB, $0.006),compiler-8cpu(8 vCPU, 16 GB, $0.012) andcompiler-16cpu(16 vCPU, 32 GB, $0.024). These are the same machines and prices as the size labels on GitHub Actions; the page shows the price for your organization. Jobs without one of these tags are never touched. - One fresh machine per job. Each job runs on a new machine that is deleted when the job ends. It runs the job with GitLab Runner's Docker executor, using the
image:from your file (Ubuntu 24.04 when there is none); Docker-in-Docker works. The machine downloads a pinned, checksum-verified GitLab Runner when it starts. - No warm caches. Every job starts on a cold machine, so the first seconds go on starting it and pulling your image. Use GitLab's own
cache:and artifacts as you do today. - Billing. Per started minute, at least one, from the moment the runner receives the job until it finishes, the same way as GitHub jobs. Starting the machine is not billed. Usage comes out of your prepaid credit or free trial. A job that never started costs nothing.
- If your credit or trial has run out, jobs with a compiler tag wait; they do not move to GitLab's shared runners. The page says why, and they start by themselves, within a couple of minutes, once you add credit.
- How a job is noticed. GitLab calls our webhook when a job becomes pending, and we also look for pending jobs every two minutes, so a missed webhook, or a project created after you switched on its group, only delays the start.
- Where it runs. On single-use cloud machines. Linux only; no macOS, Windows or GPU runners. gitlab.com only for now.
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.
- Open Settings → Connectors → Add custom connector, name it compiler.dev and paste
https://ci.compiler.dev/mcp. - Click Connect, sign in with GitHub if asked, and approve. Claude gets a short-lived token (one hour, renewed automatically) that only reaches the organizations you belong to.
- On Team and Enterprise plans an owner adds the connector once under Organization settings → Connectors; each person then connects with their own sign-in.
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.
- Read:
list_orgs,list_runs(filter by org, repo, status, since),get_run(jobs, timings, failure reason),list_failures,get_job_log_tail(last lines, secrets redacted),get_usage_and_balance,get_speed_reportandrecent_events. - Act, owners and maintainers only:
rerun_failed_jobsre-runs a finished run's failed jobs (they use runner minutes as usual) andrequest_turbo_runtries to queue a Jumbo run (free runs are no longer offered, so it refuses; a run is $200 and is bought in the dashboard). Neither charges anything or changes billing, pricing, spending caps or routing; no tool can. - Limits: every call is checked against your GitHub-verified organizations, rate limited and written to an audit log. Runs and events cover jobs that ran on compiler.dev runners.
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
- $0.0015 per core-minute (Basic), so the default Linux 8 vCPU / 16 GB runner is $0.012 per minute (a 2-core runner is $0.003), measured per job. You prepay credit from $20. Usage is drawn down per minute and you get a monthly statement.
- Other machines: Linux 2 / 4 / 16 / 32 vCPU at $0.003 / $0.006 / $0.024 / $0.048 per minute (live); macOS on Apple M4 Pro at $0.028 per minute for a 7-core VM or $0.055 per minute for a full 14-core host (early access); dedicated M4 Pro hosts from $3,595 per host per month.
- Prepaid credit: buy credit from $20 (card, via Stripe) before jobs run on compiler.dev; it never expires and usage draws it down per minute. With the routed setup, at $0 jobs run on the runner they used before you switched. Optional auto top-up.
- Top-up packs: $20 = $20 credit; $100 = $110 credit; $500 = $600 credit. Any other amount from $20 gets no bonus. Bonus credit is added when your payment completes and is shown as its own “Bonus credit” line.
- Refunds: unused credit you paid for is refundable on request at any time (bonus credit is not). Use “Request refund of unused credit” in Usage & billing; we review each request and refund the card you paid with.
- Spending cap: set a monthly cap. With the routed setup, when it's reached new jobs run on the runner they used before you switched, until the next month or until you raise it.
- Owners and billing admins manage payment methods and invoices from Usage & 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:
- Anthropic writes code reviews and answers Insights questions. It receives the pull request's diff, the relevant files, and your question. If your organization adds its own Anthropic API key in Settings, these requests go to Anthropic under your own account and terms instead of ours, and Anthropic bills you for them.
- TypeSafe, Inc. (US) makes typed risk decisions for code review and Agent Radar. It receives counts, categories and yes/no facts only, never code or text, for every use: the Code review double-check, “Looks good to me” and Agent Radar. It always runs on our account.
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.