Install Locus Files
Locus Files runs on your own computer. You install it once, point it at a folder, and connect an assistant that speaks MCP. When you ask a question, the answer comes with the file path and the chunk number it was taken from, so you can check it.
What to expect
You need a terminal. The download is about 530 MB (the engine and an on-device embedding model), there is no account and no API key, and indexing a folder takes longer the bigger the folder is: start with a small one. locus estimate <folder> shows the size first.
Tested on one Mac (Apple silicon). The same journey, install to a cited answer, also passed once on GitHub's Ubuntu runner and in a Debian container. Windows is not yet verified: it passed once on GitHub's Windows runner, and about 200 of the repository's own tests fail there.The assistant with a recorded run on this version is Claude Code, in a handful of automated sessions. Other assistants are listed with their own status on the connect page.
The commands below name the release candidate and the --prerelease allow flag, because the default version on PyPI is still the older 0.1.4. They change to a plain install as soon as 0.2.0 is published.
1. macOS and Linux
Install uv (it brings its own Python), then Locus Files. Open a new terminal after the first line.
curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install --python 3.12 --prerelease allow "locusfiles[local]==0.2.0rc3"
uv tool update-shell
locus doctorlocus doctor checks Python, packages, settings and the embedder, and the first run downloads the 134 MB model. Every line should end in OK. The first run also asks one question about commercial use; answer it and it continues. If a check fails, the message names the fix.
1b. Windows (PowerShell): not yet verified
Windows is not yet verified, so treat these commands as untested: they are the same journey, and if one fails, the output of locus doctor in a GitHub issue is the most useful thing a Windows tester can send.
# Windows is not yet verified
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv tool install --python 3.12 --prerelease allow "locusfiles[local]==0.2.0rc3"
locus doctor2. Index a folder
Pick one small folder of notes or documents you know well, so you can tell whether the answers are right.
locus estimate ~/Documents/notes
locus index ~/Documents/notes
locus query "what did I decide about pricing" -k 5The last command should print matching excerpts, each with a file path and a chunk number. If it does, indexing and search work end to end on your own computer, before any assistant is involved.
3. Connect your assistant
For Claude Code:
claude mcp add --scope user locus -- "$(command -v locus)" serveThen ask it a question that needs your files, and name Locus in the question, because assistants do not always call a tool by themselves: “Using Locus, what did I decide about pricing?” Other assistants and the steps for each: connect page. locus setup --list shows the clients the engine knows.
Claude Code can also start the engine through uvx, without a separate install step. The first start downloads the engine, so run the first line once in a terminal, then add the second to your assistant. We have started the engine this way; a full Claude Code session with this exact line has not been recorded yet.
uvx --python 3.12 --prerelease allow --from "locusfiles[local]==0.2.0rc3" locus doctor
claude mcp add --scope user locus -- uvx --python 3.12 --prerelease allow --from "locusfiles[local]==0.2.0rc3" locus serveWhat leaves your computer
Your raw files are never uploaded to Locus. When your AI assistant searches, the matching excerpts go to that assistant, as they would if you pasted them in.
Licence
Locus Files is source-available, not open source. It is free to use for noncommercial purposes under the PolyForm Noncommercial License 1.0.0. Work at a company, paid client work and use inside a product or service need a separate licence: commercial use. The code is on GitHub.
If something goes wrong
Run locus doctor first: it names the broken check and the command that fixes it. If it does not, open an issue on GitHub with the output, or write to support. Telling us where the install stopped is as useful to us as a working install.