A Turborepo remote cache you host yourself
Deploy it to Cloudflare Workers with one button, or run the same server on AWS Lambda, Vercel, Netlify, Node.js, Bun, or Deno. Artifacts stay in R2, Workers KV, or any S3-compatible bucket, and a dashboard shows the build time your cache saves.
Why host your own cache
- No Vercel account.
turbotalks to your server through the official Remote Cache API, with no plugin, no fork, and noturbo login. - Free to start on Cloudflare. The Workers free plan includes 100,000 requests a day, and R2 stores 10 GB a month for free. R2 charges nothing for egress, so cache downloads cost no bandwidth.
- Your choice of storage. Keep artifacts in R2, Workers KV, any S3-compatible bucket, or anything with a Files SDK adapter.
- Signed artifacts. The server stores each artifact’s signature and returns it unchanged, so
turbocan reject any artifact that your own machines didn’t sign.
See the time your cache saves
Every server shows this dashboard at its root. This copy uses sample data. Try the controls.
Set it up
Deploy the Worker
The Deploy to Cloudflare button copies this repository to your GitHub or GitLab account and deploys it with an R2 bucket. You can also deploy with Wrangler.
Set a token
Generate a long random token and add it to the Worker as a secret named TURBO_TOKEN.
openssl rand -hex 32Point turbo at the Worker
Add the Worker to your root turbo.json, and give every machine the token as TURBO_TOKEN.
{
"remoteCache": {
"apiUrl": "https://turborepo-remote-cache.<your-subdomain>.workers.dev",
"teamSlug": "my-team"
}
}Sign your artifacts
This step is optional, and we recommend it. Turn on remoteCache.signature and give every machine the same TURBO_REMOTE_CACHE_SIGNATURE_KEY. turbo then rejects any artifact your own machines didn’t sign, even one uploaded with a valid token.
Get started has every step. Connect turbo sets up your team and CI, and Sign artifacts explains the signature key.
Deploy to the platform you already use
The same server builds for six other platforms and stores artifacts in the storage you choose. Choose a platform compares their artifact size limits.