> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDKs & Samples

> Auth0 Python SDKs make it easy for developers to integrate with and secure AI agent workflows.

## Auth0 SDKs

Updated Auth0 SDKs to secure AI agent workflows:

### [Auth0 Python Server SDK](https://github.com/auth0/auth0-server-python)

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

```bash wrap lines theme={null}
pip install auth0-server-python
```

### [Auth0 Python API SDK](https://github.com/auth0/auth0-api-python)

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.

```bash wrap lines theme={null}
pip install auth0-api-python
```

### [Auth0 FastAPI SDK](https://github.com/auth0/auth0-fastapi)

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

```bash wrap lines theme={null}
pip install auth0-fastapi
```

### [Auth0 FastAPI API SDK](https://github.com/auth0/auth0-fastapi-api)

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.

```bash wrap lines theme={null}
pip install auth0-fastapi-api
```

## Auth0 AI SDKs

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

### [Auth0 AI SDK](https://github.com/auth0/auth0-ai-python)

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.

```bash wrap lines theme={null}
pip install auth0-ai
```

## Sample applications

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

<Columns cols={2}>
  <Card title="Assistant0 (LangGraph + FastAPI)" href="https://github.com/auth0-samples/auth0-assistant0/tree/main/py-langchain">
    A fullstack AI personal assistant with pre-configured tools that demonstrate different Auth0 for AI Agents features like User Authentication, Calling APIs (Gmail, Google Calendar, etc) securely using Token Vault, Human-in-the-loop interactions using Asynchronous Authorization, and using Auth0 FGA for securing RAG tools.
  </Card>

  <Card title="Auth0 AI SDK Samples" href="https://github.com/auth0/auth0-ai-python/tree/main/examples">
    Explore our repository of standalone sample applications that showcase
    Auth0's authentication and authorization capabilities in generative AI
    applications. Each sample demonstrates a specific Auth0 for AI Agents feature.
  </Card>

  <Card title="AI Samples" href="https://github.com/auth0-samples/auth0-ai-samples">
    Explore example applications that accompany Auth0's Python AI SDKs.
    These demonstrate recommended implementation patterns for the SDKs.
  </Card>
</Columns>

## Guides & Tutorials

Checkout our guides for LangChain and LlamaIndex in Python.

<Columns cols={2}>
  <Card title="Check Google Calendar Availability" href="/ai/docs/how-tos/check-google-calendar-availability" icon="google" iconType="solid" horizontal />

  <Card title="List GitHub Repositories" href="/ai/docs/how-tos/list-github-repositories" icon="github" iconType="solid" horizontal />

  <Card title="List Slack Channels" href="/ai/docs/how-tos/list-slack-channels" icon="slack" iconType="solid" horizontal />
</Columns>
