Install SDKs

Set up your development environment for Zep

This guide will help you obtain an API key, install the SDK, and initialize the Zep client.

Obtain an API Key

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

Install the SDK

Python

Set up your Python project, ideally with a virtual environment, and then:

$pip install zep-cloud

TypeScript

Set up your TypeScript project and then:

$npm install @getzep/zep-cloud

Go

Set up your Go project and then:

$go get github.com/getzep/zep-go/v3

Initialize the Client

First, make sure you have a .env file with your API key:

ZEP_API_KEY=your_api_key_here

After creating your .env file, you’ll need to source it in your terminal session:

$source .env

Then, initialize the client with your API key:

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

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.