Run ontlgy locally
This guide takes you from nothing to a running installation. If your team already runs ontlgy, join that installation instead.
Before you start
Section titled “Before you start”- Docker with Compose v2, running. Docker Desktop or Rancher Desktop with the
dockerdengine works. - Git, Bash, OpenSSL and curl. On Windows, use a suitable Bash environment such as WSL with Docker integration.
- About 4 GB of free memory and 10 GB of disk as an initial baseline; larger repositories need more.
- A GitHub token with access to the repository you will index.
- Cursor, Claude Code or Codex, with a local checkout available for reading code.
Node.js and pnpm are not needed, and nothing is built on your machine. The installation runs ontlgy’s published image, appsmithvivonk/ontlgy, together with the official Postgres and Neo4j images. The first start pulls the images and then indexes; there is no fixed setup-time guarantee.
1. Start the stack
Section titled “1. Start the stack”git clone https://github.com/ontlgy/ontlgy-deployments.gitcd ontlgy-deployments/docker-composebash install.shThe script creates .env with fresh secrets if it does not exist, pulls the images, starts the services and waits for the app. It keeps an existing .env unchanged. When it succeeds, it prints the app address, normally http://localhost:8080.
Useful options:
bash install.sh --check # Check Docker and Compose without starting servicesbash install.sh --port 9090 # Choose a port when creating a new installationThe Compose project is named ontlgy. Run one local installation at a time; starting a second copy can target the same stack. Use an existing installation if you already have one.
2. Complete setup in the browser
Section titled “2. Complete setup in the browser”- Open the printed address and create the administrator account. This initial setup runs once.
- Open GitHub and connect your token.
- Choose one repository in Repositories. A small repository you know well makes the first check easiest. Wait until its index finishes; open the error if indexing fails.
- Open Connect your agent and create your API key. Save it privately when shown; it is displayed once.
- Copy the configuration for your agent and use the connection test on that page.
GitHub setup explains repository access and webhooks.
3. Connect and ask a question
Section titled “3. Connect and ask a question”Follow Connect your agent, restart or reload its MCP connection, then complete Your first useful query.
You are finished when the agent can call ontlgy, resolve a real symbol, report the indexed commit and read the cited file in your checkout.
Stop and resume
Section titled “Stop and resume”Run these in the ontlgy-deployments/docker-compose directory:
docker compose psdocker compose logs --tail 100 app workerdocker compose down # Stop services; retain data volumesdocker compose up -d # Resume an existing installationDo not add -v to docker compose down unless you intend to delete the installation’s data volumes.
If the app does not start or the agent cannot connect, use Troubleshooting. For HTTPS, webhooks, shared access and Kubernetes, continue with Team installation.