Turborepo’s local cache speeds up builds on a single machine, but by default that cache is never shared. Remote caching extends the same mechanism across every developer on your team and every CI runner in your pipeline. When a colleague or a CI job has already built the exact same code — identified by a deterministic hash of inputs — your build downloads the cached output instead of recomputing it. For a monorepo like KaroCar Platform with six apps and multiple shared packages, this can reduce cold-start build times from several minutes to under a second.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Codefied-CodePix/KaroCar-platform/llms.txt
Use this file to discover all available pages before exploring further.
How Remote Caching Works
- Before running a task, Turbo hashes all its inputs (source files, env vars, dependency versions).
- It checks the remote cache for an artifact matching that hash.
- Cache hit — the output is downloaded and restored locally; the task is skipped.
- Cache miss — the task runs normally, and the output is uploaded to the remote cache for future use.
Vercel Remote Cache is free for all Vercel plans, including the Hobby
tier. You only need a Vercel account — you do not need to deploy KaroCar
Platform to Vercel to use the remote cache.
Enabling Remote Caching
Install Turbo globally
The Verify the installation:
turbo login and turbo link commands require the Turbo CLI to be
available globally:Log in to Vercel
Authenticate the Turbo CLI with your Vercel account. This opens a browser
window to complete the OAuth flow:After a successful login you’ll see a confirmation message and a token is
stored in
~/.turbo/config.json.Link the repository to the Remote Cache
From the KaroCar Platform repository root, link your local clone to a Vercel
Remote Cache space:Turbo will prompt you to select a Vercel scope (your personal account or a
team). Once linked, it writes the remote cache configuration into
.turbo/config.json at the repository root.Recognising a Cache Hit
When every task in a pipeline is restored from cache, Turborepo prints:cache hit, replaying logs in the task output stream.
CI/CD Configuration
In CI environments (GitHub Actions, GitLab CI, CircleCI, etc.) you can’t runturbo login interactively. Instead, pass credentials as environment variables:
| Variable | Description |
|---|---|
TURBO_TOKEN | A Vercel personal access token with remote-cache read/write scope |
TURBO_TEAM | Your Vercel team slug (e.g. my-org) — omit for personal accounts |
GitHub Actions Example
TURBO_TOKEN in your Vercel account settings and store it as a repository secret. Set TURBO_TEAM to your Vercel team slug if you linked to a team scope during turbo link.
Important Notes
Remote caching is opt-in per developer. Team members who have not run
turbo link still benefit indirectly — artifacts uploaded by CI are
available for anyone who subsequently links their machine to the same
Vercel scope.