Skip to main content

GraphThink

Sovereign graph memory for AI agents. Self-hosted. Zero API costs.

Your agent loses context between sessions. Existing memory APIs charge per token and lock you into their cloud. GraphThink gives you persistent, semantic memory on your own infrastructure.

Quick Start

pip install graphthink
from graphthink import GraphThink

gt = GraphThink()

# Store memories
gt.store("user", "I prefer FastAPI over Django")
gt.store("user", "My project is a customer support bot")

# Search semantically — works across sessions
results = gt.search("what framework do I use")
# → [{"content": "I prefer FastAPI over Django", "score": 0.89}]

# See what's in your graph
print(gt.stats())
# → {"conversation": 2, "message": 3, "entity": 4, ...}

Why GraphThink?

Feature Mem0 Zep GraphThink
Graph relationships ❌ ❌ ✅
Self-hosted ❌ ❌ ✅
Zero per-query costs ❌ ❌ ✅
Free web search ❌ ❌ ✅
API key required ✅ ✅ ❌ (open)

Architecture

Your App ──→ GraphThink Client ──→ GraphThink API ──→ Memgraph
(pip install)   (localhost:18788)     (your Docker)

All data stays on your machine. No third-party servers.

Use Cases

  • Customer support bots — remember user history across tickets
  • Personal AI assistants — persist preferences indefinitely
  • Multi-agent systems — share context between agents
  • Cost-sensitive teams — eliminate per-token memory costs

Self-Hosted Setup

# Start Memgraph (you need this once)
docker run -d --name memgraph -p 7687:7687 memgraph/memgraph-platform

# Start GraphThink API
graphthink serve

# That's it. Your memories, your infrastructure.

License

MIT — free for personal and commercial use.

Metadata

Release files for graphthink 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for graphthink 0.2.0
File Interpreter ABI Platform Actions
graphthink-0.2.0-py3-none-any.whl Python 3 none any Details for graphthink-0.2.0-py3-none-any.whl

Release files / graphthink-0.2.0-py3-none-any.whl

Download URL graphthink-0.2.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f3cf18cd87bbf1fd2008567f91bed433dc650895afaa80de945ed5807d7ad90
BLAKE2b-256 checksum
How to use checksums
e82dc273b053ca8e2f752a2397e5c8e3f01160e4800efe9c97ae72ea9155ddaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for graphthink 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page