New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

is-it-ai

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-it-ai

Detect and verify if packages is executed within an AI agent environment

pipPyPI
Version
0.1.3
Weekly downloads
186
46.46%
Maintainers
1
Weekly downloads
 
Created

is-it-ai

Detect and verify if package is being executed in an AI agent environment.

Installation

pip install is-it-ai

Usage

Local Detection

from is_it_ai import detect, is_claude_code

if detect():
    print("Running under an AI agent")

if is_claude_code():
    print("Running under Claude Code")

API

  • detect() - Detect if running under any known AI agent
  • is_claude_code() - Detect Claude Code specifically
  • is_perplexity() - Detect Perplexity specifically
  • is_cursor() - Detect Cursor specifically
  • is_codex() - Detect Codex specifically

FAQs

Related posts