Skip to main content

aidr-verifier

Verify an AI agent's identity on your own site, offline: the agent's credential (signed by the AIDR registry) and its RFC 9421 request signature. Nothing in the request path calls the registry.

pip install "aidr-verifier[fastapi]"

ASGI (FastAPI, Starlette): the middleware keeps keys and revocation state in sync in the background and puts the result in request.state.aidr:

from aidr_verifier import AidrMiddleware, RelyingPartyConfig

app.add_middleware(AidrMiddleware, config=RelyingPartyConfig(
    issuer="https://api.evolivcore.com", public_origin="https://shop.example", min_agal=1))

Anonymous visitors pass as anonymous; a request that claims an identity and fails is refused. An audience-bound credential is checked against the site being visited (or public_origin). Flask (WSGI), in one line:

from aidr_verifier.wsgi import AidrWSGIMiddleware, RelyingPartyConfig

app.wsgi_app = AidrWSGIMiddleware(app.wsgi_app, RelyingPartyConfig(issuer="https://api.evolivcore.com"))
# request.environ["aidr"] in a view

Classic Django: add "aidr_verifier.django.AidrMiddleware" first in MIDDLEWARE and set AIDR = {"issuer": "https://api.evolivcore.com"}; views read request.aidr.

If the registry stays out of reach, agents are refused (503 aidr.registry.unavailable) once the newest revocation list held was signed 11 minutes (max_revocation_age_seconds=660) earlier, judged from its signed iat; anonymous visitors are unaffected. Every AIDR verifier applies the same limit. health()["revocation_issued_at"] shows how close a site is to it.

mode="verified-only" (with verified_only_paths) refuses anonymous requests with 401, as the Cloudflare Worker and the Node middleware do. Or verify a request yourself with AgentVerifier. Apache-2.0.

Metadata

Release files for aidr-verifier 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aidr-verifier 0.1.2
File Size Uploaded
aidr_verifier-0.1.2.tar.gz 34.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aidr-verifier 0.1.2
File Interpreter ABI Platform
aidr_verifier-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 76.1 kB

Release files / aidr_verifier-0.1.2.tar.gz

Download URL aidr_verifier-0.1.2.tar.gz
Size 34.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc9b3443ada5b596b173a35ae5803cabb840e55c2845bb4e45b965e6485530c4
BLAKE2b-256 checksum
How to use checksums
a0112e8129ecb96d15115f218e5a2e8de43071bb7f302f98cab46135ef0b05c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / aidr_verifier-0.1.2-py3-none-any.whl

Download URL aidr_verifier-0.1.2-py3-none-any.whl
Size 41.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65c68ba371ca910c0933e6309aa7e171d82cd59693973292b0208b3a3c8db19e
BLAKE2b-256 checksum
How to use checksums
514af5ee36f4e51eea639f89413a45f8a7c492c8b996f2a97bebd13853fbffad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page