Privacy and advertising choices

Git-Stars uses essential storage for site operation. Optional analytics and ad-measurement scripts stay disabled unless you accept them; partners such as Google may then use cookies or similar identifiers where required. Privacy Policy

LogoGit-Stars
Top StarsTrendingAI AgentsDaily PicksViral ReposInsights
LogoGit-Stars

Discover top GitHub projects with real rankings and AI insights

GitHub
Built withLogo of Git-StarsGit-Stars
Rankings
  • Top Stars
  • Trending
  • AI Agents
  • Daily Picks
  • Explore
Resources
  • Insights
  • Editorial Policy
About
  • About
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
© 2026 Git-Stars. All Rights Reserved.
Back to Viral Repos
AI AgentsTemporal Knowledge GraphAI MemoryRAGGraphitiLong-term Memory

Graphiti: An Open-Source Approach to Time-Aware Memory for AI Agents

Graphiti is an Apache-2.0 licensed Python framework that builds temporal knowledge graphs, giving AI agents long-term memory, provenance tracking, and hybrid retrieval. It is best suited for dynamic RAG and personalization systems where facts evolve over time.

Published: 8/15/2026getzep/graphiti
View on GitHubProject homepageBrowse all analyses

What you should know first

Continue below for the long-form breakdown, alternatives, and deployment notes.

Deployment6/10
Commercial use9/10
Capability ceiling8/10

Repository facts

Repository snapshot

Stars

29,944

Forks

3,030

Open issues

481

License

Apache License 2.0

Open source

Yes

How to read this

Start with the three judgment cards, then move to problem solved and commercial terms before deciding whether to deploy it.

30-second read

Start with the verdict before you invest more time.

The scores are practical friction signals, not vanity metrics.

Deployment friction

Deployment requires an external graph database (e.g., Neo4j) and an LLM API key, with no bundled web UI. Although a REST service and MCP server are included, teams must set up these external dependencies, creating a moderate barrier to quick adoption.

Commercial fit

Licensed under Apache 2.0, explicitly permitting commercial use, modification, and distribution. Telemetry is opt-out, and graph databases and LLM services are commonly used in commercial settings, but teams should still review each service's terms and data-handling requirements.

Capability ceiling

Supports temporal fact management, hybrid retrieval, and multiple graph backends, making it suitable for long-term memory and complex RAG. However, the README notes that production-scale management (millions of graphs) with governed low-latency retrieval relies on Zep's managed platform, while self-hosted deployments require custom implementation, indicating a scalability ceiling.

What real problem it solves

Conventional RAG retrieves static text chunks, so questions like “What did he say last year?” or “What is his current preference?” are handled poorly when facts change and conflicts accumulate. Graphiti organizes information into entities, relationships, and temporal validity windows. When new knowledge supersedes old facts, the old ones are automatically invalidated while retaining provenance. This lets an agent produce traceable answers grounded in historical context instead of stitching together fragments from unrelated documents.

Why people are using it

Most current RAG pipelines split text into chunks and rely on vector search, which cannot represent when a fact is valid or how entities relate. Graphiti adds a temporal context graph, helping agents remember the past, distinguish superseded facts, and answer time-sensitive questions with more reliability. For teams building long-term memory into agents, Graphiti is an infrastructure option worth evaluating.

Open-source and commercial terms

Graphiti is released under Apache 2.0, explicitly allowing commercial use, modification, and distribution. The repository is clearly positioned as a self-hosted open-source framework, distinct from Zep’s managed platform. According to the README, Graphiti requires you to bring your own third-party graph database. By default, it expects an OpenAI API key, but OpenAI-compatible local endpoints such as Ollama or vLLM are also supported. Telemetry is enabled by default but can be disabled via GRAPHITI_TELEMETRY_ENABLED=false. The README also marks the Kuzu backend as deprecated, recommending that new projects avoid it.

How non-coders can use it

This project is not designed for no-code users. If you cannot write Python or do not have experience with APIs, direct adoption is difficult. However, once an engineer deploys the included REST service or MCP server, business teams can use it as a knowledge-backend through chat interfaces or existing AI applications. For non-developers, the core value is traceable, time-aware memory, but they should expect to wait for technical packaging.

