Skip to main content
Loci


Tests python 3.13+ interface: MCP + web UI tests: unit + browser e2e vault: plain Markdown licence: PolyForm Noncommercial 1.0.0

language: English language: ru-RU


Loci

A personal knowledge graph that you own. Loci keeps your notes, articles, books, tasks, people, and conversations as plain Markdown files in a folder that you choose. Your AI agent reads and writes these files through an MCP server. A local web app shows them as a graph.

The problem. Your knowledge is in many apps. The apps do not link to each other. Your AI assistant keeps its memory on the vendor's servers, in the vendor's format. When you search, you find only the note that you already remember.

What Loci does.

  • Keeps everything in one place, as files. Each item is one Markdown file with YAML frontmatter. You can open, grep, and commit the files with no other software. If you delete Loci, the files stay.
  • Links items with typed relations. Each item has a stable 8-character ID, a type (article, task, entity, …), and typed links to other items (is-based-on, contradicts, supersedes, …). Links use IDs, so a rename does not break them.
  • Holds your agent to your vocabulary. The types, fields, and relations are in versioned registries. Loci rejects an unknown type or relation on write. Your agent reads the registries before it writes.
  • Points at files. It does not move them. An item can record where a file is: on your disk, in Google Drive, at a URL, in Gmail, and more.
  • Records each change. Loci keeps a history of every write, also of edits that you make by hand.

Who it is for. You use an AI agent every day (Claude Code is fully supported). You want one place for what you read, write, and decide, in a format that no platform owns.

Ask questions that a folder cannot answer: what do I know about stoicism? returns the books, the reading logs, the notes, the people, and the links between them.

Loci topology view: force-directed graph coloured by node type

Status. Work in progress, and a personal project. The author uses the core every day. Some parts are not finished. Status and roadmap tells you which parts.


Quick start

Requirements: Python 3.13+ and uv, on one of the supported systems below.

Platform Status Notes
macOS (Apple Silicon) Supported The author's daily platform: macOS 26. Intel Macs and older macOS versions are untested.
Windows 11 Pro 24H2 (build 26100), ARM64, with x64 Python Supported Install with uv tool install --python cpython-3.13-windows-x86_64 loci-vault. Checked in a VM: the full unit suite passed (1,877 tests, 49 skipped on purpose), the browser suite passed 82 of 83 (the one failure was a timing flake under load that passed 8 of 8 reruns), and Claude Code, Claude Desktop and Hermes each saved a note and found it again. Python for native ARM64 Windows does not install yet, because cryptography ships no ARM64 Windows wheel. There is no Windows CI, so this is a tested configuration, not a guarantee for every Windows machine.
Other Windows (Windows 11 on x64 hardware, Windows 10, Home or Server editions) Not tested No claim either way.
Linux Not supported CI runs the unit and browser suites on it. A manual install of the published package on Ubuntu (arm64) also worked.

Agents (Claude Code, Claude Desktop, Hermes) are covered per platform in the setup guide.

1. Install from PyPI

uv tool install loci-vault

The PyPI package is loci-vault, not loci. The name loci on PyPI is an unrelated project. Do not run uv tool install loci or pip install loci. What you install is loci-vault; the commands it gives you are loci and loci-mcp.

2. Connect it to your agent

loci setup

This installs the skills and registers the MCP server in one step. If Loci finds one agent (Claude Code or Hermes), it uses it. If it finds several, it asks you which. To skip the question, add --target claude, --target hermes, or --target all. It is safe to run again.

Prefer the two halves? loci skills installs the skills and loci register registers the server; loci setup is those two with one question. For other agents, see Agent support.

3. Choose a vault folder

Restart Claude Code. Then tell it where the vault must be:

Point Loci at ~/loci/vault

Use a folder that is one level inside a folder of its own, as in this example. Loci puts two more folders next to the vault: assets/ (files that you add) and loci-stage/ (an inbox for batch import). With ~/loci/vault, all three are in ~/loci/. With ~/vault, they go directly into your home folder.

4. Use it

Save this article to my loci vault: https://example.com/post
What does my loci vault know about stoicism?

To browse the vault, start the web app:

loci        # opens on http://127.0.0.1:8765
Command What it is
loci The web UI and its HTTP backend. Change the address with --host / --port (or LOCI_UI_HOST / LOCI_UI_PORT). It stops with an error if you did not do step 3.
loci-mcp The stdio MCP server. Your agent starts it. Do not start it yourself.

For upgrades, a checkout install, and sync, see docs/setup.md.


Agent support

Loci is a standard MCP server. Any agent that supports MCP can use it.

Agent Status
Claude Code Fully supported and tested. The steps above install everything.
Claude Desktop (macOS, Windows) Supported. loci register (or the checkout setup, uv run setup.py) registers it.
Hermes Supported. loci register --target hermes and loci skills --target hermes.
DeepSeek Harness and other agents Untested. Manual setup, or ask the agent to set itself up. Steps.
Codex and other MCP clients Expected to work. Not tested. Do the steps below.

For an agent other than Claude Code:

  1. Register the MCP server with your agent. For Codex: codex mcp add loci -- loci-mcp. For other agents, see their MCP documentation. The command to start is loci-mcp.
  2. If your agent supports skills (SKILL.md folders), install the skills into its skills folder: loci skills --dir <folder>. For Codex, the folder is usually ~/.codex/skills.
  3. If your agent does not support skills, add this line to its instructions: "Before you save to or read from Loci, call the read_skill tool of the loci MCP server and follow the result."

Your data and the model. The vault stays on your machine. When your agent reads a note to answer you, the agent sends that note to its model provider, as with any other file that the agent reads.


Documentation

Use Loci

The problem Why Loci exists, and why a Markdown folder or a PKM app alone is not sufficient
Setup Install from PyPI, a release wheel, or a checkout. Upgrade. Sync and backup
Examples One prompt for each task: save, find, update, extend the ontology
Using Loci The mental model, saving, querying, the web UI, and the vault layout
The ontology Types, relations, schemes, and how the registries are versioned
Status and roadmap What is stable, what is partial, what is next

Work on Loci

CONTRIBUTING Licence, CLA, and the rules for a pull request
Development Repo layout, daily commands, releases
Testing The unit suite and the browser e2e suite

Reference

File saving How a file on disk becomes a vault node
Execution flows What each install and upgrade path does, step by step
Diagrams Components and data flow

Licence

PolyForm Noncommercial 1.0.0. Noncommercial use is free: personal use, research, teaching, and charities, including changes and redistribution. Commercial use needs a separate licence. To get one, open an issue.

Loci is source-available, not open source. The licence covers this software, not the notes that you write with it. Your vault is yours.

Contributing

Read CONTRIBUTING.md. Each pull request needs a signed Contributor Licence Agreement. You sign one time, and you keep your copyright.


About the name

Loci /ˈloʊsaɪ/ (LOH-sy, or LOH-kee as a Roman said it) is Latin for "places," the plural of locus. The name comes from the method of loci: a classical memory technique. You put each thing that you want to remember in a place that you know well, such as a room or a road. To remember it, you walk back through that place. Loci gives your digital life the same kind of space: each item has a fixed place, and you find it by its links and its path.

Metadata

Release files for loci-vault 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loci-vault 0.9.1
File Size Uploaded Provenance Actions
loci_vault-0.9.1.tar.gz 2.7 MB With provenance Details for loci_vault-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loci-vault 0.9.1
File Interpreter ABI Platform Actions
loci_vault-0.9.1-py3-none-any.whl Python 3 none any Details for loci_vault-0.9.1-py3-none-any.whl

Total release size: 3.1 MB

Release files / loci_vault-0.9.1.tar.gz

Download URL loci_vault-0.9.1.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d20ab7a45ce92a74bdf1863332b2528571321dde1115fc73a6fa58c6d4e10dd6
BLAKE2b-256 checksum
How to use checksums
330db23be4c382b63d65f7793dfc15e9d9f7a3e4f16db75ae6196f5a47a5b589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / loci_vault-0.9.1-py3-none-any.whl

Download URL loci_vault-0.9.1-py3-none-any.whl
Size 390.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45d2744ed55ef7e62f66db06a0a5787e8270862b52e063fc39b7388b2776b999
BLAKE2b-256 checksum
How to use checksums
2fbe0639d5a9c4c5a85e2d69278bc585ba0534470530eb236772a86bde717d2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for loci-vault 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for loci_vault-0.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page