NEW v0.3.4 is here. Python + native npm packages.Explore the release

SELF-HOSTED / OPEN SOURCEv0.3.5

Luminary

A memory layer for AI agents.

Storage
SQLite / pgvector
Retrieval
Semantic / keyword / temporal / graph
Scope
User / workspace / agent / session
pip install luminary-memory

Python 3.11+ · No hosted memory service.

A textured moon rising above a garden of ferns, rendered in blue dither.A textured moon rising above a garden of ferns, rendered in blue dither.
MEMORY, IN A DIFFERENT LIGHTKeep the thread. Let it grow.
first_memory.py
from luminary_memory import MemoryClient

client = MemoryClient(
    db_path="memory.db", scope={"user_id": "u1"}
)
client.ingest(
    "The deploy target is staging",
    user_id="u1", source="quickstart",
    evidence_quote="The deploy target is staging",
)
result = client.recall("where do we deploy?")
print(result.status, result.provenance)
Your SQLite. Your context.Explore the API
BUILT FOR CONTINUITYMemory is infrastructure. Keep it in your hands.

Fits the way
you already build.

Python + CLI Hermes pi omp

01 / Memory, without the mystery

More than a saved conversation.

Give durable rules, useful facts, and ownership boundaries their own place. Then see exactly what makes it back into context.

Rooted in what matters.
01

A baseline, not a lucky match.

Confirmed core memory keeps durable identity, preferences, and rules separate from query recall. Supported adapters load it as bounded baseline context.

Understand core memory
Context, brought into focus.
02

Recall that shows its work.

Semantic, keyword, temporal, and graph signals meet in one retrieval path. Results carry status and provenance. Not enough support? Abstention is a valid answer.

Follow the evidence
A memory of your own.
03

Similar doesn't mean yours.

User, workspace, agent, and session boundaries apply before retrieval candidates. A local SQLite default keeps storage inspectable; pgvector is there when you need it.

See the boundaries

02 / From observation to context

A small loop.
A lasting thread.

Memory should help the next turn, not obscure it. Follow a fact from a deliberate write to a scoped, evidence-aware result.

  1. 01

    Capture what matters

    Ingest a fact with source, tags, ownership, and optional evidence. Keep the durable signal, not every passing sentence.

    client.ingest(...)
  2. 02

    Keep it in your store

    SQLite is the default. Inspect stored rows, track provenance, and make conflicts explicit instead of silently replacing facts.

    SQLite / pgvector
  3. 03

    Recall within bounds

    Scope first. Fuse retrieval signals, check evidence, remove duplicates, and fit useful context inside a token budget.

    client.recall(...)
  4. 04

    Keep memory useful

    Export a backup. Run lifecycle cleanup, consolidation, and pruning. Inspect health as your memory store grows.

    luminary-memory lifecycle

The core retrieval pipeline runs locally, without an LLM. Optional LLM calls belong to write-time curation and maintenance.

Read the architecture

03 / Your first memory

Start local.
Make it yours.

No memory account. No storage server to provision. Install the package, write a fact, then inspect the recall result.

The complete quickstart
RUNTIME

Python 3.11+ · SQLite by default

The embedding model may download on first semantic recall. Native npm packages also require the Python engine.

terminal / first runv0.3.5
  1. 01 / INSTALL
    $ python -m pip install luminary-memory
  2. 02 / WRITE A FACT
    $ luminary-memory add \
        "The deploy target is staging" \
        --tags deploy --source quickstart
  3. 03 / ASK, THEN INSPECT
    $ luminary-memory recall \
        "where do we deploy?" --limit 5 --json
Working with multiple users? Bind an explicit scope before writing. Configure ownership →

04 / Meet your agent where it works

One memory engine.
Your kind of workflow.

Use the Python API directly, or connect a supported agent. Native packages are maintained by Luminary; your host still owns its interface.

PROVIDER

Hermes

A public memory-provider integration with designated core, durable recall, and exact-session continuity. One persistent authority, no source patches.

Connect Hermes
NATIVE PLUGIN

OpenCode V2

Native tools, core baseline, automatic recall, and curated retention through the supported plugin lifecycle.

Set up OpenCode
NATIVE EXTENSION

pi

Keep memory in your coding workflow with the model tool, request-local context, and a native /luminary inspector.

Set up pi
NATIVE EXTENSION

omp

Scoped core and recall references, explicit memory tools, and native inspection inside your existing agent environment.

Set up omp
Python + all three npm packages available at 0.3.4.Compatibility & setup notes

THE DETAILS ARE OPEN, TOO

Built to be understood.

No black box required. Read the contracts behind your context.

KEEP THE THREAD

The next conversation
doesn't have to start over.

Build with memory you can inspect, move, and own.