Getting Started

SDK Installation

Zep provides SDKs for Python, TypeScript, and Go.

Python

1pip install zep-cloud

TypeScript

1npm install @getzep/zep-cloud

Go

1go get github.com/getzep/zep-go

Initialize Client

API keys are specific to a project. You can create multiple keys for a single project. Visit Project Settings in the Zep dashboard to manage your API keys.
1import os
2from zep_cloud.client import Zep
3
4API_KEY = os.environ.get('ZEP_API_KEY')
5
6client = Zep(
7 api_key=API_KEY,
8)

The Python SDK Supports Async Use

In order to use async client, you will need to import AsyncZep instead of Zep.

1from zep_cloud.client import AsyncZep

SDK Feature Support

Some SDKs may have limited functionality. The table below shows which features are supported by each SDK.

PythonTypeScriptGo
Memory Operations
Structured Data Extraction-
Dialog Classification
Question Synthesis
Document Collections

LangChain

zep-cloud SDK includes ZepChatMessageHistory and ZepVectorStore classes.

These are designed to work seamlessly with LangChain’s Python Expression Language.

To integrate these classes into your application, ensure the langchain_core package is installed. For installation guidance, please consult the LangChain documentation.

Import the classes as shown below:

1from zep_cloud.langchain import ZepChatMessageHistory, ZepVectorStore

LlamaIndex

Stay tuned! We are in the process of updating our LlamaIndex integration to be compatible with the latest Zep API.