Comparisons

Zep vs. Cognee
Zep is better for managed conversational memory that tracks changing facts about users. Cognee is better for open-source, self-hosted memory built from documents and code.
Last updated December 2026
Zep is the better choice for teams that want managed conversational memory for agents, built on a temporal knowledge graph that tracks when facts change, with unmetered retrieval and SOC 2 Type II and HIPAA on its Enterprise plan. Cognee is the better choice for teams that want an open-source, Apache 2.0 memory engine they can self-host, turning documents, code and conversations into a knowledge graph with ontology control.
We make Exabase, which appears as a short third option near the end. This is a neutral comparison of Zep and Cognee, based on the Zep pricing page, the Cognee GitHub README and the Cognee pricing page, all checked on 4 December 2026.
Quick verdict
Choose Zep if you are adding long-term memory to a chat agent or assistant, want facts about each user kept current as they change, and prefer a hosted service with predictable credit-based pricing.
Choose Cognee if you want to run memory on your own infrastructure for free, need a knowledge graph built from documents and code as well as chat, or want to shape the graph with your own ontology.
Consider Exabase if you want agent memory, file storage and search in one API, with memory that resolves contradictions and isolated environments per user or customer.
Comparison table
Feature | Zep | Cognee |
|---|---|---|
What it is | Managed context and memory platform for agents | Open-source AI memory engine with a hosted cloud |
Core model | Temporal knowledge graph (open-source Graphiti framework) | Knowledge graph plus vector search, built from any content |
Licence | Zep Cloud is commercial; Graphiti is open source | Apache 2.0 |
Free option | 10,000 credits a month | Self-hosted open source; Cloud Standard plan at $0 a month with 100M tokens |
Paid plans | Flex $125 a month; Flex Plus $375 a month; Enterprise custom | Premium $99 a month; Business $499 a month, plus token usage; Enterprise BYOC |
Usage pricing | Credits per Episode (1 credit per 350 bytes); retrieval unmetered | $0.10 per 1M tokens after the included allowance |
Main inputs | Chat messages, JSON and text as Episodes | Documents, code, conversations, plus connectors such as Google Drive and Gmail |
API style | Users, threads, graph search and a context block | remember, recall, improve and forget |
Self-hosting | BYOC in your VPC on Enterprise | Full engine self-hosted for free; BYOC on Enterprise |
MCP | Context MCP Server seats on every plan | cognee-mcp server |
Compliance | SOC 2 Type II and HIPAA BAA on Enterprise | Trust Center; EU data residency and DPA on Business |
GitHub stars | Graphiti repository (not checked) | About 31,200 |
What each tool does
Zep is a hosted memory service for agents. You send it Episodes (chat messages, JSON payloads or blocks of text), and it extracts entities and relationships, with entity resolution to merge duplicates, into a temporal knowledge graph, recording when each fact became true and when it stopped being true. At query time your agent asks Zep for context about a user or thread and gets back the relevant facts, ready to place in the prompt. The graph layer is Zep’s open-source Graphiti framework, which teams can also run on their own.
Cognee is an open-source memory engine. Its API has four verbs: remember stores content (or a session), recall retrieves context or answers, improve enriches memory and applies feedback, and forget removes an item or dataset. Behind them, Cognee builds a knowledge graph with embeddings from documents, code and conversations, using OpenAI by default or other providers, including local models through Ollama. Cognee Cloud runs the same engine as a managed service.
Both are graph-based agent memory systems. Zep is built around conversations and users. Cognee is built around turning any content into connected knowledge; see the best knowledge graph for AI agents for other graph-based options.
Memory model
Zep’s defining feature is time. A temporal knowledge graph stores facts with validity periods, so when a user says they have moved from Toronto to Berlin, the old fact is marked as no longer valid rather than left to compete with the new one. That directly addresses memory drift, and it suits assistants that talk to the same person over months.
Cognee’s strength is structure. It extracts entities and relationships into a graph and links them to vector embeddings, so an agent can follow connections between documents, people and concepts. Paid Cloud plans add an auto-ontology feature and an Ontology Editor, so teams can control which entity types exist and how they relate; see knowledge graph vs ontology. Its improve step enriches memory over time and takes feedback, a form of memory consolidation.
Winner: Zep for conversational memory that changes; Cognee for building structured knowledge from documents.
Retrieval and quality
Zep combines semantic, keyword and graph search over the knowledge graph and returns a context block for the prompt. Retrieval costs nothing per call, which makes it easy to query on every turn. Cognee’s recall returns context or a direct answer, and its graph lets an agent pull related facts that plain vector search would miss.
On benchmarks, Cognee’s README reports BEAM scores of 0.79 at 100K tokens and 0.67 at 10M tokens, and notes that the two are not directly comparable. Zep has published its own research on memory accuracy. Both sets of figures are vendors’ own, so test on conversations and documents from your product.
Winner: a tie; the better choice depends on whether your queries are about people or about content.
Developer experience and integrations
Zep is built for agents in production: SDKs, users and threads as first-class objects, webhooks and analytics on Flex Plus, and Context MCP Server seats on every plan so coding tools and agents can read memory over MCP. Its pricing page caps custom entity and edge types at 5 on Free, 10 on Flex and 20 above.
Cognee is a Python library first, with a CLI, a cognee-mcp server for Cursor, Cline and other MCP clients, Docker Compose for local runs, and recent connectors for Google Drive and Gmail (version 1.6.1, September 2026). It runs without an API key by falling back to a local extraction model and local embeddings, which is useful for testing and private data.
Winner: Zep for a managed production service; Cognee for local and open-source workflows.
Deployment and compliance
Zep runs on Zep Cloud. Enterprise customers can use their own model keys or run Zep in their own VPC (BYOC), and Enterprise lists SOC 2 Type II, a HIPAA BAA, SSO and SCIM, audit logs and an EU DPA.
Cognee’s open-source engine runs anywhere, free. Cognee Cloud is the hosted option, and its Business plan adds SSO, MFA, directory sync from Okta or Entra ID, EU data residency and a custom DPA. Enterprise is a fixed-scope BYOC engagement with Cognee engineers. The pricing page lists a Trust Center but does not name SOC 2 or HIPAA.
Winner: Cognee for self-hosting; Zep for buyers who need SOC 2 Type II and HIPAA from the vendor.
Pricing
Zep charges credits for data you send, not for retrieval. Each Episode costs 1 credit per 350 bytes, so a short chat message is usually one credit. The Free plan includes 10,000 credits a month. Flex costs $125 a month, billed monthly, for 50,000 credits, with overage at $25 per 10,000 credits; Flex Plus costs $375 a month for 200,000 credits, with overage at $75 per 40,000. An assistant that stores 150,000 short messages a month would fit Flex Plus, or cost $125 plus $250 in overage on Flex. Annual billing saves 17%. See Zep pricing.
Cognee charges for tokens processed. The Cloud Standard plan is $0 a month with 100 million tokens included, then $0.10 per million tokens. Premium adds ontology tools for $99 a month, and Business adds 20 workspaces and SSO for $499 a month, both plus token usage. Self-hosting the open-source engine is free, though you pay for your own LLM calls and infrastructure.
Winner: Cognee on cost, especially self-hosted; Zep’s unmetered retrieval helps chat-heavy agents.
Who should choose Zep
Choose Zep if you are building a chat assistant, support agent or copilot that talks to the same users over time, need facts to update as people’s circumstances change, and want a managed service with enterprise compliance. It fits customer support agents and personal assistants well.
Who should choose Cognee
Choose Cognee if you want open-source memory you can run and inspect (it features in most lists of the best open-source agent memory tools), need a knowledge graph built from documents and code as well as chat, or want ontology control over how knowledge is structured. It suits research agents, internal knowledge tools and teams with data that must stay on their own infrastructure.
A third option: Exabase
Exabase is infrastructure for AI agents. Its Memory API extracts facts, preferences and events from conversations and maintains them: it tracks relationships, resolves contradictions as facts change and consolidates knowledge over time, with hybrid retrieval, query expansion and reranking. Its M-1 engine scores 96.4% on LongMemEval, per Exabase research. Unlike Zep and Cognee, Exabase also stores and searches files through Resources and Deep Search, and each user or customer gets an isolated Base. It is a hosted API and not open source, so teams that must self-host should look at Cognee. See agent memory or the memory guide.
How we compared
We read the Zep pricing page, the Cognee GitHub README and the Cognee pricing page on 4 December 2026. Prices are monthly unless stated. Benchmark figures are the vendors’ own. The cost example is our calculation from list prices. We did not run our own memory benchmark.
Frequently asked questions
Is Zep better than Cognee?
Zep is better for managed conversational memory that tracks changing facts about users. Cognee is better for open-source, self-hosted memory built from documents, code and chat.
Is Cognee open source?
Yes. Cognee is open source under the Apache 2.0 licence and can be self-hosted for free.
Is Zep open source?
Zep Cloud is a commercial service. Its graph framework, Graphiti, is open source and can be run on its own.
How much does Zep cost?
Zep has a free plan with 10,000 credits a month, Flex at $125 a month for 50,000 credits, Flex Plus at $375 a month for 200,000 credits, and custom Enterprise pricing.
How much does Cognee cost?
The open-source engine is free. Cognee Cloud has a $0 Standard plan with 100 million tokens, then $0.10 per million tokens; Premium is $99 a month and Business $499 a month, plus tokens.
What is a temporal knowledge graph?
A knowledge graph that stores when each fact was true, so newer facts can supersede older ones. Zep is built on one.
Does Cognee support MCP?
Yes. Cognee ships a cognee-mcp server for MCP clients such as Cursor and Cline.
Is Zep SOC 2 compliant?
Zep lists SOC 2 Type II and a HIPAA BAA on its Enterprise plan.
Can I self-host Zep?
Zep offers Bring Your Own Cloud on Enterprise, which runs Zep in your VPC. Graphiti, its open-source graph layer, can be self-hosted separately.
How do I move from Zep to Cognee?
Export users’ threads and messages from Zep, replay them into Cognee with remember, and compare recall results on a sample of real questions before switching traffic.
Is Exabase an alternative to Zep and Cognee?
For agents that need memory plus file storage and search in one hosted API, yes. For self-hosted open-source memory, Cognee fits better.
Related pages: Zep alternatives, Cognee alternatives, Exabase vs Zep, Exabase vs Cognee, Mem0 vs Zep, Cognee vs Mem0, Letta vs Cognee, Supermemory vs Zep, Best agent memory platforms, Agent memory, LangMem vs Zep
Compare similar apps and tools:

