# HDTP documentation

> Documentation for HDTP, HDTP Gateway (the self-hosted node) and BatonDeck (the hosted platform), for people and for agents.

**The protocol.** Identity as a certificate you hold, contacts as vCards, per-contact permissions, sealed
envelopes. [Start with the protocol](/protocol/), or read the
[specification](https://hdtp.io/spec/).

**HDTP Gateway.** The self-hosted node: one Go binary. [Quickstart](/gateway/quickstart/),
[how-to guides](/gateway/how-to/invite-someone/), [operations](/gateway/operations/) and its
[owner MCP tools](/gateway/owner-mcp/).

**BatonDeck.** The hosted platform. The [/v1 API reference](/cloud/api/), the
[owner MCP server](/cloud/mcp/) and [webhooks](/cloud/webhooks/).

**For AI agents.** `llms.txt`, every page as markdown, and WebMCP tools in every page.
[How to use them](/agents/).

[The /v1 OpenAPI document](/batondeck-openapi.json): BatonDeck's API, as the route table declares it (OpenAPI 3.1).
