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: macOS, Python 3.13+ and uv. Loci supports macOS only for now. The author uses it on macOS. CI runs the tests on Linux, but Linux is not a supported platform, and Windows is not tested.

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) 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.0

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.0
File Size Uploaded Provenance Actions
loci_vault-0.9.0.tar.gz 2.7 MB With provenance Details for loci_vault-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.1 MB

Release files / loci_vault-0.9.0.tar.gz

Download URL loci_vault-0.9.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d912f982b84d989e28eba8074601e9695005e2555ed0b5efb9850e776bace80f
BLAKE2b-256 checksum
How to use checksums
6e880a717a44bd694ba28d2993b95f2bda9dd57a22c41b105940ae5f0c746291
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 21, 2026.

Transparency log

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

Download URL loci_vault-0.9.0-py3-none-any.whl
Size 378.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
840348d666d3a01c64c24196f947973d7635171f2bf07df66424b9e96f14cc4b
BLAKE2b-256 checksum
How to use checksums
76965388eeb91873135962bc831b1fbcb0e49776519bbec9807283811a048f4b
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 21, 2026.

Transparency log

Security for loci-vault 0.9.0

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.0.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 21, 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