Skip to main content

Python SDKs

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

note

We value your feedback! To ask questions, report issues, or request new frameworks and providers, connect with us on GitHub.

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

AI Framework SDKs

AI Framework 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

Auth0 AI for LangChain

This SDK provides building blocks for using Auth for GenAI with LangChain and LangGraph. Includes a RAG Retriever for using OpenFGA, tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, and OpenFGA-based tool authorizers. It supports:

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

Auth0 AI for LlamaIndex

This SDK provides building blocks for using Auth for GenAI with LlamaIndex. Includes a RAG Retriever for using OpenFGA, tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, and OpenFGA-based tool authorizers. It supports:

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