Skip to content

[sandbox] add support for managed npm credentials to the SDK and CLI - #453

Open
visyat wants to merge 2 commits into
mainfrom
credentials/npm
Open

visyat wants to merge 2 commits into
mainfrom
credentials/npm

Conversation

@visyat

@visyat visyat commented Nov 7, 2026 •

Copy link
Copy Markdown

We're adding support for managed npm credentials to Vercel Sandboxes. On request, Vercel will inject your team's npm credentials for GET/HEAD requests to the npm registries defined in your team shared NPM_RC/NPM_TOKEN env vars (that you use for your Vercel builds). Allows coding agents or apps in Vercel Sandboxes to install your private packages without any added configuration.

SDK Example

const sandbox = await Sandbox.create({ credentials: { npm: true } });
await sandbox.runCommand("npm", ["install"]);

CLI Example

$ sandbox create --credentials=npm --name test-sandbox

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sandbox Ready Ready Preview, v0 Nov 10, 2026 1:06am UTC
sandbox-cli Ready Ready Preview Nov 10, 2026 1:06am UTC
sandbox-sdk-ai-example Ready Ready Preview Nov 10, 2026 1:06am UTC
workflow-code-runner Ready Ready Preview Nov 10, 2026 1:06am UTC

Request Review

Comment thread packages/vercel-sandbox/package.json Resolved
Comment thread packages/sandbox/src/commands/create.ts Resolved

This branch was successfully deployed

4 active deployments
Preview – sandbox-sdk-ai-example — 6046f3d4 Deployed Nov 10, 2026 by vercel[bot]
Preview – sandbox — 6046f3d4 Deployed Nov 10, 2026 by vercel[bot]
Preview – workflow-code-runner — 6046f3d4 Deployed Nov 10, 2026 by vercel[bot]
Preview – sandbox-cli — 6046f3d4 Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants