Installation & daily use
Your first folder. Your first search.
Install on the computer holding your sources. Docker runs the application and SearXNG. Choose a local AI runtime or explicitly connect a remote gateway.
01
Install the local stack
Install Docker Desktop or Docker Engine with the Compose plugin. Clone KeepIndex and copy the environment template. Set an initial LLM_URL, or configure your endpoint later in Settings. Search can run while AI is unavailable.
git clone https://github.com/PanStudio/keepindex.git
cd keepindex
cp .env.example .env
# Edit .env for your local model runtime
./start.sh
02
Open the app on this computer
Visit http://localhost:5173 in your browser. Both published ports are fixed to loopback: KeepIndex on 5173 and SearXNG on 8888. KeepIndex is available on this computer only. The product website you are reading does not contain your workspace.
The foreground launcher stops with Ctrl+C. Use docker compose up -d --build to run in the background. In supported browsers, install the local app as a PWA.
docker compose up -d --build
docker compose ps
curl -fsS http://localhost:5173/api/health
03
Choose an AI connection
Open Settings → AI connections. Check endpoints to see which public model APIs are reachable. Lemonade, LM Studio, Ollama, and llama.cpp have local profiles; use Add endpoint for a private gateway or another compatible remote API. Then select a model from that endpoint’s catalog.
A remote endpoint receives prompts and retrieved excerpts when selected. Its scope is visible beside the query box. Saving a new endpoint does not activate it, and KeepIndex never silently falls back to another connection.
AI connection guide ↗04
Grant one folder
Create compose.override.yml with a selected host folder mounted read-only. Replace the source path below with a real path on this computer. Windows with WSL can use /mnt/c/Users/you/Documents/notes; macOS can use /Users/you/Documents/notes.
Run docker compose up -d after editing. In Knowledge resources, add /home/keepindex/knowledge: the path inside the container. Repeat with additional explicit mounts for other folders. Original files stay in place.
services:
keepindex:
volumes:
- type: bind
source: /absolute/path/to/your/notes
target: /home/keepindex/knowledge
read_only: true
05
Choose browser profiles
Browser history is opt-in. A webpage cannot read it simply because you open the app. In Docker, mount a selected profile directory read-only and point KEEPINDEX_BROWSER_HISTORY_PATHS at its History file (Chromium browsers) or places.sqlite (Firefox).
The profile directory mount also exposes database sidecar files when present. The importer reads history metadata, not passwords or cookies; grant only a profile you intend to use. Select its checkbox in Knowledge resources and press Import selected profiles. Close the browser and retry if a live database is locked.
services:
keepindex:
environment:
KEEPINDEX_BROWSER_HISTORY_PATHS: /home/keepindex/browser/chrome/History
volumes:
- type: bind
source: /absolute/path/to/Chrome/User Data/Default
target: /home/keepindex/browser/chrome
read_only: true
06
Search with the right scope
Choose Files, Vaults, Docs, or History to retrieve that local source category without web discovery. Choose All or Web when you want search terms sent to public engines. Avoid private details in web-enabled queries.
Try a filename, an exact phrase, or operators such as ext:pdf, path:projects, and tag:research. Ask for an answer when the selected AI endpoint is ready, and inspect its citations.
07
Check, stop, and maintain
Docker Compose reports container state and logs. Stopping containers retains the local index. Removing volumes deletes the index and app state; it does not delete original source files. Export and restore controls are in Settings.
For a native CLI, install Bun, run bun install --frozen-lockfile, then run bun run keepidx start or bun run keepidx doctor. Doctor checks the environment where it runs, so a host CLI may not resolve container-only services or database mounts.
bun run keepidx doctor
bun run keepidx start
# Or manage containers directly
docker compose stop
docker compose up -d
08
Use the local API
The API is served from the app’s local origin and has no multi-user authentication. It refuses foreign browser origins. Do not publish it through a proxy or tunnel.
curl -N http://localhost:5173/api/ask \
-H 'Content-Type: application/json' \
-d '{"query":"What do my notes say about indexing?","target":"vault"}'