Skip to main content

Python SDKs

Auth0 Python SDK libraries make it easy for developers to integrate with and secure any AI agent workflow.

Auth0 SDKs

Updated Auth0 SDKs to secure AI agent workflows:

Auth0 Python Server SDK

The Auth0 Server Python SDK is a library for implementing user authentication in Python applications.

pip install auth0-server-python
ctrl+C

Auth0 Python API SDK

The auth0-api-python library allows you to secure APIs running on Python, particularly for verifying Auth0-issued access tokens.

It’s intended as a foundation for building more framework-specific integrations (e.g., with FastAPI, Django, etc.), but you can also use it directly in any Python server-side environment.

pip install auth0-api-python
ctrl+C

Auth0 FastAPI SDK

The Auth0 FastAPI SDK is a library for implementing user authentication in FastAPI web applications using Auth0.

pip install auth0-fastapi
ctrl+C

Auth0 FastAPI API SDK

The Auth0 FastAPI API SDK library allows you to secure FastAPI APIs using bearer tokens from Auth0.

It exposes a simple require_auth dependency that checks if incoming requests have a valid JWT, then provides the token claims to your route handler.

pip install auth0-fastapi-api
ctrl+C

Auth0 AI SDKs

Auth0 AI SDKs to streamline integrating your application with popular agentic frameworks:

Auth0 AI SDK

This SDK provides base abstractions for authentication and authorization in AI applications, including tools for implementing asynchronous user authentication using the Client Initiated Backchannel Authentication (CIBA) protocol. It supports:

  • A RAG Retriever for using OpenFGA
  • Tools for implementing asynchronous user authentication,
  • Tools for getting access tokens for third-party connections,
  • OpenFGA-based tool authorizers.
pip install auth0-ai
ctrl+C

Sample applications

Checkout our sample applications for Python built with frameworks like LangGraph and LLamaIndex.

  • Auth0 AI SDK samples: Explore our repository of sample applications showcasing Auth0's authentication and authorization capabilities in the context of generative AI applications.
  • AI Samples: Explore our repository of sample applications showcasing Auth0's authentication and authorization capabilities in the context of generative AI applications.

Guides & Tutorials

Checkout our guides for LangChain and LlamaIndex in Python.