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")

Cloud Verification

from is_it_ai import verify

result = verify()
if result.verified:
    print(f"Verified: ${result.message}")
else:
    print(f"Failed {result.message}")

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
  • get_context() - Collect execution environment context
  • verify(context, timeout) - Verify against cloud service

Metadata

Release files for is-it-ai 0.1.1

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.1
File Size Uploaded Provenance Actions
is_it_ai-0.1.1.tar.gz 5.3 kB Without provenance Details for is_it_ai-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 11.2 kB

Release files / is_it_ai-0.1.1.tar.gz

Download URL is_it_ai-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e3c542d03edb65030213b9450e26953bd9b5326f68607dcff683d596f0082466
BLAKE2b-256 checksum
How to use checksums
64472bbbcf0bae2f9b6a1bdbfd7b61e8c33b6d45f4cb5df0a4a295b8d041f748
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.1-py3-none-any.whl

Download URL is_it_ai-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e3a2530cebb78a1f8b67a7f6a7fa2bf38e382031d4295d1b64b43e6fce2834c
BLAKE2b-256 checksum
How to use checksums
5b2477c9b19367c14ca9b9cb596a6216de6efc6a2d6acc1a07f7aae34e5c3d15
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.1

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