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.3

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.3
File Size Uploaded Provenance Actions
is_it_ai-0.1.3.tar.gz 2.0 kB Without provenance Details for is_it_ai-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 4.2 kB

Release files / is_it_ai-0.1.3.tar.gz

Download URL is_it_ai-0.1.3.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b506484241f947493ecd90c0f7d3168c99ba2bc3a48b7cf19f3e58ec3ae85405
BLAKE2b-256 checksum
How to use checksums
7ddf9aee9435565b247500bab982441be8f2e54471382fd67903722867b58d97
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.3-py3-none-any.whl

Download URL is_it_ai-0.1.3-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0413f02a6ebb40943385c9e8ee1197d69813738e0ba70c3c52632821b730f07
BLAKE2b-256 checksum
How to use checksums
25eb90d7c9ad7290cb512635fb672024fd626f8a269d796b9f3cf88ce4456648
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.3

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