Vercel Agent can install private dependencies from npm and custom registries using credentials stored as shared environment variables on Vercel. npm, pnpm, and classic Yarn running in Agent sessions authenticate as they do in Vercel builds.
To get started, add a shared environment variable for Development or Preview:
Use
NPM_TOKENfor private packages hosted on registry.npmjs.org.Use
NPM_RCto configure custom or multiple registries.
Vercel Agent reads only team-shared variables, not project-scoped ones. Credential values stay outside the sandbox, so the agent cannot read them.
Learn more in the private dependencies docs.
Reference Architecture
Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.
- Agent stack: Build and operate agents with models, tools, and durable workflows.
- Web applications: Choose rendering, data, authentication, and caching approaches.
- Backends: Choose a runtime, connect services, and run background work.
Build with prompts
Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.