LangGraph vs. OpenAI Agents SDK

CrewAI vs. AutoGen

n8n vs. Zapier

Relevance AI vs. Lindy

Temporal vs. Inngest

Inngest vs. Trigger.dev

E2B vs. Modal

E2B vs. Modal

E2B vs. Daytona

People Data Labs vs. Apollo

ScreenshotOne vs. Urlbox

Microlink vs. Iframely

AWS Rekognition vs. Google Cloud Vision

Twelve Labs vs. Mixpeek

Twelve Labs vs. Google Video Intelligence

ElevenLabs vs. Deepgram

Deepgram vs. Speechmatics

AssemblyAI vs. Gladia

Zyte vs. ScrapingBee

Bright Data vs. Oxylabs

Google Document AI vs. Azure Document Intelligence

Rossum vs. Nanonets

Mindee vs. Veryfi

Reducto vs. Extend

LlamaParse vs. Mistral OCR

LlamaParse vs. Docling

Bedrock Knowledge Bases vs. Vertex AI Search

Vectara vs. Ragie

LanceDB vs. Chroma

MongoDB Atlas vs. Pinecone

Weaviate vs. Milvus

Vespa vs. Elasticsearch

Algolia vs. Typesense

Typesense vs. Meilisearch

Elasticsearch vs. OpenSearch

