Install and verify a release
Goal: install the part of Agentic Auth you need, from PyPI or from a downloaded release, and confirm the files are the ones this project built.
:::info Available from 0.2.0
0.1.x installs only from git, as pip install "agentic-auth @ git+https://github.com/xinweiiiii/agentic-auth@v0.1.1",
and imports as app.
:::
1. Pick an install option
The package installs as authzai and imports as agentic_auth. Install only what your role
needs:
| You are | Install | You get |
|---|---|---|
| A tool owner verifying incoming calls | pip install authzai | agentic_auth.verify: offline, pyjwt[crypto] only |
| An agent calling a control plane | pip install 'authzai[client]' | agentic_auth.sdk |
| A CI pipeline checking for drift | pip install 'authzai[drift]' | the agentic-auth CLI and agentic_auth.sdk.drift |
| Trying it, or testing your agents | pip install 'authzai[embedded]' | agentic_auth.embedded: the whole control plane in your process |
| Running the control plane | pip install 'authzai[server]' | the control plane, sidecar, gateway and boundary adapter |
Add otel to any of these for OpenTelemetry traces and logs.
If you import a module without the option it needs, the error names that option:
ImportError: agentic_auth.embedded needs the 'embedded' extra: pip install 'authzai[embedded]'
2. Or run the server image
docker run --rm -e AGENTIC_AUTH_DATABASE_URL=... ghcr.io/xinweiiiii/agentic-auth:0.4.0 alembic upgrade head
docker run -p 8099:8099 -e AGENTIC_AUTH_DATABASE_URL=... -e AGENTIC_AUTH_REDIS_URL=... \
ghcr.io/xinweiiiii/agentic-auth:0.4.0
The image is built from the released wheel, not from source, and runs as a non-root user.
Before a shared deployment, set at least AGENTIC_AUTH_ADMIN_TOKEN and
AGENTIC_AUTH_ISSUER_PRIVATE_KEY; Configuration lists every
setting.
3. Verify what you downloaded
Every release page carries the wheels, the sdists and a SHA256SUMS file. Every file, and
the image, has a signed build provenance attestation. The attestation says which workflow
built it, from which commit.
gh release download v0.4.0 --repo xinweiiiii/agentic-auth -D authzai-0.4.0 && cd authzai-0.4.0
sha256sum -c SHA256SUMS
gh attestation verify authzai-0.4.0-py3-none-any.whl --repo xinweiiiii/agentic-auth
gh attestation verify oci://ghcr.io/xinweiiiii/agentic-auth:0.4.0 --repo xinweiiiii/agentic-auth
A file that was changed after the build fails both checks.
4. Install without access to PyPI
Download the dependency set on a machine that can reach PyPI, carry it across, and install from the files:
pip download 'authzai[server]==0.4.0' -d wheels/ # connected machine
pip install --no-index --find-links wheels/ 'authzai[server]==0.4.0'
5. Migrating from 0.1.x
0.2.0 renamed the import root from app to agentic_auth. Rename the imports:
sed -E 's/\b(from|import) app\./\1 agentic_auth./g'
Run the server as uvicorn agentic_auth.main:app.
Related
- Changelog: what changed in each release
- Features: what the current release can do
- Configuration: every setting