# Repository Briefing: aakarim/OpenLore
> Source: https://repoforai.com/repo/aakarim/OpenLore (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/aakarim/OpenLore
- **Official Docs / Website**: https://openlore.sh
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Go
- **License**: Apache-2.0
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 6/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.8.0 (2026-10-30) — https://github.com/aakarim/OpenLore/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, MCP, CLI
- **Momentum**: 2,009 ★ total (+0 24h / +31 7d) · 13 forks
- **Topics**: `agent`, `agent-memory`, `agents`, `knowledge`, `knowledge-base`, `knowledge-management`, `knowledgebase`, `memory`
- **When to Use**: Best for: Teams sharing current Markdown runbooks, architecture notes, or reusable skills across agents and CI, with separate permissions for reading, publishing, and editing. Skip if: An existing Git workflow already serves one repository, or the main requirement is semantic retrieval over a corpus that users cannot reliably navigate by path or keyword.

## Overview
```text
### Architecture & Core Mechanics
OpenLore is a Go service that exposes ordinary Markdown through a shared virtual filesystem. Wish handles SSH transport; the server resolves the caller's identity, mounts the docsets that identity can access, and executes commands against that view. SSH, SFTP/SSHFS, MCP, and the web view expose the same knowledge surface. The Go MCP SDK is a direct dependency, and `lore_bash` exposes the shell-style interface over MCP.

The shell interprets supported commands in Go rather than launching host processes. A normal session has neither arbitrary process execution nor ambient network access; `spawn` is a separate capability for explicitly trusted identities. Plugins extend grants, metadata, validation, read/write middleware, and post-commit processing without changing the filesystem interface clients use.

### Key Capabilities & Differentiators
The server is read-only by default. Docset-level `ro`, `publish`, and `rw` grants separate readers, scoped contributors, and editors. Path aliases and private homes let different identities see different layouts. Authorized changes enter one whole-file write path: plugins can validate or defer a change before an atomic commit, and compare-and-swap rejects stale edits by default. OAuth delegates cannot exceed the principal's authority and are recorded separately in write provenance.

Retrieval is inspectable as file and shell operations rather than hidden behind a ranking API. Agents can search with `grep` and `find`, while `lore meta` emits frontmatter as NDJSON for downstream tools such as `jq`. Open Knowledge Format bundles and Agent Skills can be validated near the write path. Release v0.8.0 adds selective import of agent memory and repository knowledge without moving original files or giving the server private Git credentials.

### Trade-offs & Limitations
For one agent in one repository, keeping Markdown in Git avoids another service and leaves review in the existing pull-request workflow. OpenLore earns its operational cost when several repositories or agents need the same current files but not the same write permissions. Compared with an embedding-backed knowledge base, it removes indexing and embedding infrastructure and makes retrieval easy to inspect. The trade-off is that search quality depends on document structure, vocabulary, and the caller's ability to navigate the corpus; it does not provide semantic ranking out of the box.

The virtual shell limits what ordinary sessions can do, but it is not a general POSIX environment. Workflows that assume host tools or network calls will need to stay outside it. Atomic writes address stale updates, not editorial quality or approval: use publish-only inboxes if agent output needs maintainer review. For a larger corpus, test representative recursive searches and parallel sessions, and budget for identity administration, policy, and persistent storage.

### Hardware & Deployment Guide
A local trial uses `lore init` and `openlore ./docs`; the quickstart serves SSH on `2222` and web/MCP on `8080`. Building from source uses the Go 1.26.2 version declared in `go.mod`, with `make dashboard-build` optional for embedding the web UI. The file-serving runtime does not require model inference, a GPU, or a vector database. For offline distribution, documentation embedded under `assets/lore/` is served read-only at `/docs` when the binary runs without a directory argument.

For a shared deployment, pin the release image, provision persistent `/var/lib/openlore` storage, and provide `openlore.yml` and `lore.json` in its `config` directory before starting `./out --config /var/lib/openlore/config/openlore.yml`. The image does not supply deployment policy. Plan for HTTPS and authentication on `/mcp` as well as SSH reachability if agents use it; public port mapping is provider-dependent. Keep server-side policy and file edits across upgrades. Release v0.7.5 improved dashboard navigation and passkey sign-in; v0.8.0 adds selective knowledge import.
```

## Key Capabilities
```text
- Retrieval: Run `cat`, `grep`, and `find` against identity-scoped files over SSH or MCP's `lore_bash`.
- Authorization: Combine docset-level `ro`, `publish`, and `rw` grants with path aliases and private homes.
- Write consistency: Commit whole-file updates atomically and reject stale changes by default with compare-and-swap.
- Delegation: Record OAuth delegate writes separately from principal writes, with deny lists that can further narrow authority.
- Structured content: Emit frontmatter as NDJSON with `lore meta` and validate OKF bundles or Agent Skills near the write path.
- Distribution: Serve a live directory or package a read-only snapshot as an embedded binary or desktop MCP bundle.
```

## Quick Start / Clone
```bash
brew install --cask aakarim/tap/lore
lore init my-knowledge
cd my-knowledge
```
