Skip to main content

JavaScript & TypeScript

Auth0 AI for LangChain

This SDK provides building blocks for using Auth0 for AI Agents with LangChain and LangGraph. 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
npm install @auth0/ai-langchain

Python

Auth0 AI for LangChain

This SDK provides building blocks for using Auth0 for AI Agents 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

Sample applications

Checkout our sample applications built with LangChain and LangGraph.

Assistant0 (Next.js)

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.

Assistant0 (FastAPI)

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.

AI Samples

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.

Auth0 AI SDK TypeScript Samples

Explore example applications that accompany Auth0’s JavaScript AI SDKs. These demonstrate recommended implementation patterns for the SDKs.

Auth0 AI SDK Python Samples

Explore example applications that accompany Auth0’s Python AI SDKs. These demonstrate recommended implementation patterns for the SDKs.

Guides & Tutorials

Checkout our guides for LangChain and LangGraph in TypeScript and Python.

Build an AI Assistant with LangGraph, Vercel, and Next.js: Use Gmail as a Tool Securely

Check Google Calendar Availability

List GitHub Repositories

List Slack Channels