Metadata-Version: 2.5
Name: aegis-gateway-sdk
Version: 2.0.0a6
Summary: Python client for the Aegis AI gateway (sync and async).
Project-URL: Homepage, https://e-choness.github.io/aegis/
Project-URL: Documentation, https://e-choness.github.io/aegis/
Project-URL: Repository, https://github.com/e-choness/aegis
Project-URL: Changelog, https://e-choness.github.io/aegis/changelog
Project-URL: Issues, https://github.com/e-choness/aegis/issues
Author: Aegis contributors
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
Keywords: ai-gateway,audit,governance,guardrails,llm,openai,pii
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic>=2
Description-Content-Type: text/markdown

# aegis-gateway-sdk

Python client for the Aegis gateway — sync (`AegisClient`) and async
(`AsyncAegisClient`), covering runs, approvals, audit and chat.

```bash
pip install aegis-gateway-sdk
```

```python
from aegis_sdk import AegisClient

with AegisClient(base_url="http://localhost:8000", api_key="aeg-...") as client:
    run = client.create_run(
        [{"role": "user", "content": "Wire $40k to vendor 7731"}],
        route="payments",
        approvers=["jane"],
    )
    print(run.run_id, run.status)
```

For plain chat, any OpenAI SDK works against Aegis too. See [SDKs](https://e-choness.github.io/aegis/reference/sdks).

## Links

- [Documentation](https://e-choness.github.io/aegis/) · [Changelog](https://e-choness.github.io/aegis/changelog) · [Source](https://github.com/e-choness/aegis)
- Most users want the umbrella package: `pip install aegis-gateway`.

Part of [Aegis](https://pypi.org/project/aegis-gateway/), a self-hosted AI gateway. Licensed under [AGPL-3.0-or-later](https://github.com/e-choness/aegis/blob/main/LICENSE).
