Local File Search
Search your own files by meaning, not just keyword matching — entirely on your own machine, nothing uploaded anywhere.
Install
Recommended: pipx — installs the command and
automatically makes it available in your terminal, avoiding a common
Windows/Mac/Linux gotcha where plain pip install puts the command
somewhere your terminal doesn't look (see Troubleshooting below if you hit
this).
pip install pipx
pipx ensurepath
pipx install JCcoder0901semantic_search
(rename JCcoder0901semantic_search once you've picked and published under your
chosen name)
Alternative: plain pip
pip install JCcoder0901semantic_search
Run
localsearch
If that command isn't found, see Troubleshooting below — this is a very common first-run snag with Python command-line tools in general, not specific to this one, and there's a guaranteed-to-work fallback.
Then open your browser to:
http://127.0.0.1:9120
You'll see a simple page:
-
Index a folder — type the full path to a folder you want searchable (e.g.
C:\Users\you\Documents\notes), pick which extensions to include if you want more than the.txt/.mddefaults, click Index. -
Search — pick a mode (file name + content, file name only, or content only), type a plain-English question, click Search. Results are ranked by how close their meaning is to your question, not exact word matches — a file can show up even without containing your exact search terms.
That's the whole workflow — no curl, no JSON, no terminal commands after the
initial localsearch.
First run downloads a small embedding model (~50MB via fastembed), needs
internet once, then works fully offline.
Your search index is saved to ~/.local_file_search/index.pkl, so it
survives restarts — you don't need to re-index folders you already indexed.
Troubleshooting: "localsearch is not recognized"
This happens when pip (not pipx) installs the command into a folder your
terminal's PATH doesn't include — it's a well-known Python packaging quirk,
most common on Windows, and not something wrong with your installation.
Guaranteed fix, works every time regardless of PATH:
python -m search_api.main
Permanent fix: switch to pipx (see Install above) — it's built
specifically to solve this, or manually add Python's Scripts folder to your
PATH:
python -c "import sysconfig; print(sysconfig.get_path('scripts'))"
Add the folder that prints to your system PATH (search "environment variables" in the Start menu on Windows), then open a new terminal window.
Running via Docker instead (optional)
If you'd rather not install anything into your system Python, a Dockerfile
is included.
docker build -t local-file-search .
docker run -p 9120:9120 -v "${PWD}/data:/data" -v "${env:USERPROFILE}:/host" local-file-search
${env:USERPROFILE} mounts your whole Windows user folder as /host inside
the container, so a folder like Documents\notes in your profile becomes
/host/Documents/notes when typed into the app. ${PWD}/data:/data
persists the index outside the container so it survives restarts.
Notes on scope
- Only files you explicitly
Indexget searched — nothing is scanned automatically just because it exists on disk. - Point Index at specific folders rather than an entire drive — indexing everything would be slow and pull in a lot of irrelevant files.
- Supported file types by default:
.txtand.md. Add more via theextensionsfield in the Index request, or by editingsearch_api/main.py.
How it works, briefly
- Index: for each matching file, embeds the filename and the content as
two separate vectors (lists of numbers capturing meaning) using a small
local model (via
fastembed, no PyTorch/GPU required), and saves them toindex.pkl. - Search: embeds your question the same way, compares it against the stored vectors by cosine similarity, and returns the closest matches. The mode selector controls whether "closest" is judged by filename, content, or whichever of the two is the stronger match.
Publishing this yourself (for the maintainer)
pip install build twine
python -m build
twine upload dist/*
Before your first upload: pick a unique name at pypi.org, update it in
pyproject.toml (name and the localsearch install command above), fill
in your name in pyproject.toml and LICENSE, and set up a PyPI API token
for twine to use.
Metadata
Release files for JCcoder0901semantic-search 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jccoder0901semantic_search-0.1.0.tar.gz | 10.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jccoder0901semantic_search-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / jccoder0901semantic_search-0.1.0.tar.gz
| Download URL | jccoder0901semantic_search-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d0506363b20a4d7f9278411b25ff9cde51bfc185be263993d10426e94e63723
|
|
BLAKE2b-256 checksum How to use checksums |
e930fccaf667fe70974eb20d46c0e37758e10943ece7c5c666d7094ec52a77ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 6, 2026.
Transparency logRelease files / jccoder0901semantic_search-0.1.0-py3-none-any.whl
| Download URL | jccoder0901semantic_search-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
998d99656ae102dae43cffd6a67db4e6714f5ed0edc668e94cf9c377ccbdcbaa
|
|
BLAKE2b-256 checksum How to use checksums |
00aec767a2337430959f2e5333cd08fe67965824fb4485f7ba8700a527df05e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 6, 2026.
Transparency logSecurity for JCcoder0901semantic-search 0.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for jccoder0901semantic_search-0.1.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 Sep 6, 2026.
Transparency logA 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.