Skip to main content

antarraksha-crewai

Antarraksha AI Agent Enforcement SDK for CrewAI.

Installation

pip install antarraksha-crewai

Quick Start

Instantiate the Antarraksha guardrail and call its check methods from inside your CrewAI tasks or tool wrappers. Registration happens automatically on first use — no login, no API key, no signup required.

from antarraksha_crewai import AntarrakshaGuardrail

guardrail = AntarrakshaGuardrail(agent_id="my-crew-agent")

result = guardrail.check_tool_call(tool_name="search_web", parameters={"query": "..."})
if result["decision"] == "DENY":
    raise PermissionError(result["reason"])

result = guardrail.check_llm_call(model_name="gpt-4o", prompt_length=512)
if result["decision"] == "DENY":
    raise PermissionError(result["reason"])

Wire check_tool_call into your tool callbacks and check_llm_call into your LLM wrapper. Every intercepted call is logged and visible at https://antarraksha.ai/registry.

Parameters

Parameter Default Description
agent_id None Unique identifier for your agent. Triggers auto-registration on first use.
base_url "https://antarraksha.ai" Antarraksha endpoint. Override for self-hosted / dev.
passport_id None Optional pre-issued passport ID (e.g. ANTK-PASS-xxx).
sdk_key None Optional pre-issued SDK key. If omitted and agent_id is set, the SDK auto-registers and obtains one.
fail_closed True If True, deny on enforcement-server unreachable. Set False for fail-open during early integration.

Corporate Network Note

If you're behind a corporate TLS-inspection proxy and see SSLCertVerificationError, install:

pip install pip-system-certs

This makes Python trust your Windows / macOS system certificate store.

Metadata

Release files for antarraksha-crewai 0.1.4

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

Source distribution (sdist)

Source distribution for antarraksha-crewai 0.1.4
File Size Uploaded Provenance Actions
antarraksha_crewai-0.1.4.tar.gz 4.6 kB Without provenance Details for antarraksha_crewai-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for antarraksha-crewai 0.1.4
File Interpreter ABI Platform Actions
antarraksha_crewai-0.1.4-py3-none-any.whl Python 3 none any Details for antarraksha_crewai-0.1.4-py3-none-any.whl

Total release size: 10.0 kB

Release files / antarraksha_crewai-0.1.4.tar.gz

Download URL antarraksha_crewai-0.1.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b85aa6c28b1afffe7f867a7234a041bf85fb44f37efa5a35fa56df940845ab
BLAKE2b-256 checksum
How to use checksums
32bf90cfc84debd8acaf2ac0eef808ef3c37edbae3bcd7b06b33ac2d7ef47938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / antarraksha_crewai-0.1.4-py3-none-any.whl

Download URL antarraksha_crewai-0.1.4-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70398cf49e854ef441a0a7e67e74da7ae44c7efcf425956ee4f1897ab671574d
BLAKE2b-256 checksum
How to use checksums
8585a0f7e7a48e23e2d15f96b48143efebb17f55a0103e7a347eabb365e76f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for antarraksha-crewai 0.1.4

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