Docs → MemSense Docs See also: Local BGE One-Click Deployment · API Smoke Test
This page covers the advanced setup path for macOS / Linux environments where Docker is unavailable. The main README uses Docker as the recommended path because it brings up Postgres, the API server, workers, and local BGE together.
Windows no-Docker setup is still being tested. Windows users should use Docker Desktop and the PowerShell commands in the main README.
- Node.js 20+ and npm
- PostgreSQL 16+ with
pgvector - Python 3.11+ with venv support for local BGE embedding
On macOS, the bootstrap script can install PostgreSQL and pgvector through Homebrew. On Linux, install PostgreSQL, pgvector, Python, and venv support with your system package manager first.
Run one setup path. bootstrap-nodocker.sh is the first-time setup step; start-bash.sh starts the runtime processes after setup.
bash scripts/bootstrap-nodocker.sh local
bash scripts/start-bash.shThis installs dependencies, initializes the database, prepares the local BGE Python service, and starts the server, embedding worker, tag worker, and BGE service.
Set MEMSENSE_OPENAI_API_KEY in .env, then run:
bash scripts/bootstrap-nodocker.sh openai
bash scripts/start-bash.shThis installs dependencies, initializes the database, and starts the server, embedding worker, and tag worker.
# Start after the first bootstrap, after reboot, or after a manual stop
bash scripts/start-bash.sh
# Stop the local background processes when you are done or before changing .env
bash scripts/stop-bash.sh
# Restart already-running bash-managed processes in place
bash scripts/start-bash.sh --restartstart-bash.sh starts the local API server, embedding worker, tag worker, and the BGE service in local embedding mode. It expects .env and Node dependencies to exist, so run bootstrap-nodocker.sh first on a fresh checkout.
stop-bash.sh stops the processes started by start-bash.sh and clears .runtime pid/log files. Use it before changing ports or providers in .env, before switching back to Docker, or when you no longer need the local service.
Logs:
.runtime/server.log.runtime/worker.log.runtime/tag-worker.log.runtime/bge.log(if local BGE mode)
- Read Local BGE One-Click Deployment for local embedding details.
- Read API Smoke Test to verify the deployment.