MCPcopy Index your code
hub / github.com/getzep/zep

github.com/getzep/zep @zep-crewai-v1.1.1

repository ↗ · DeepWiki ↗ · release zep-crewai-v1.1.1 ↗ · + Follow
949 symbols 2,674 edges 184 files 296 documented · 31% updated 2d agozep-crewai-v1.1.1 · 2025-09-11★ 4,728
README

Zep Logo

Zep: The Memory Foundation For Your AI Stack

Examples, Integrations, & More

Chat on Discord Twitter Follow

What is Zep? 💬

Zep is a memory platform for AI agents that learns from user interactions and business data. It builds a temporal knowledge graph to provide AI assistants with personalized, accurate, and up-to-date information, enhancing user experiences through continuous learning.

How Zep works

  1. Add chat messages or data artifacts to Zep during each user interaction or agent event
  2. Zep intelligently integrates new information into the user's Knowledge Graph, updating existing context as needed
  3. Retrieve relevant facts from Zep for subsequent interactions or events

Zep's temporal Knowledge Graph maintains contextual information about facts, enabling reasoning about state changes and providing data provenance insights.

Getting Started

Sign up for Zep Cloud

Visit www.getzep.com to sign up for Zep Cloud, our managed service that offers low latency, scalability, and high availability with additional features like dialog classification and structured data extraction.

Find Zep SDKs

Zep offers comprehensive SDKs for multiple languages:

  • Python: pip install zep-cloud
  • TypeScript/JavaScript: npm install @getzep/zep-cloud
  • Go: go get github.com/getzep/zep-go/v2

Get Help

About This Repository

Note: This repository is currently a work in progress.

This repository contains example projects, code samples, and other components to help you get started with Zep. Explore the examples to see how Zep integrates with popular frameworks like LangChain, LlamaIndex, and others.

Repository Structure

The repository includes:

  • Example applications demonstrating Zep integration
  • Code samples for different use cases
  • Additional tools and utilities
  • Legacy code (see Community Edition section below)

Development Setup

This project uses UV for Python package management with workspace features.

Prerequisites

  • Python 3.13+
  • UV package manager

Getting Started

  1. Install UV (if not already installed): ```bash # On macOS and Linux curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex" ```

  1. Sync the workspace: bash uv sync

  2. Activate the virtual environment: ```bash # On Unix/macOS source .venv/bin/activate

# On Windows .venv\Scripts\activate ```

Workspace Structure

This project is configured as a UV workspace with the following packages:

  • Main package (zep): Core Zep functionality
  • Autogen integration (integration/autogen/): Integration package for Autogen framework

Working with the Workspace

  • Install dependencies: uv sync
  • Add dependencies to main package: uv add <package>
  • Add dependencies to autogen integration: uv add --project integration/autogen <package>
  • Run tests for autogen integration: uv run --project integration/autogen pytest
  • Build packages: uv build

Integration Development

The autogen integration package is located in integration/autogen/ with the following structure:

integration/autogen/
├── src/zep_autogen/     # Package source code
├── tests/               # Test files
└── pyproject.toml       # Package configuration

Contributing

We welcome contributions to help improve Zep and its ecosystem. Please see the CONTRIBUTING.md file for guidelines on how to contribute, including:

  • Code contributions
  • Documentation improvements
  • Bug reports and feature requests
  • Community examples and integrations

Graphiti: The Knowledge Graph Framework

Zep is powered by Graphiti, an open-source temporal knowledge graph framework that we developed to handle changing relationships and maintain historical context.

What makes Graphiti unique is its ability to autonomously build a knowledge graph while reasoning about state changes over time. Each fact includes valid_at and invalid_at dates, allowing agents to track changes in user preferences, traits, or environment.

Visit the Graphiti repository to learn more about the knowledge graph framework that powers Zep's memory capabilities.

Community Edition (Legacy)

Note: Zep Community Edition is no longer supported and has been deprecated. The Community Edition code has been moved to the legacy/ folder in this repository.

For current Zep development, we recommend using Zep Cloud or exploring the example projects in this repository.

Read more about this change in our announcement: Announcing a New Direction for Zep's Open Source Strategy

Extension points exported contracts — how you extend this code

RequestCommon (Interface)
this interface is used to avoid needing to have a dependency on the models package. [1 implementers]
legacy/src/lib/telemetry/service.go
GraphProps (Interface)
(no doc)
examples/typescript/zep-graph-visualization/src/components/graph/Graph.tsx
HTTPBaser (Interface)
(no doc) [2 implementers]
legacy/src/lib/util/httputil/http_base.go
GraphRef (Interface)
(no doc)
examples/typescript/zep-graph-visualization/src/components/graph/Graph.tsx
SessionStoreCommon (Interface)
(no doc) [2 implementers]
legacy/src/models/session_common.go
GraphVisualizationProps (Interface)
(no doc)
examples/typescript/zep-graph-visualization/src/components/graph/GraphVisualization.tsx
Logger (Interface)
(no doc) [1 implementers]
legacy/src/lib/logger/logger.go
GraphPopoversProps (Interface)
(no doc)
examples/typescript/zep-graph-visualization/src/components/graph/GraphPopovers.tsx

Core symbols most depended-on inside this repo

add
called by 70
integrations/python/zep_autogen/src/zep_autogen/memory.py
String
called by 34
legacy/src/lib/telemetry/events.go
Get
called by 28
legacy/src/models/userstore.go
search
called by 28
integrations/python/zep_crewai/src/zep_crewai/memory.py
Error
called by 24
legacy/src/lib/logger/logger.go
cn
called by 22
examples/typescript/zep-graph-visualization/src/lib/utils.ts
CaptureBreadcrumb
called by 21
legacy/src/lib/observability/service.go
NewBaseSchema
called by 15
legacy/src/store/schema_common.go

Shape

Method 401
Function 315
Struct 116
Class 51
Interface 43
TypeAlias 15
Route 6
FuncType 2

Languages

Go61%
Python28%
TypeScript11%

Modules by API surface

legacy/src/lib/logger/logger.go37 symbols
legacy/src/lib/zerrors/errors.go33 symbols
legacy/src/lib/graphiti/service_ce.go31 symbols
integrations/python/zep_crewai/tests/test_tools.py28 symbols
legacy/src/store/memorystore_common.go25 symbols
legacy/src/api/handlertools/tools.go25 symbols
integrations/python/zep_livekit/src/zep_livekit/agent.py21 symbols
legacy/src/models/memorystore_common.go19 symbols
legacy/src/models/tasks_common.go18 symbols
integrations/python/zep_crewai/tests/test_user_storage.py18 symbols
legacy/src/lib/enablement/service.go17 symbols
integrations/python/zep_crewai/tests/test_graph_storage.py16 symbols

Dependencies from manifests, versioned

dario.cat/mergov1.0.1 · 1×
github.com/chewxy/math32v1.10.1 · 1×
github.com/failsafe-go/failsafe-gov0.6.8 · 1×
github.com/felixge/httpsnoopv1.0.4 · 1×
github.com/go-chi/corsv1.2.1 · 1×
github.com/go-logr/logrv1.4.2 · 1×
github.com/go-logr/stdrv1.2.2 · 1×
github.com/go-playground/localesv0.14.1 · 1×
github.com/go-playground/universal-translatorv0.18.1 · 1×

For agents

$ claude mcp add zep \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact