Catalog PyPI
PACKAGE EXPLORERView in registry

agcms

PyPI

Official Python SDK for AGCMS — AI Governance & Compliance Monitoring.

auditcompliancegovernancellmopenaipii
Versions collected1
Direct dependencies5From release 0.1.2
Last observed20 Oct, 21:20 UTC

README

Version 0.1.2 documentation

AGCMS Python SDK

Official Python client for AGCMS — AI Governance & Compliance Monitoring. Drop-in replacement for the OpenAI client that routes every call through your AGCMS gateway, so you get PII redaction, prompt-injection detection, policy enforcement, and cryptographically signed audit trails for free.

Install

pip install agcms

Quickstart

from agcms import AGCMSClient

client = AGCMSClient(
    base_url="http://localhost:8000",          # your AGCMS gateway
    api_key="agcms_test_key_for_development",  # or a real per-tenant key
)

resp = client.chat.completions.create(
    model="groq:llama-3.3-70b-versatile",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(resp["choices"][0]["message"]["content"])
print("audit interaction_id:", client.last_interaction_id)

Wrap an existing OpenAI client (3-line integration)

from openai import OpenAI
from agcms import openai_wrap

client = openai_wrap(
    OpenAI(api_key="sk-..."),
    agcms_base_url="http://localhost:8000",
    agcms_api_key="agcms_test_key_for_development",
)

# Use it exactly like a regular OpenAI client; AGCMS sits in the middle.
client.chat.completions.create(model="gpt-4o", messages=[...])

Verify an audit bundle (CLI)

python -m agcms.cli verify path/to/bundle.zip

Validates the hash chain, Merkle root, and signing-key chain offline — no network calls, no AGCMS credentials needed.

Run AGCMS yourself

The repo ships a 11-service docker-compose.yml:

git clone https://github.com/Dheeran-git/AGCMS.git
cd AGCMS && cp .env.example .env
docker compose up --build --wait
# → gateway on :8000, dashboard on :3000

License

Apache-2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.29 May 20265

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dheeran-git/agcms

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:06eb1517ed355e645aad63ef36e6ccb5b0aee1966adbf7ef1d3012247b39704f