Skip to main content

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

Metadata

Release files for is-it-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for is-it-ai 0.1.0
File Size Uploaded Provenance Actions
is_it_ai-0.1.0.tar.gz 2.0 kB Without provenance Details for is_it_ai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for is-it-ai 0.1.0
File Interpreter ABI Platform Actions
is_it_ai-0.1.0-py3-none-any.whl Python 3 none any Details for is_it_ai-0.1.0-py3-none-any.whl

Total release size: 4.2 kB

Release files / is_it_ai-0.1.0.tar.gz

Download URL is_it_ai-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bffaf180bed603d99fa26fc791ca0007a9c5964428eb92aeae93b25b86f09ba8
BLAKE2b-256 checksum
How to use checksums
5b9f99a8123068607db80ba2ac1d24f7114d7fbbd2da1cb9b9a0310ca0e25aa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / is_it_ai-0.1.0-py3-none-any.whl

Download URL is_it_ai-0.1.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9dc46d7613690e06a6c3ec2c277bac267ac0da07f467d093af19414ac4581e2
BLAKE2b-256 checksum
How to use checksums
296ed09e037d199df86d55e5d7fbf26e42fffc7665dc752397be8a9fdc560233
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for is-it-ai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page