single- Tenants
- one, implicit
- Config
- one file
- Hook URL
/hooks/<source>- For
- one app, one server
self-host
The gateway is open source and the hosted service runs the same code. Self-hosting is a first-class way to use briefkasten, not a teaser: modes are presets, not forks, so the CLI, the API and the MCP tools are the same everywhere.
single/hooks/<source>personal/hooks/<project>/<source>multi/t/<tenant>/hooks/<project>/<source>Write the config with the CLI (or by hand, it's a file you can review in a pull request), start the server, and point the same CLI at it. Switching targets works like kubectl contexts.
On a server with no browser: briefkasten login with an email code, a device code you approve from your phone, or a token in BRIEFKASTEN_TOKEN.
Apps connect the same way with the TypeScript SDK: connect({ url: "https://hooks.example.com", token }). Or skip the gateway and run briefkasten inside your app.
Each outside service sits behind an interface with several adapters. The defaults work as they are.
$ briefkasten use https://briefkasten.fabrik.computerHosted to self-hosted, or back. The CLI keeps a credential per target, so you can manage both from the same terminal.