The self-hosted Nx cache, managed and safe from poisoning.
Cachely vs a DIY self-hosted Nx cache
| Feature | Cachely | DIY self-hosted cache |
|---|---|---|
| Setup and maintenance | Managed service. Drop in a token - no server to run, scale, or patch. | You run and update the cache server or bucket wiring yourself. |
| Cache poisoning (CVE-2025-36852) | Mitigated: read-only tokens stop pull-request builds writing to the cache. | Exposed: a shared writable bucket lets any PR poison the cache. |
| Access control | Per-token read/write permissions, hashed tokens, one-click revoke. | Usually one shared bucket credential or token for everyone. |
| Insights and ROI | Hit rate, slowest tasks, CI minutes and cost saved, optimization suggestions. | None. A bucket has no idea what it saved you. |
| Artifact storage | Managed Cloudflare R2 - zero setup, included in the subscription. | Your own bucket - plus all the IAM and lifecycle config that comes with it. |
| Works with Nx | Yes, via the standard self-hosted remote cache protocol. | Yes - it is the same protocol. |
| Cost model | Flat subscription. No per-seat or per-workspace fees. | Cloud storage + egress + the engineering time to maintain it. |
Reflects publicly documented behaviour. Page updated . DIY self-hosted cache may have changed since; let us know and we will update the page.
When Cachely is the right call
Run a DIY self-hosted cache when you want full control of the bytes and have the team to operate and secure it.
If you are moving off a bucket plugin, the guide to replacing the deprecated Nx cache packages covers @nx/s3-cache, @nx/gcs-cache, @nx/azure-cache, and @nx/shared-fs-cache step by step.
Still self-hosting through nx-remotecache-custom? The nx-remotecache-custom migration guide explains why it stops working in Nx 21 and how to move to the HTTP cache.
Choose Cachely when you want the same self-hosted Nx cache without the maintenance or the cache-poisoning risk - plus the ROI and optimization insights a raw bucket can never give you. Switching is two variables; the NX_SELF_HOSTED_REMOTE_CACHE_SERVER setup reference has the exact values.
Related guides
- Nx Cloud alternativeNx Cloud pricing compared, costs for 5 to 40 developers, and who should stay on it.
- Migrating off @nx/s3-cache, @nx/gcs-cache, @nx/azure-cache and @nx/shared-fs-cacheYour options after Nx deprecated its self-hosted cache packages, with steps for each one.
- Cachely vs Nx CloudFlat pricing vs seats, managed SaaS, and scaling limits compared.
- Managed remote build cacheHow to evaluate a managed cache on protocol support, security, and cost.
- Nx remote cacheSet up the official Nx self-hosted cache and see how the task hash works.