# OpenLore > OpenLore is a minimal, customisable, agent-native knowledge repository that keeps your context current and inspectable. A Lore server stores the documents for a project; AI agents connect to it over SSH (or MCP) and read the documents with ordinary commands such as `cat` and `grep`. To get started interactively, pipe the onboarding guide into your agent: ```bash ssh openlore.sh teach | claude ``` The `teach` guide asks one question: **what Lore server do you want to use?** It offers three paths, summarised below. ## What is a Lore server? A Lore server stores the documents for your project. AI agents connect to the server with SSH. The agents read the documents with simple commands, such as `cat` and `grep`. The agents can also write notes back to the server, if you permit it. You control access with SSH keys and roles. You can run the server on your machine, or you can run it in the cloud. One binary contains the server and the documents. ## Connect to an existing Lore server The default SSH port is 2222; openlore.sh uses 22. ```bash ssh -p 2222
# verify the connection tree -L 2 / # list all documentation grep -r "term" /docs # search across docs cat /docs/README.md # read a file help # full command list ``` Onboard your agents with the instructions the server carries: ```bash ssh -p 2222
openlore-skill # portable Agent Skills file ssh -p 2222
agents # AGENTS.md snippet ``` ## Set up a new Lore server The `setup` guide creates and locally verifies a deployable OpenLore project, one question at a time. Then `onboarding` adds identities and `deploy` shares the server with the team: ```bash ssh openlore.sh setup ssh openlore.sh onboarding ssh openlore.sh deploy ``` ## Going further Every guide ships on the server itself. Fetch what the moment needs instead of keeping it all in context: ```bash ssh
skills # list every guide the server carries ssh
# fetch one, e.g. passkeys, upgrade, deploy-fly ``` ## Docs - [What is OpenLore](https://openlore.sh/docs/): Overview of OpenLore and how agents read a shared knowledge repository - [Quickstart](https://openlore.sh/docs/quickstart/): Install OpenLore, serve a folder of Markdown, and connect an agent - [Any agent over SSH](https://openlore.sh/docs/start-ssh/): Connect a coding agent, CI job or script with nothing but `ssh` - [Claude Code](https://openlore.sh/docs/start-claude-code/): Give Claude Code a shared knowledge repository over MCP - [Codex](https://openlore.sh/docs/codex/): Connect Codex over MCP - [Cursor](https://openlore.sh/docs/cursor/): Connect Cursor over MCP - [OpenCode](https://openlore.sh/docs/opencode/): Connect OpenCode as a remote MCP server - [Commands & CLI](https://openlore.sh/docs/commands/): The bash-like command language over the virtual filesystem ## Optional - [Docsets](https://openlore.sh/docs/docsets/): Named parts of the served tree and the policy that governs them - [Auth](https://openlore.sh/docs/auth/): SSH keys, identities, roles and workload identity federation - [Writing & publishing](https://openlore.sh/docs/writing/): Let agents write back with atomic, attributed, conflict-checked writes - [Configure the server](https://openlore.sh/docs/configure-the-server/): Set up `openlore.yml` - [Team setup guide](https://openlore.sh/guides/team-setup-guide/): Set up a shared server, connect your team's agents, and share docs and skills with scoped permissions