Skip to main content

@vercel/detect-agent

v1.2.7SAFE Risk

Detect if code is running in an AI agent or automated development environment

A+100/100
Install Command
npm install @vercel/detect-agent
orpnpm add @vercel/detect-agent
Typosquat Defense
Authentic Name

No similarity to known typosquatting targets.

Lifecycle Scripts
Clean Execution

Zero preinstall or postinstall arbitrary execution hooks.

License Type
Apache-2.0

Permissive open-source license. Safe for enterprise & proprietary software.

Package Specifications

Unpacked Size
23.2 KB
Dependencies
0
Maintainers
4
Last Published
Oct 13, 2026
Free VS Code Extension

Detect Supply Chain Attacks Directly in Your Editor

Get instant CodeLens risk scores, typosquatting warnings, and license audits right inside your package.json file with zero configuration.

Install Dependency Risk Lens

Frequently Asked Questions

Is @vercel/detect-agent safe to use in production?
@vercel/detect-agent received a Security Grade of A+ (100/100) with a risk evaluation of SAFE. It contains zero malicious postinstall scripts.
What license does @vercel/detect-agent use?
@vercel/detect-agent is licensed under the Apache-2.0 license (PERMISSIVE). This is a permissive open-source license suitable for commercial applications.
How do I install @vercel/detect-agent?
Install it via NPM using: npm install @vercel/detect-agent, or via PNPM: pnpm add @vercel/detect-agent, or Yarn: yarn add @vercel/detect-agent.