// agents · CaviraOSS/LongMemory

LongMemory

LongMemoryは、CaviraOSSが公開しているオープンソースのAIエージェントプロジェクトです(GitHub: CaviraOSS/LongMemory)。GitHubスターは4,523、フォークは506で、Apache-2.0ライセンスの下で公開されています。GitHubでの最終更新は2026年9月20日です。

LongMemory: local-first memory for AI agents with temporal truth, provenance, and hybrid recall

★ 4.5k スター⑂ 506 フォークApache-2.0更新 2026年9月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
CaviraOSS/LongMemory
GitHubスター
4,523
フォーク
506
ライセンス
Apache-2.0
GitHubでの最終更新
2026年9月20日
掲載タイプ
完全なインストールガイド
// 仕組み

仕組み

  1. Choose your surface

    Use the npm library in-process, the global CLI, the Docker/HTTP server, or the MCP server for agent clients.

  2. Install

    Install the package from npm (or the Python SDK from PyPI).

  3. Initialize memory

    Create a memory instance or run the CLI init to create a local database.

  4. Ingest and recall

    Ingest a first fact or conversation, then recall it with the mode that fits your question.

// 機能

選ばれる理由

Temporal truth

Records keep both recorded time and valid time, so facts can change without rewriting history.

Immutable content with provenance

Source, author, confidence, and timestamps travel with memory items; nothing is silently lost.

Four recall modes

Strict, historical, associative, and world-grounded recall over BM25, vector, and graph signals.

Governance and isolation

Tenant, user, project, session, and role scopes, with encryption at rest and a tamper-evident audit trail (per the README).

Many ways to run

In-process library, CLI, HTTP server on port 7331, Docker image, MCP server, dashboard, and VS Code extension.

Flexible embeddings

OpenAI-compatible endpoints, Google Gemini, Amazon Bedrock, Ollama, or a built-in local embedder.

Advertisement
// 自分で実行

自分で実行してみる

  1. Clone the repository

    Clone the project and enter its directory for the source/server path.

    git clone https://github.com/CaviraOSS/LongMemory.git
    cd LongMemory
  2. Install as a library or CLI

    Add it to a Node project, or install the CLI globally.

    npm install longmemory
    # or: npm install --global longmemory
  3. Initialize and recall

    Initialize a database and run your first recall from the CLI.

    longmemory init
    longmemory recall "current project priorities" --mode associative
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains LongMemory?

CaviraOSS publishes LongMemory (server images under ghcr.io/caviraoss); it is an open-source project.

Is LongMemory free?

Yes, Apache-2.0 licensed and local-first — your data stays in a local SQLite database unless you choose otherwise.

Does it need a paid API key?

Not necessarily: local and Ollama embedding options avoid hosted APIs; choosing OpenAI, Gemini, or Bedrock embeddings uses your own keys.

How does it compare to a plain vector database?

A vector store returns similar chunks. LongMemory adds typed records, temporal validity, provenance, governance scopes, and recall modes that combine keyword, vector, and graph signals.

How do I get started?

Run `npm install longmemory` and use `createMemory()`, or install the CLI globally and run `longmemory init` then `longmemory recall`.

// さらに探索

似ているツール

AIエージェント

agent-memory

Long-term memory runtime for AI agents — plain Markdown as truth, local ranked retrieval, no API key

★ 2.6k スターMIT
ガイドを見る →
AIエージェント

taosmd

Local-first AI memory that runs offline on just 8 GB of RAM.

★ 79 スターAGPL-3.0
ガイドを見る →
AIエージェント

memory-lancedb-pro

Memory-LanceDB-Pro gives OpenClaw agents hybrid search, smart extraction, and intelligent forgetting

★ 4.5k スターMIT
ガイドを見る →
AIエージェント

basic-memory

Basic Memory: local-first MCP memory so you and your AI tools build a shared knowledge graph in Markdown

★ 4.1k スターAGPL-3.0
ガイドを見る →
AIエージェント

cognee

Open-source AI memory that gives agents persistent long-term recall.

★ 31.6k スターApache-2.0
ガイドを見る →
AIエージェント

EverOS

One portable, local-first memory layer for every AI agent - Markdown-native, user-owned and self-evolving.

★ 13.4k スターApache-2.0
ガイドを見る →
// 代替候補

代替候補: AIエージェント

LibreAIカタログに掲載されたAIエージェントプロジェクトの中で最もスターの多いもの — LongMemoryが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る agents

さらに見る: AIエージェント

カタログの中でLongMemoryとスター数が近いAIエージェントプロジェクト — 前後の棚もそのまま見て回れます。

LongMemoryを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。