How to deploy it with Codex or Claude

Before deployment, verify that you have Python 3.10+, a graph database (Neo4j, FalkorDB, or Amazon Neptune), and LLM access. The basic flow is: 1. Install graphiti-core; 2. Create a Neo4j instance locally or in the cloud; 3. Set OPENAI_API_KEY or point to a local OpenAI-compatible endpoint; 4. Define your ontology with Pydantic models; 5. Write a script to ingest documents or messages and then query using hybrid retrieval. The repository includes both a FastAPI REST service and an MCP server, making it easier for agents to call memory operations directly. Start with a single small graph to validate behavior, and disable telemetry if you need to keep internal data on-premises.

What its real ceiling looks like

Graphiti is well suited for building individual or limited numbers of context graphs, with features like temporal validity, provenance tracking, incremental updates, and hybrid retrieval. But the README notes that managing millions of graphs with governed low-latency retrieval is provided by Zep’s managed platform. When self-hosting, you take on custom implementation for sharding, monitoring, caching, and retrieval optimization. There is also no self-hosted web UI, so debugging requires custom queries or external visualization tools.

Full article

Why Time-Aware Memory Matters

Most RAG systems operate on static chunks. They retrieve similar passages, but they cannot represent the difference between a fact being true in the past and true now. If a customer changes their shipping address, a conventional index still returns the old address as if it were current. Graphiti is not trying to be a better vector retriever; it is trying to model what was true at a given point in time using a temporal knowledge graph.

Where Graphiti Fits in Real Projects

Graphiti is most useful for:

  • Long-term memory for AI agents: remembering user preferences, project states, and domain facts across sessions.
  • Time-sensitive Q&A: answering questions like “What were the contract terms last month?”
  • Dynamic RAG: knowledge bases that change frequently and where historical accuracy matters.
  • Provenance auditing: tracing answers back to original source documents or messages.

Its main differentiator is automatic management of fact validity windows. When a new fact conflicts with an old one, the old fact is invalidated but not deleted, preserving a complete historical record. This is valuable in finance, healthcare, and customer support, where explainability is important.

Real Deployment Cost: More Than Just pip install

The install command is simple, but Graphiti is not a single-machine library. You need:

  • Python 3.10 or later
  • A graph database backend: Neo4j 5.26+, FalkorDB 1.1.2+, or Amazon Neptune
  • LLM access: OpenAI by default, or a local OpenAI-compatible server like Ollama or vLLM

This means your stack gains at least one stateful service. Neo4j in the cloud incurs ongoing costs; self-hosting means you are responsible for backups and monitoring. The README does not promise GPU support or model downloads, but LLM API costs will scale with data volume.

The repository includes a REST service and an MCP server, but the README does not mention a self-hosted web UI. If you need to inspect the knowledge graph, you will likely write Cypher queries or connect an external graph browser.

Adoption Checklist

  • Does your document or event flow contain frequent fact updates rather than simple appends?
  • Does your application need to know when a fact was valid?
  • Is your team willing to operate a graph database?
  • Can you accept default external LLM API usage, or do you have resources to configure a local model?
  • Do you need to retain historical data and control telemetry?
  • Is your data scale within the range of a single graph instance?

If most answers are yes, Graphiti is worth a pilot. If you only need a straightforward vector RAG, this is likely overengineering.

Who Should Avoid Graphiti?

  • Teams that only need vector similarity over static documents and do not care about relationships or timestamps.
  • Teams without graph database operations expertise and no budget for a managed database service.
  • Non-technical teams requiring an out-of-the-box web UI.
  • Teams with strict offline-only requirements and no local LLM inference resources.
  • Teams anticipating millions of graph instances without distributed systems experience.

Evidence Boundaries

This article is based on the repository README and source metadata. The README explicitly compares Graphiti to Zep’s managed platform, noting that Graphiti is self-hosted and requires you to bring your own graph database. The README also marks the Kuzu backend as deprecated and not suitable for new projects. These statements come from the project’s own documentation. The repository does not provide benchmark numbers or user counts, so any claims about community popularity or performance should be treated with caution.

