Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphthink-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file graphthink-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: graphthink-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for graphthink-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3f85a727d83852b62bc83247b182509aff2b6c12f9086b20da48692765d0ca7
MD5 d0f0c0593b7a0c76e6d70615b95e7dfc
BLAKE2b-256 1400f783f1082f5aaf51bd706de52118733a9e39b87c6a405264ce01bfcfc52f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page