Skip to content

Developing with Zep

Example Code   |   Python API   |   TypeScript API

Installation

Zep offers both Python and TypeScript SDKs.

pip install zep-python
npm install @getzep/zep-js

# or

yarn add @getzep/zep-js

Initializing the Client

Zep supports optional JWT authentication.

The examples below assume that you have enabled JWT authentication. See the Authentication Configuration Guide for more information.

from zep_python import ZepClient

# Replace with Zep API URL and (optionally) API key
zep = ZepClient("http://localhost:8000", api_key="optional_api_key")
import { ZepClient } from "@getzep/zep-js";

// Replace with Zep API URL and (optionally) API key
const zep = ZepClient.init("http://localhost:8000", "optional_api_key");

zep-python supports async use

zep-python supports async use. All methods are available as both sync and async, with the async methods prefixed with a. For example, zep-python has both zep_client.memory.add_memory and zep_client.memory.aadd_memory methods.

Next Steps

Now that you have a Zep client, you can start using the Zep APIs.