Next Steps

1. Clone the repository and start a Neo4j instance using Docker. 2. Configure an OpenAI-compatible local endpoint (e.g., Ollama) to avoid API charges during testing. 3. Ingest a small set of text that contains changing facts, then inspect the resulting entities and temporal edges using a graph browser. 4. Ask a question requiring a “past vs. present” distinction and observe whether the response separates time frames correctly. 5. If the pilot works, evaluate how the REST service or MCP server fits into your agent architecture.

Graphiti brings temporal awareness to knowledge graphs, but it is not a low-maintenance shortcut. It is closer to a professional memory engine that requires maintenance, not a plug-and-play widget. For teams willing to invest in infrastructure, it is an open-source asset worth watching.

Open the repository

Build Real-Time Knowledge Graphs for AI Agents

View on GitHub

Visual explainers

No visual explainers yet.

Alternative projects

If you are close to adoption, compare these alternatives on deployment and commercial fit first.

mem0ai/mem0

A universal memory layer for AI agents, offering lightweight APIs and multi-language SDKs for cross-session user/session/agent memory management.

Deployment7/10
Commercial use9/10
Capability ceiling7/10

Strengths

Simpler deployment (library or Docker) with built-in Web UI and CLI; multi-level memory model with SDKs in multiple languages; lower overhead and easier start than Graphiti.

Weaknesses

No strict temporal validity windows or full provenance tracking like Graphiti; weaker knowledge-graph capabilities, better suited for preference/session memory than complex relational reasoning.

Verdict

Best for teams needing quick integration, ease of use, and multi-language support; for time-sensitive fact management and provenance auditing, Graphiti is the better choice.

mem0ai/mem0

microsoft/graphrag

Microsoft Research's knowledge-graph-based RAG pipeline designed for batch indexing and global/local querying of static corpora.

Deployment5/10
Commercial use9/10
Capability ceiling6/10

Strengths

Strong community detection and global theme comprehension; MIT license permits free commercial use; more mature than Graphiti for global summarization of static corpora.

Weaknesses

Project is in maintenance mode with no new features; expensive batch indexing, no incremental updates or temporal awareness; less capable than Graphiti for dynamic data and long-term memory scenarios.

Verdict

Suitable for academic research or one-time knowledge-graph analysis; not recommended as an evolving AI agent memory layer—Graphiti is a better fit for incremental and temporal dimensions.

microsoft/graphrag

HKUDS/LightRAG

A lightweight knowledge-graph RAG framework with WebUI and REST API, supporting incremental updates, multimodal document parsing, and multiple storage backends.

Deployment8/10
Commercial use9/10
Capability ceiling7/10

Strengths

Extremely simple deployment with WebUI and Docker; mature incremental updates and selective deletion; more document-parsing and out-of-box friendly than Graphiti.

Weaknesses

Lacks Graphiti's temporal validity windows and provenance tracking; focused on RAG rather than agent long-term memory, so complex temporal queries require extra work.

Verdict

For document-oriented RAG with rapid deployment and multimodal needs, LightRAG is a lighter choice; but for time-sensitive agent memory, Graphiti is the better fit.

HKUDS/LightRAG

topoteretes/cognee

An open-source AI memory platform combining data ingestion with knowledge graph and vector retrieval, giving agents persistent cross-session memory, with local UI and multiple deployment options.

Deployment7/10
Commercial use8/10
Capability ceiling7/10

Strengths

Offers CLI UI and multi-platform deployment (Modal, Railway, etc.); unifies graph and vector storage on Postgres (demo feature); richer session memory and deployment options than Graphiti.

Weaknesses

Postgres graph store is marked as a demo feature, with production-level requiring a commercial license; temporal awareness and provenance auditing are weaker than Graphiti.

Verdict

Good for teams wanting an all-in-one platform for fast agent memory with multiple deployment options; if temporal fact management and Apache-2.0 self-hosted production are core, Graphiti is safer.

topoteretes/cognee