v0.2.1 · released November 11, 2026 · Status & limitations

Sealmesh

OTW mode

OTW mode runs the router on one of your own machines and lets your other machines reach it over Tailscale. There are no tokens. Tailscale already knows who's on the other end of each connection, so the router asks it.

Pick it when your machines are all yours (a laptop, a desktop, a build box) and you don't want GitHub or a cloud host in the loop.

How it works

  • The router listens only on its machine's tailnet address. Nothing off the tailnet can reach it.
  • When a daemon connects, the router asks the local tailscaled who the peer is (LocalAPI whois). The answer gives it two things:
    • Who: the Tailscale login (alice@github), which becomes the host (alice-github). A node owned by an ACL tag has no user, so its host is the first allowed tag (tag:sealmesh becomes tag-sealmesh).
    • Which machine: the Tailscale node name (work-laptop). Two of your machines are two rows in sealmesh who, and both stay connected.
  • The router admits a peer only if its user is in allow_users or the node has a tag in allow_tags. That allowlist sits on top of your tailnet ACL.
  • Everything an admitted identity asks to read is readable. OTW assumes a tailnet of one owner's machines.
  • The connection is plain WebSocket. WireGuard already encrypts every hop, and there's no credential in the handshake to leak.

Prerequisites

  • Tailscale on every machine, all on one tailnet.
  • On the router's machine, the open-source tailscaled, with its LocalAPI socket readable by the user that runs the router:
    • Linux: /var/run/tailscale/tailscaled.sock (the default).
    • macOS: /var/run/tailscaled.socket, for tailscaled installed from Homebrew or source.
  • Not the Mac App Store or standalone Tailscale app on the router's machine. Those serve LocalAPI over a private TCP port, which the router doesn't speak. Run the router on Linux, or on a Mac running the open-source tailscaled. The other machines can run any Tailscale client.
  • sealmesh-server on the router's machine, and sealmesh on every machine.

Set up the router

Find the machine's tailnet address:

tailscale ip -4      # e.g. 100.101.102.103

Write /etc/sealmesh/sealmesh-server.toml:

mode = "otw"
listen = "100.101.102.103:8787"         # this machine's tailnet IP, nothing else

[otw]
allow_users = ["alice@github"]          # Tailscale login names
allow_tags = ["tag:sealmesh"]           # ACL tags, for tagged machines
# tailscaled_socket = "/var/run/tailscaled.socket"   # macOS, or a non-default path

[history]
path = "/var/lib/sealmesh/history.sqlite"

# Optional: named rooms. Members are hosts as the router names them.
# [[room]]
# name = "ops"
# members = ["alice-github", "tag-sealmesh"]

allow_users and allow_tags can't both be empty: a router nobody can join refuses to start. projects works as in cloud mode and is optional here. github_org isn't read.

The router also refuses to start when:

  • listen is 0.0.0.0, ::, loopback, a LAN address or a public one. It must be in 100.64.0.0/10 or fd7a:115c:a1e0::/48.
  • tls_terminated_by is set. A proxy in front would hide each peer's tailnet address, and the router couldn't ask who it is.

Start it:

sealmesh-server --config /etc/sealmesh/sealmesh-server.toml

To keep it running, the full doc has a systemd unit (ordered after tailscaled.service, with Restart=on-failure to cover the boot race) and a launchd plist for macOS.

Restrict the port in your tailnet policy

The router's allowlist is the second gate. Make the tailnet ACL the first, so only your machines can open the port at all. Tag the router's machine (say tag:sealmesh-router) and grant just port 8787:

{
  "tagOwners": {
    "tag:sealmesh-router": ["autogroup:admin"],
    "tag:sealmesh":        ["autogroup:admin"]
  },
  "grants": [
    {
      "src": ["alice@github", "tag:sealmesh"],
      "dst": ["tag:sealmesh-router"],
      "ip":  ["tcp:8787"]
    }
  ]
}

Set up each daemon

[mesh]
mode = "otw"

[server]
url = "http://100.101.102.103:8787"     # the router's tailnet IP

[allow]
repos = ["you/your-repo"]
paths = ["/Users/you/src"]

[server] url must name a tailnet IP or a MagicDNS name (router, or router.your-tailnet.ts.net). A MagicDNS name works, but sealmesh doctor warns about it: it resolves only while MagicDNS is on, so the IP is the firmer pin. A LAN, loopback or public IP is refused at load. Use http://: the router serves plain WebSocket inside WireGuard.

The daemon sends no credential. machine in the config is ignored in otw mode, because the router names each machine from its Tailscale node name.

sealmesh doctor shows the mode, the router URL, and whether this machine's tailscaled LocalAPI answers. Only the router's machine needs that; the others just need to be on the tailnet.

When something fails

The router fails closed. It refuses the connection when:

  • tailscaled is down, or its socket can't be opened;
  • whois errors, answers anything but 200, or takes longer than 2 seconds;
  • the reply can't be parsed, or has no node or no login;
  • the peer isn't a tailnet address, or isn't in allow_users or allow_tags.

Each refused peer is logged at most once a minute, with the reason. Daemons back off and retry, so a tailscaled restart costs a retry, not an open door.

A whois answer is cached per peer address for 60 seconds, so a machine removed from the tailnet, or a tag taken off, stops being admitted within a minute. Failures aren't cached.

Security model

  • Reachability: the router binds only a tailnet address, and the tailnet ACL decides which nodes can open its port.
  • Encryption: WireGuard, end to end between nodes. No TLS needed, and no token is sent to protect.
  • Identity: tailscaled's whois answer for the connection's own source address. A daemon can't claim to be someone else, and its own machine claim is ignored.
  • Authorization: allow_users and allow_tags, checked on every connection (cached up to 60 s).
  • Access: an admitted identity can read everything the router serves. OTW is for one owner's machines. If you share the tailnet with others, they're bounded only by the allowlist, so don't list them.
  • Trust in the local machine: anyone who can write to the router machine's tailscaled socket, or edit its config, controls who gets in. That's the same root of trust as Tailscale itself on that machine.

Full doc on GitHub: docs/otw.md.

Something wrong or unclear? Open an issue.