Skip to main content

1. Get an API key

After SSO login, go to Settings → API Keys → New key. Choose at least the ingest scope.
export AGCMS_BASE_URL="https://api.your-tenant.agcms.com"
export AGCMS_API_KEY="agc_live_..."

2. Install an SDK

pip install agcms

3. Send a request

from agcms import AGCMSClient

client = AGCMSClient()    # reads AGCMS_BASE_URL + AGCMS_API_KEY from env
resp = client.chat.completions.create(
    model="groq:llama-3.3-70b-versatile",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp["choices"][0]["message"]["content"])
print("interaction:", client.last_interaction_id)

4. See it in the audit log

Open the dashboard at /audit. Find the row whose interaction_id matches the one you just received in the response header. Click it to see PII findings, injection score, policy decision, and the row’s signature.

5. (Optional) Verify the audit chain offline

agcms verify path/to/exported-bundle.zip
You’re now governed. Next: pick a policy pack for your framework, or wrap your existing OpenAI client.