Zep

3.16.0 · active · verified Sun Mar 01

Long-term memory and context platform for AI assistants. Two separate PyPI packages: zep-cloud (managed platform) and zep-python (OSS/Community Edition). Not interchangeable. zep-python v2.x main branch now ships the Cloud SDK — OSS users need the oss branch build.

Warnings

Install

Imports

Quickstart

Zep Cloud client usage. For Community Edition, use ZepClient from zep-python pointed at your self-hosted server.

from zep_cloud.client import Zep

client = Zep(api_key="your-zep-api-key")

client.memory.add(
    "session_abc",
    messages=[
        {"role_type": "user", "content": "My name is Alice."},
        {"role_type": "assistant", "content": "Nice to meet you, Alice."}
    ]
)

memory = client.memory.get("session_abc")
print(memory.context)

view raw JSON →