Skip to main content

Shared memory for Claude, Ollama, and GPT. Local. Private. One pip install.

Project description

MemoryMesh

Claude figured it out. Ollama forgot it. MemoryMesh fixes that.

One shared memory for all your AI tools. Local. Private. Zero cloud. Works in 60 seconds.

Install

pip install memorymesh

The problem

You spend 5 minutes explaining your stack, your preferences, your project context to Claude. It gets it. Then you switch to Ollama for a quick local task — and it knows nothing. You switch to GPT for a second opinion — nothing. Every tool starts from zero. Every single time.

The fix — three lines

import memorymesh as mm

mm.remember("user builds in FastAPI + PostgreSQL, hates ORMs")
mm.recall("tech stack")

Claude + Ollama — one shared brain

from memorymesh.connectors.claude import ClaudeWithMemory
from memorymesh.connectors.ollama import OllamaWithMemory

# Claude saves context
claude = ClaudeWithMemory()
claude.remember("Backend is FastAPI, DB is PostgreSQL, no ORMs")
response = claude.chat("How should I structure the billing module?")

# Ollama reads the SAME memory — zero setup
# Requires: ollama serve && ollama pull llama3.2
ollama = OllamaWithMemory(model="llama3.2")
response = ollama.chat("Help me with the billing queries")
# Ollama already knows: FastAPI, PostgreSQL, no ORMs

OpenAI

from memorymesh.connectors.openai import OpenAIWithMemory

gpt = OpenAIWithMemory()
response = gpt.chat("Review my database schema")
# Same shared memory as Claude and Ollama

Claude Code — MCP server

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "memorymesh": {
      "command": "memorymesh",
      "args": ["serve"]
    }
  }
}

Claude gets 5 tools:

  • remember_memory — store a memory
  • recall_memory — search memories
  • get_context — get formatted context string
  • forget_memory — delete a memory
  • memory_stats — show statistics
pip install memorymesh
memorymesh serve

CLI

memorymesh remember "user prefers dark mode"
memorymesh recall "preferences"
memorymesh list
memorymesh stats
memorymesh serve

Why local?

  • Data stays at ~/.memorymesh/memory.db — plain SQLite
  • No API keys for core functionality
  • Works offline
  • Open the DB with any SQLite viewer — it is yours forever

Limitations

  • FTS5 is keyword search, not semantic — recall("FastAPI") works, recall("what framework?") does not
  • No sync across machines (by design — your data stays on your machine)
  • Ollama connector requires ollama serve running locally

Roadmap

  • Core: remember / recall / as_context
  • Connectors: Claude / Ollama / OpenAI
  • MCP server (Claude Code integration)
  • CLI
  • Semantic search with local embeddings
  • Auto-learn from conversation history
  • LangChain / LlamaIndex connectors

MIT - github.com/originaonxi/memorymesh

Project details


Download files

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

Source Distribution

memorymesh_ai-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

memorymesh_ai-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file memorymesh_ai-0.1.0.tar.gz.

File metadata

  • Download URL: memorymesh_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for memorymesh_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5b0173cbb087c5e810b9c20e790fbe42796c732321ec36913a84f52fadb0f1b
MD5 52ca4e393b28400372b910a1bad762df
BLAKE2b-256 bfef8c5ca3e83af0bca992bf3cc28aa98ae212205e72b97c81a8c8979388e587

See more details on using hashes here.

File details

Details for the file memorymesh_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: memorymesh_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for memorymesh_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e92237fb390db3788abedd96d45dfe15edb68811c864ab8b9d3f513a136fe25
MD5 8d524b57e86ecce24ac4fc57918e72e6
BLAKE2b-256 e1b42e15041a9010cfe66bb975d732be16ced183b862a343c2b638b5713b02e4

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