Skip to main content

Local-first LLM-driven memory system

Project description

Memoria

Memoria turns raw work context into structured local memory

Local memory for long-running agents.

把零散上下文沉淀成可检索、可审计、可持续更新的工作记忆。

PyPI Python versions CI Release GitHub stars Downloads

Memoria 是一个本地优先、由 LLM 驱动的工作记忆归档器。它把原始笔记、任务上下文、项目决策和 Agent 工作记录整理成 Memory Issue、Memory Chain、Proposal 和可审计的 Patch。

当前版本以 CLI 为主,数据默认保存在本机 SQLite 和 JSONL transcript 中;sleep 整理流程可以离线 mock,也可以调用 OpenAI Responses API。

安装

推荐使用 uv tool installuv 会自动创建隔离环境,不绑定当前项目目录或 shell 里的虚拟环境:

uv tool install memoria-cli
memoria --help

也可以使用 pip;这种方式要求当前 Python 环境已经是 3.11 及以上:

python -m pip install memoria-cli
memoria --help

或者从 GitHub Releases 下载单文件二进制,不需要预装 Python。

快速开始

memoria ingest text "今天决定:Memoria MVP 先做本地 CLI,不做 Web UI。" \
  --title "Memoria MVP direction" \
  --tag memoria \
  --hint "整理成项目决策"

memoria sleep --mock
memoria issue list --json

使用真实 LLM 整理:

export OPENAI_API_KEY="..."
memoria sleep --limit 20 --strictness balanced

文档

完整文档入口见 docs/README.md

中文 English
安装 Installation
快速开始 Quick Start
配置 Configuration
CLI 使用说明 CLI Guide
设计边界 Design Notes
开发者说明 Development

特性

  • Local-first storage with SQLite, JSONL transcripts, zip backups, and local Git backups.
  • Raw text, file, and stdin ingestion.
  • LLM sleep consolidation with deterministic mock mode and OpenAI mode.
  • Tool-assisted memory lookup during LLM consolidation.
  • Transactional MemoryPatch application with patch audit records.
  • Query commands for Memory Issue, Chain, Proposal, Patch, and Sleep jobs.
  • Optional single-file binaries for Linux, macOS, and Windows.

状态

Memoria is early alpha software. The current scope is intentionally narrow: local CLI first, no Web UI, no API server, no MCP server, no cloud sync, and no destructive memory deletion.

Memoria 仍处于 early alpha 阶段。当前范围刻意保持克制:本地 CLI 优先,没有 Web UI、API server、MCP server、云同步,也没有破坏性删除记忆。

开发

python -m pip install -e ".[dev]"
pytest -q
uv build

See Development or 开发者说明 for the full workflow.

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

memoria_cli-0.1.5.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

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

memoria_cli-0.1.5-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file memoria_cli-0.1.5.tar.gz.

File metadata

  • Download URL: memoria_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memoria_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 47acf624c51f9a0ce9cc58b2b4f9b3e98f582b6b138df48c0289a00a8d57b394
MD5 bef4a00004f7eef9966bfdd0926a39d2
BLAKE2b-256 54c3d7d680fdb7dea0a779b68601f716e050e28ac3d99e81ecede917d6fb60c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoria_cli-0.1.5.tar.gz:

Publisher: release.yml on SunJun8/memoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memoria_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: memoria_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memoria_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae5b4d8417228e04b2637a4f877cf5dd9db97ec6aa6bdc3746eb249f5a725de
MD5 0554f1bc568538428047de0577705f72
BLAKE2b-256 c8ab5514cf79e106b8f8363933282398d223a7a1128ad7151c29a6313e417518

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoria_cli-0.1.5-py3-none-any.whl:

Publisher: release.yml on SunJun8/memoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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