Install SDKs

Set up your development environment for Zep

This guide shows how to obtain an API key, install an SDK, and initialize the Zep client. For end-to-end setup, read the quick start guide.

Obtain an API Key

Create a free Zep account and you will be prompted to create an API key.

Install the SDK

Set up a Python virtual environment, then install the SDK:

pip install zep-cloud

Initialize the Client

Add your API key to a .env file:

export ZEP_API_KEY=your-zep-api-key

Load the environment variable into your terminal session:

source .env

Then, initialize the client with your API key:

import os
from zep_cloud.client import Zep
API_KEY = os.environ.get('ZEP_API_KEY')
client = Zep(
api_key=API_KEY,
)

The Python SDK Supports Async Use

The Python SDK supports both synchronous and asynchronous usage. For async operations, import AsyncZep instead of Zep and remember to await client calls in your async code.