
Vercel Sandbox can now install your team's private npm packages using credentials stored in team Shared Environment Variables . Custom registries such as GitHub Packages and JFrog Artifactory are also supported. Pass credentials: { npm: true } when creating a sandbox to let it use your team's existing npm credentials. Tokens stay outside the sandbox. The firewall adds authentication to install requests sent to your configured registries, so a coding agent can install dependencies without seeing
Vercel Sandbox can now install your team's private npm packages using credentials stored in team Shared Environment Variables. Custom registries such as GitHub Packages and JFrog Artifactory are also supported.
Pass credentials: { npm: true } when creating a sandbox to let it use your team's existing npm credentials.
index.js1import { Sandbox } from "@vercel/sandbox";2 3const sandbox = await Sandbox.create({ credentials: { npm: true } });4// Clone or copy project files into the sandbox's working directory first.5await sandbox.runCommand("pnpm", ["install"]);Create a sandbox with managed npm credentials for private package installs.
Tokens stay outside the sandbox. The firewall adds authentication to install requests sent to your configured registries, so a coding agent can install dependencies without seeing the tokens.
Update your Sandbox SDK or CLI to the latest version.
terminal.shpnpm add @vercel/sandbox@latestUpgrade the Sandbox SDK or CLI.
Read the npm credentials documentation to get started.
Vercel Blog
Original Reporting Source
Explore features, ratings, and alternatives from our 19,000+ AI tools catalog.

AssistLoop's AI chatbots slash response times by 70% and boost satisfaction, scaling support for e-commerce and SaaS without extra hires.

Design professional websites effortlessly with AI.
Hypertxt.ai is an AI-powered SEO content writing tool that helps create high-quality, optimized content for improved search engine rankings. It offers various features to streamline the content creation process, from keyword research to content optimization and plagiarism checks.