Skip to content
mashDocs
Download for Mac

Local search service (Qdrant)

Mash uses Qdrant for local indexing and search. Use the built-in installer for a service that starts when you log in, or run Qdrant yourself if you already have it or need a different setup. After it starts, connect your histories.

Terminal window
mash qdrant install

Local indexing and search use Qdrant. This command downloads Qdrant 1.20.0 for your platform (about 30 MB) from Qdrant’s GitHub releases, checks it against a SHA-256 checksum built into Mash, and starts it in the background as your user. It needs no administrator rights or Docker, listens only on this machine (127.0.0.1, ports 6333 and 6334), and starts again when you log in. The JSON result has "outcome": "installed".

The location below is for the service installed by Mash. It stores searchable chat text and any vectors used for search by meaning.

Platform Runs as Qdrant’s output Data
Linux systemd user service mash-qdrant.service journalctl --user --unit mash-qdrant.service ~/.mash/qdrant/storage
macOS LaunchAgent dev.mash.qdrant ~/.mash/qdrant/qdrant.log ~/.mash/qdrant/storage
Windows logon task MashQdrant %USERPROFILE%\.mash\qdrant\qdrant.log %SystemDrive%\mash-qdrant\storage

On macOS the LaunchAgent starts Qdrant through the mash that installed it, which is signed, so Login Items lists the service under Mash rather than as an item from an unidentified developer. If you remove or move that copy of mash, run mash qdrant install again.

Qdrant also uses a snapshots folder next to storage. On Windows, these data folders are usually under C:\mash-qdrant because longer paths can make Qdrant fail. Its program, configuration, and log file stay under %USERPROFILE%\.mash\qdrant.

mash status shows the actual path, version, and service state under local_qdrant.installed. The mash qdrant install result shows the path as service.storage. Find the rest of Mash’s files

Each index keeps its search data in Qdrant. When you delete or move an index, or reinstall, its data stays behind. To see what is left over:

Terminal window
mash qdrant prune

It lists Mash’s search data in Qdrant and what each part belongs to. Nothing is deleted until you add --yes, and even then only data whose index no longer exists. Data a shared server keeps, data whose index is on a disk that isn’t connected, and data from older Mash versions that recorded no owner are always kept. If another index on this computer uses the same Qdrant, name it with --index PATH so its data counts as in use. To remove data from older Mash anyway, name it with --include-unknown and the group shown in the list.

For a startup error, look up the log command or file for your platform.

On Windows the logon task runs only while you are signed in at the desktop. On a machine you reach only over SSH, or a server nobody signs in to, the command reports that Qdrant did not become ready; start Qdrant yourself there, as native Windows without Docker describes.

Rerun the command at any time. It restarts a stopped service, restores missing files, and upgrades Qdrant when a newer Mash pins a newer release, without changing Qdrant’s data. The outcome is current when nothing needs doing, and already_running (nothing installed) when a compatible Qdrant already answers on those ports, such as the Docker container below. If another program holds a port, the command stops and says which.

  • Linux: the command needs a systemd user session. The service runs while you are logged in. To keep it running on a machine nobody logs in to, enable lingering with loginctl enable-linger (some systems allow this only for administrators).
  • Other ports: set url and grpc_url in the Qdrant configuration to 127.0.0.1 addresses before installing.

mash init checks that Qdrant answers, but never downloads or starts it.

Mash’s installer uses your Linux user session to keep Qdrant running in the background. Run this read-only check in the same Linux or WSL terminal you plan to use for setup.

Terminal window
systemctl --user show-environment >/dev/null

If the check finishes without an error, use mash qdrant install. If it prints an error about connecting to the user bus or finding systemctl, start Qdrant in Docker or run the Linux binary in a terminal. If you prefer to enable systemd on WSL 2, follow Microsoft’s WSL guide and check again from your WSL terminal.

If the quick installer stopped after printing “Installed”, Mash’s binaries are already in place. Start Qdrant, then run mash dash for browser setup or mash init for terminal setup. Use the installed path if needed. For a new installation, use the binary-only installer before starting Qdrant yourself.

Use the official Docker image, start Qdrant by hand as below, or use an existing Qdrant 1.20+ service. Both the HTTP and gRPC ports must reach the same instance. For nondefault endpoints, see Qdrant configuration. Mash and the dashboard still run directly on your machine.

Each Qdrant has its own storage. When you switch between a native Qdrant, the Docker container and mash qdrant install, stop the old one first to free ports 6333 and 6334, then populate the new one with mash index --rebuild-local-views --full.

On Windows (x64, or ARM64 under emulation), download Qdrant 1.20.0 for Windows and extract it into C:\mash-qdrant (or another short, writable folder). Longer paths under your user profile can make Qdrant’s payload indexes fail even when its startup health check succeeds. In PowerShell, run:

Terminal window
Set-Location 'C:\mash-qdrant'
$env:QDRANT__SERVICE__HOST = '127.0.0.1'
$env:QDRANT__STORAGE__STORAGE_PATH = 'C:\mash-qdrant\storage'
$env:QDRANT__STORAGE__SNAPSHOTS_PATH = 'C:\mash-qdrant\snapshots'
.\qdrant.exe

Keep this window open and use the same settings next time to reuse the data. In a second terminal, check readiness with curl.exe --fail http://127.0.0.1:6333/readyz before running mash init.

Download the archive for your machine from the Qdrant 1.20.0 release:

Machine Archive
macOS, Apple Silicon Download
macOS, Intel Download
Linux, x86_64 Download
Linux, ARM64 Download

Extract it into a dedicated folder, such as ~/qdrant, and start it there:

Terminal window
cd "$HOME/qdrant"
QDRANT__SERVICE__HOST=127.0.0.1 ./qdrant

Keep that terminal open and start Qdrant from the same folder next time to reuse its data. In a second terminal, check readiness with curl --fail http://127.0.0.1:6333/readyz before running mash init.

Install and start Docker Desktop on macOS/Windows, or Docker Engine on Linux. Windows needs Linux containers; Windows Server/Engine-only hosts may not support them. On those hosts, use the native Windows instructions. Run this in Bash or PowerShell once Docker is running.

Terminal window
docker run -d --name mash-local-qdrant --restart unless-stopped --memory 2g -p 127.0.0.1:6333:6333 -p 127.0.0.1:6334:6334 --mount type=volume,source=mash-qdrant-data,target=/qdrant/storage qdrant/qdrant:v1.20.0

Only this machine can reach it. Open the readiness check and wait for “all shards are ready” before running mash init.

Terminal window
docker logs mash-local-qdrant
docker stop mash-local-qdrant
docker start mash-local-qdrant

Qdrant restarts with Docker unless you explicitly stopped it. If the container already exists, use docker start rather than docker run. Data lives in the mash-qdrant-data volume and survives stopping; delete the volume only to discard it.