Self-hosting

Run Knura on your own computer, server or cluster

Everything runs on hardware you control. Pick how you want to run knurd, then give phones a way to reach it.

What you need

  • NTAG 424 DNA tags (stickers, cards or key fobs with this chip).
  • A USB NFC reader that speaks PC/SC, such as the ACR122U, to set up tags.
  • Java 21 for knurctl and knurd, and Node.js 20.19 or newer for the Matter bridge.
  • An HTTPS address phones can reach, for example through Tailscale Funnel.

1. Set up your tags

New here? The Get started guide walks through every step below with commands for your system. No USB reader? Once knurd runs, the Android app sets tags up with your phone.

Download knurctl and knurd from the latest release, or build from source (git clone https://github.com/knura-dev/knura.git, then ./gradlew :knurctl:installDist; the README has the full steps). Then put a tag on the reader and run:

knurctl info shows a tag's ID, link and whose keys it has, and knurctl reset puts it back to factory keys. On Linux, knurctl needs the PC/SC daemon (pcsc-lite on Fedora).

2a. Run knurd at home

knurd listens on this computer only. Put an HTTPS tunnel in front of it so phones can reach it. Tailscale Funnel is free, needs no domain or router changes, and gives a fixed address:

The address must stay the same. It is written onto tags, so a tunnel that changes address every time it starts would break every tag. Use the resolver below if you expect to move.

2b. Run it on Kubernetes

A Helm chart runs knurd and knurgN in one pod, with the Matter bridge as an optional sidecar. knurctl stays on your computer because it needs the USB reader.

The test script builds the images, starts a kind cluster and checks that a tap verifies, that a replay is refused even after a restart, and that the Matter bridge got the tap. CI runs it on every pull request. Images aren't published to a registry yet, so you build them locally from the repository.

3. Optional: keep tags working when you move

Register with tap.knura.io and tags carry its address instead of yours. Moving knurd then means registering the new address, not rewriting tags.

You can always skip the resolver by giving knurctl provision your own --base-url.

4. Manage knurd from knurctl

knurd's admin API runs on a separate, never-public port. It shows status, recent taps and every tag seen, and since v0.3.0-alpha it lets a paired Android phone set tags up, with the keys staying on knurd.

See Security for how the admin port is locked down.