HUB
Sign inSign up

battermanz/hatchdoor

By battermanz

•Updated about 2 hours ago

Self-hosted, agent-native web app + MCP server for your Obsidian-style Markdown vault.

Image
Content management system
0

10K+

battermanz/hatchdoor repository overview

⁠Hatchdoor

Self-host your Obsidian vaults: a web UI for you, MCP for your AI agents. No Obsidian, no plugins required.

Hatchdoor reads your vault directly from disk, and any folder of Markdown notes works. No Local REST API plugin, no desktop app that has to stay running. Browse, search, and edit your notes in a fast web UI, and point a Model Context Protocol (MCP) client like Claude, Claude Code, Codex, Cursor, or Hermes at the same vault so your agent can read, search (keyword and semantic), create, edit, move, and link notes. One server manages as many vaults as you give it, every write goes through the same atomic vault operations the UI uses, with optimistic concurrency and optional automatic git commit-and-push. The web UI and your agents are two front doors to one vault.

Your Markdown files stay the source of truth. Hatchdoor builds a disposable SQLite read model it can rebuild from the vault at any time.

The runtime image is distroless and rootless. It is built on gcr.io/distroless/cc-debian13:nonroot, ships no shell or package manager, and runs as an unprivileged nonroot user.

⁠Tags

  • latest and <version>: the image, for Docker and Podman alike
  • podman-latest and podman-<version>: the same image under an older name, for installs set up before Docker and Podman shared one image. They will soon stop receiving new versions: switch to latest or <version>.
  • nightly and nightly-YYYYMMDD-<shortsha>: development builds, see below

nightly is the newest development build that has run healthy on the maintainer's own instance, for amd64 and arm64. Each published build also has a dated tag, which never changes and is kept for 14 days, longer while nightly still points to it. A nightly may break, can carry unfinished features, and reports itself as 2.x.y (dev <sha>) in its startup log. Before switching, stop Hatchdoor and back up data/state and data/cache/settings.json: an older release may be unable to read what a nightly stored. Try the nightly build⁠ explains the backup, how to go back to a release, and where to report a problem.

⁠Quick start

Install Hatchdoor with Docker Compose⁠ explains every step below. This is the short version.

Create compose.yaml in an empty folder:

services:
  hatchdoor:
    image: battermanz/hatchdoor:latest
    container_name: hatchdoor
    env_file:
      - .env
    environment:
      HOST: 0.0.0.0
      PORT: "42824"
      VAULT_PATH: /data/vault
      HATCHDOOR_CACHE_DB: /data/cache/hatchdoor-cache.sqlite3
    ports:
      # Safe default: only the Docker host can connect.
      - "127.0.0.1:42824:42824"
    volumes:
      - ${HOST_VAULT_PATH:-./vault}:/data/vault
      - ${HOST_CACHE_PATH:-./data/cache}:/data/cache
      - ${HOST_STATE_PATH:-./data/state}:/data/state
      - ${HOST_MODELS_PATH:-./models}:/models
    restart: unless-stopped
    stop_grace_period: 3m
    healthcheck:
      test: ["CMD", "/app/hatchdoor", "--healthcheck"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 40s

Next to it, create .env with the full path to the folder that holds your notes:

HOST_VAULT_PATH=/absolute/path/to/your/markdown-vault

Hatchdoor runs as user 65532, not as you. Create its data folders and hand them to that user before the first start:

mkdir -p data/cache data/state models
chmod 700 data/cache data/state models
sudo chown -R 65532:65532 data models

data/state holds the list of your Vaults and must survive upgrades. models holds the downloaded search model.

Start it:

docker compose up -d

The first start stops on purpose. Hatchdoor refuses to run without a web token, so it makes one and saves it in data/state/new-web-token.env, never in the log. Add it to .env with sudo cat data/state/new-web-token.env >> .env, then run docker compose up -d again. This time it stays running.

Open http://localhost:42824, enter the token, and pick a search model. A fresh install has no Vaults: the setup checklist that opens next walks you through adding your notes folder and connecting your agent.

With Podman, use podman compose and the same image, and with rootless Podman replace the sudo chown line with podman unshare chown -R 65532:65532 data models.

The GitHub README⁠ covers MCP client setup, configuration and every environment variable.

⁠License

AGPL-3.0-only

Tag summary

Content type

Image

Digest

sha256:e1d00a521…

Size

40.2 MB

Last updated

about 16 hours ago

docker pull battermanz/hatchdoor