antarraksha-openai-agents
Antarraksha AI Agent Enforcement SDK for the OpenAI Agents SDK.
Installation
pip install antarraksha-openai-agents
Quick Start
Attach Antarraksha as input and output guardrails on your Agent. Registration happens automatically on first use — no login, no API key, no signup required.
from agents import Agent
from antarraksha_openai_agents import (
AntarrakshaInputGuardrail,
AntarrakshaOutputGuardrail,
)
input_guard = AntarrakshaInputGuardrail(agent_id="my-openai-agent")
output_guard = AntarrakshaOutputGuardrail(agent_id="my-openai-agent")
agent = Agent(
name="my-openai-agent",
instructions="You are a helpful assistant.",
input_guardrails=[input_guard],
output_guardrails=[output_guard],
)
Run your agent normally — every input and output is now enforced against Antarraksha policy.
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. |
Enforcement Behavior
- Input guardrail fires before the LLM receives the user prompt. Antarraksha can DENY (raises
PermissionError) or ALLOW. - Output guardrail fires after the LLM produces output. Antarraksha can DENY (raises
PermissionError) or ALLOW. - Every call is logged in your Antarraksha registry and visible at
https://antarraksha.ai/registry.
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-openai-agents 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| antarraksha_openai_agents-0.1.3.tar.gz | 4.2 kB | Without provenance | Details for antarraksha_openai_agents-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antarraksha_openai_agents-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for antarraksha_openai_agents-0.1.3-py3-none-any.whl |
Total release size: 9.2 kB
Release files / antarraksha_openai_agents-0.1.3.tar.gz
| Download URL | antarraksha_openai_agents-0.1.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74256d11d5bcb8f71ae81604afa7d6fd0e7e9fae5734eb8417ca46d16f225243
|
|
BLAKE2b-256 checksum How to use checksums |
abb67c42846c04473090340cb398dc643e21d1037241a4b7d1809f6164a2b2a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / antarraksha_openai_agents-0.1.3-py3-none-any.whl
| Download URL | antarraksha_openai_agents-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b47086575399baed7a8301b8d7e1b26d4e733ad5ed6f64017e9ad8e5b61d0650
|
|
BLAKE2b-256 checksum How to use checksums |
b6bc1ca4aadb3a18099dc2e13b2ded9a526cf308d83443859ff344d291b6c8fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for antarraksha-openai-agents 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.