deniz.in

Markets

Weather

Loading weather

· via Vercel blog

Vercel Sandbox adds managed npm credentials so agents can install private packages without seeing tokens

Vercel Sandbox can now install private npm packages using credentials held in team Shared Environment Variables, with tokens kept outside the sandbox and injected by Vercel's firewall so coding agents never see them.

Vercel Sandbox adds managed npm credentials so agents can install private packages without seeing tokens

Vercel has added managed npm credentials to Vercel Sandbox, its isolated environment product for running code and coding agents. According to a post on the Vercel blog, sandboxes can now install private npm packages on behalf of a team, drawing on credentials stored in Shared Environment Variables, and the same mechanism works with custom registries.

How it works

The feature is opt-in at creation time. Vercel says developers pass credentials: { npm: true } when spinning up a sandbox, which tells the platform to make the team's existing npm credentials available to that environment.

The more interesting part is where those credentials actually live: nowhere the sandbox itself can reach. Vercel explains that the tokens never enter the sandbox. Instead, the company's firewall handles authentication, attaching credentials to install requests as they travel to the configured registries. From inside the sandbox, an install behaves like any other — but because the token is never placed in the environment, a coding agent working there can complete dependency installs without any ability to read, log or exfiltrate the secret.

Custom registries included

Support is not limited to the public npm registry. According to the announcement, custom registries are also supported, with GitHub Packages and JFrog Artifactory named as examples. Teams that publish internal packages to those services can let sandboxed agents install from them through the same managed-credential flow, rather than baking tokens into scripts or environment files.

What you need to do

The capability requires current tooling. Vercel advises upgrading the Sandbox SDK or CLI to the latest version to pick it up, and points users to its npm credentials documentation for setup.

Why it matters

Coding agents are increasingly run inside ephemeral sandboxes, and much real work on real codebases involves installing dependencies, including private ones. The awkward answer up to now has been to place a registry token inside the very environment the agent controls, which works against the point of sandboxing: agent transcripts, verbose logs or a manipulated instruction could surface the secret, and a leaked npm token typically grants broad read access to a company's private packages.

Moving authentication to the network layer resolves that tension. The agent gets working installs; the credential stays with the platform. That is least-privilege design applied to agent infrastructure, and it lowers the barrier for organisations that want AI tools to work against repositories with internal dependencies instead of maintaining separate, public-only setups.

For Vercel, the addition also makes Sandbox more practical as infrastructure for agent-driven development, where environments are created and torn down constantly and manual secret handling does not scale.

  • #vercel
  • #npm
  • #cloud
  • #security
  • #ai-agents

Related posts