aiagent.club
中文
npm package

@vercel/detect-agent

Updated 2026-09-12 View source ↗

#13 of 203 by Downloads / week among npm packages

2.7M Downloads / week

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

About

A lightweight utility for detecting if code is being executed by an AI agent or automated development environment.

This package can detect the following AI agents and development environments:

We're promoting AIAGENT as a universal environment variable standard for AI development tools. This allows any tool or library to easily detect when it's running in an AI-driven environment.

Set the AIAGENT environment variable to identify your tool:

We welcome contributions! Please see our contributing guidelines.

Excerpted from www.npmjs.com/package/@vercel/detect-agent

Latest metrics

Downloads / week 2.7M 2026-09-12