OpenLore

OpenLore is a minimal, extensible, agent-native knowledge base that keeps shared context current and inspectable.

Get Started View on GitHub
terminal
# Teach your agent how to use OpenLore
ssh  teach | your-agent-cli

# Add documentation access to your AGENTS.md
ssh  agents >> AGENTS.md

# Explore documentation
ssh  tree -L 2 /

What is OpenLore?

AI agents are trained on bash. They explore code with ls, cat, grep, and find. OpenLore gives them the same interface for your documentation — a read-only bash shell over SSH.

No RAG pipelines. No copy-pasting into context windows. Just a shell — over SSH, or over MCP when your client prefers it.

Native Agent Interface

Agents already know grep and cat. No new protocols or client libraries to learn.

📦

Single Binary

Docs baked in with Go's embed. Share one file; anyone who runs it serves your knowledge.

🔒

Read-Only by Design

A sandboxed shell over your documentation. Agents explore freely without touching anything else.

For Agent Developers

Pipe the teach skill directly to your agent to set up documentation access:

ssh  teach | your-agent-cli

The teach skill walks your agent through:

🛠️

Pull & Embed

Clone the repo, drop your docs in assets/lore/, build a single binary with everything baked in.

🔑

Access Control

Set up lore.json with per-agent path access — different agents see different docs.

🚀

Distribute

Share the binary. Anyone who runs it gets an SSH server with your documentation. Agents connect and explore.

For Products & Teams

Ship your documentation as a single binary that agents can connect to. Use the GitHub Action to automatically build and release binaries whenever your docs change.

# In your CI pipeline
- uses: aakarim/openlore@v1
  with:
    docs-dir: ./docs
    config: ./openlore.yml

Your users' agents connect via SSH — no API keys, no client libraries, no new protocols. Just ssh -p 2222 docs.yourproduct.com "cat /docs/api.md".

Quick Start

# Install
go install github.com/aakarim/go-openlore/cmd/openlore@latest

# Serve a directory
openlore ./docs

# Connect
ssh -p 2222 localhost

# Or run commands directly
ssh -p 2222 localhost "grep -r 'authentication' /docs"

MCP Support

Prefer the Model Context Protocol? The server also exposes an MCP-over-HTTP endpoint on by default at /mcp on the HTTP server, so clients like Claude Desktop and Cowork can browse your docs without SSH. It serves the same filesystem through a shell tool and a list_commands tool.

openlore ./docs
#   SSH:  ssh -p 2222 localhost
#   MCP:  http://localhost:8080/mcp

# Or run a stdio MCP server for desktop clients
openlore mcp ./docs

The Vision

We're building toward a world where agents can access project knowledge as easily as they access code. OpenLore uses Go's embed package to bake docs into binaries — making knowledge truly portable and distributable.

Agents sharing knowledge with other agents. Products sharing documentation with any agent. Multi-project systems where information flows freely. Open distribution of lore.