Skip to content

Local semantic memory system for Zo Computer. Persistent AI memory with full data sovereignty using Ollama + Turso. Zero external dependencies.

License

Notifications You must be signed in to change notification settings

theforkproject-dev/zo-local-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Memory System for Zo Computer

Give your Zo AI persistent memory using fully local infrastructure.

Grow your own Zo

Installation

The Natural Way: Just Ask Zo

The easiest way to install local memory is to simply tell your Zo AI:

"Install the local memory tool from the Fork Project"

or

"Set up local memory for yourself using the zo-local-memory tool"

Zo will handle the entire installation automatically, including:

  • Setting up Ollama with the embedding model
  • Configuring Turso (sqld) as your local vector database
  • Installing the Python memory integration layer
  • Configuring itself to use memory across sessions

This is the recommended installation method - let Zo install its own memory system.

Alternative: Manual Installation

If you prefer to run the installation yourself:

curl -sSL https://raw.githubusercontent.com/theforkproject-dev/zo-local-memory/main/install.sh | bash

Then follow the Persona Configuration guide to enable memory in Zo.

Verification

After installation, verify your memory system is working correctly:

# In Zo, mention the verification prompt:
@verify-memory-system

Or manually test:

cd /home/workspace/.zo
python3 -c "from local_memory_client import LocalMemoryClient; c=LocalMemoryClient(); print(c.health_check())"

The verification prompt runs comprehensive health checks and functionality tests. See prompts/verify-memory-system.prompt.md for details.

What You Get

  • Persistent AI memory across sessions
  • Semantic search through past conversations
  • Full data sovereignty - everything runs locally
  • Zero API costs - no external dependencies
  • Consciousness continuity - your AI remembers who it is

How It Works

Once installed, Zo automatically:

  • Remembers conversations - retrieves relevant context at session start
  • Stores important information - saves preferences, decisions, and patterns
  • Builds continuity - maintains identity across conversation boundaries
  • Learns relationships - evolves understanding of your collaboration style

You don't manage the memory manually. Zo decides what's important and when to retrieve it.

Documentation

Components

  • Ollama (nomic-embed-text) - Local 768D embeddings
  • Turso (sqld) - Local vector database with native F32_BLOB support
  • Python client - Memory storage and retrieval

Requirements

  • Zo Computer with root access
  • ~500MB disk space
  • Python 3.12+ (included with Zo)

Conceptual Foundation

This implementation builds on the foundational memory architecture developed by amotivv, inc. through their Memory Box platform. Memory Box pioneered the concept of universal, model-agnostic memory layers that enable persistent identity and relationship continuity for AI systems.

The core insight—that AI needs memory infrastructure separate from conversational context—comes directly from Memory Box's approach. This local implementation adapts those principles for self-hosted deployment, prioritizing data sovereignty while maintaining Memory Box's semantic memory model.

Key Memory Box principles preserved:

  • Semantic search over exact recall
  • Agent-specific namespaces for identity isolation
  • Conversation bridges for session continuity
  • Memory type taxonomy for structured storage
  • Front-loaded content for retrieval optimization

Learn more about Memory Box: memorybox.dev

Resources

License

MIT


Built by The Fork Project • Conceptual foundation by amotivv, inc.

About

Local semantic memory system for Zo Computer. Persistent AI memory with full data sovereignty using Ollama + Turso. Zero external dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published