Memori: SQL Native Memory Layer for LLMs and AI Agents

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Memori: SQL Native Memory Layer for LLMs and AI Agents

Summary

Memori is an SQL Native Memory Layer designed for LLMs, AI Agents, and Multi-Agent Systems. It provides a robust and flexible solution for managing long-short term memory, integrating seamlessly with existing software and infrastructure. This project aims to enhance AI systems with persistent, structured memory capabilities, making them more intelligent and context-aware.

Repository Information

Analyzed by OSRepos on December 28, 2025

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Memori, developed by MemoriLabs, is an SQL Native Memory Layer for LLMs, AI Agents, and Multi-Agent Systems. It serves as the memory fabric for enterprise AI, designed to plug into the software and infrastructure you already use. Memori is LLM, datastore, and framework agnostic, ensuring seamless integration into your existing architecture. It enhances AI interactions by providing structured, persistent memory, including vectorized memories, in-memory semantic search, and a third normal form schema for a knowledge graph.

Installation

Getting started with Memori is straightforward. You can install it using pip:

pip install memori

For an optimized environment, it's suggested to run the setup command once:

python -m memori setup

This prepares your environment for faster execution, though Memori will perform this step automatically on its first run if not done manually.

Examples

Here's a quickstart example demonstrating how to use Memori with OpenAI to manage conversational memory:

import os
import sqlite3

from memori import Memori
from openai import OpenAI


def get_sqlite_connection():
    return sqlite3.connect("memori.db")


client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))

memori = Memori(conn=get_sqlite_connection).llm.register(client)
memori.attribution(entity_id="123456", process_id="test-ai-agent")
memori.config.storage.build()

response = client.chat.completions.create(
    model="gpt-4.1-mini",
    messages=[
        {"role": "user", "content": "My favorite color is blue."}
    ]
)
print(response.choices[0].message.content + "\n")

# Advanced Augmentation runs asynchronously to efficiently
# create memories. For this example, a short lived command
# line program, we need to wait for it to finish.

memori.augmentation.wait()

# Memori stored that your favorite color is blue in SQLite.
# Now reset everything so there's no prior context.

client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))

memori = Memori(conn=get_sqlite_connection).llm.register(client)
memori.attribution(entity_id="123456", process_id="test-ai-agent")

response = client.chat.completions.create(
    model="gpt-4.1-mini",
    messages=[
        {"role": "user", "content": "What's my favorite color?"}
    ]
)
print(response.choices[0].message.content + "\n")

You can also explore the stored memories directly using SQLite:

/bin/echo "select * from memori_conversation_message" | /usr/bin/sqlite3 memori.db
/bin/echo "select * from memori_entity_fact" | /usr/bin/sqlite3 memori.db
/bin/echo "select * from memori_process_attribute" | /usr/bin/sqlite3 memori.db
/bin/echo "select * from memori_knowledge_graph" | /usr/bin/sqlite3 memori.db

Why Use Memori?

Memori offers a powerful and flexible solution for integrating memory into your AI applications. Key advantages include:

  • LLM and Datastore Agnostic: Supports all major foundational models (Anthropic, Bedrock, Gemini, Grok, OpenAI) and a wide range of databases (DB API 2.0, Django, SQLAlchemy, CockroachDB, MariaDB, MongoDB, MySQL, Neon, Oracle, PostgreSQL, SQLite, Supabase).
  • Advanced Augmentation: Significant performance improvements with threaded, zero-latency memory extraction and enhancement, enriching memories with attributes, events, facts, people, preferences, relationships, rules, and skills.
  • Structured Memory: Utilizes vectorized memories and in-memory semantic search for more accurate context, alongside a third normal form schema for a robust knowledge graph.
  • Reduced Development Overhead: Simplifies integration with a single line of code for core memory functionalities.
  • Attribution and Session Management: Provides mechanisms to attribute LLM interactions to specific entities and processes, and manage sessions for coherent conversational flows.
  • Developer-Friendly: Advanced Augmentation is always free for developers, with a CLI for easy management and quota checking.

Links

Related repositories

Similar repositories that may be relevant next.

awesome-cli-coding-agents: A Curated Directory of Terminal-Native AI Tools

awesome-cli-coding-agents: A Curated Directory of Terminal-Native AI Tools

August 9, 2026

The `awesome-cli-coding-agents` repository offers a comprehensive, curated directory of over 100 terminal-native AI coding agents. These powerful tools operate directly within your command line, enabling autonomous code reading, editing, and execution. The list also covers various harnesses and orchestration solutions for managing these agents.

AICLICoding Agents
CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

August 9, 2026

CubeSandbox, developed by TencentCloud, is a high-performance, secure sandbox service built on RustVMM and KVM, designed specifically for AI agents. It offers ultra-fast startup times, hardware-level isolation, and high-density deployment, making it ideal for scalable and secure agent execution environments. The service is also fully compatible with the E2B SDK for seamless integration.

agentscontainersandbox
QwenPaw: Your Personal AI Assistant for Local and Cloud Deployment

QwenPaw: Your Personal AI Assistant for Local and Cloud Deployment

August 7, 2026

QwenPaw is a powerful personal AI assistant designed for easy installation and deployment, either on your local machine or in the cloud. It supports multiple chat applications and offers highly extensible capabilities, making it a versatile tool for various AI-driven tasks. With its robust memory system and security features, QwenPaw aims to be an intuitive and private partner in your digital life.

agentai-agentchatbot
DeepTutor: Lifelong Personalized Tutoring with AI Agents

DeepTutor: Lifelong Personalized Tutoring with AI Agents

August 7, 2026

DeepTutor is an advanced AI-powered platform designed for lifelong personalized tutoring, integrating various learning modes into a single, extensible system. It leverages large language models and multi-agent systems to offer features like interactive chat, quiz generation, and skill development. This project provides a comprehensive environment for learners and educators seeking intelligent, adaptive educational tools.

AITutoringLLM

Source repository

Open the original repository on GitHub.

16 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️