LangMem vs. Zep

Vertex AI Memory Bank vs. AWS AgentCore Memory

AWS AgentCore Memory vs. Mem0

Letta vs. Cognee

Zep vs. Cognee

Bedrock Knowledge Bases vs. Azure AI Search

OpenAI file search vs. Pinecone

Docling vs. Unstructured

Azure Document Intelligence vs. Textract

Mistral OCR vs. Textract

Reducto vs. Unstructured

Apify vs. ScraperAPI

Firecrawl vs. ScraperAPI

turbopuffer vs. Pinecone

pgvector vs. Qdrant

Chroma vs. Weaviate

Qdrant vs. Milvus

Letta vs. LangMem

Cognee vs. Mem0

Supermemory vs. Zep

CrewAI vs. LangGraph

LangChain vs. LlamaIndex

Whisper vs. Deepgram

Deepgram vs. AssemblyAI

Textract vs. Google Document AI

Docling vs. Marker

LlamaParse vs. Reducto

LlamaParse vs. Unstructured

Firecrawl vs. Apify

Firecrawl vs. Jina

LangMem vs. Mem0

Mem0 vs. Supermemory

Zep vs. Letta

Mem0 vs. Letta

pgvector vs. Pinecone

Mem0 vs. Zep

Milvus vs. Pinecone

Chroma vs. Qdrant

Weaviate vs. Qdrant

Pinecone vs. Qdrant

Pinecone vs. Chroma

Pinecone vs. Weaviate