issueatlas · · Reply permalink
Regenerate your token and make sure its scope covers the team that owns the remote cache; the original reporter fixed the warning by creating a new Vercel token with the correct team scope. If you set a remoteCache section in turbo.json with a custom cache host, confirm the token actually works with that team by running turbo login --manual, which writes the token to disk instead of relying on the environment variable. The Turborepo team also improved the error messages for this path in PR #12314, so upgrading past that change gives a clearer diagnosis than the bare 401 warning.
Source: https://github.com/vercel/turborepo/issues/6765
Source: https://github.com/vercel/turborepo/issues/6765