# WaWarden

WaWarden is a self-hosted WhatsApp gateway. It links to one personal WhatsApp
account as a linked device and keeps that account's messages in a local
archive. Your own AI agents and applications reach the archive over REST and
MCP. Each client holds its own token. A token reads only the chats on its
allowlist and writes only to its write chats.

WaWarden is not an official WhatsApp API. It is not affiliated with WhatsApp or
Meta. WhatsApp can restrict, log out or ban an account that links an unofficial
client: read the [ban-risk notes](https://wawarden.dortort.dev/ban-risk/index.md) first.

## Who it is for

- **Owners of a personal account** who want an agent, such as Claude Code, to
  read and answer some of their chats, and no others.
- **Operators of one Linux host**, run under systemd or as a container, behind
  a VPN, a private network or a reverse proxy that terminates TLS.
- **Builders of agents and scripts** that need a stable API with scoped tokens
  instead of the account itself.

It is not a hosted or multi-account service, a network security layer or a bulk
messaging tool.

## Documentation

<div class="grid cards" markdown>

-   **[Getting started](https://wawarden.dortort.dev/getting-started/index.md)**

    ---

    From prerequisites to a paired account, a first backup and a first client.

-   **[Configuration](https://wawarden.dortort.dev/configuration/index.md)**

    ---

    Every environment variable, the startup refusals, the data directory,
    storage and backups.

-   **[CLI](https://wawarden.dortort.dev/cli/index.md)**

    ---

    Every subcommand, its flags and the exit codes.

-   **[API](https://wawarden.dortort.dev/api/index.md)**

    ---

    The client API, the admin routes, MCP and registering with Claude Code.

-   **[Operations](https://wawarden.dortort.dev/runbook/index.md)**

    ---

    The runbook for routine work and incidents, and the
    [ban-risk notes](https://wawarden.dortort.dev/ban-risk/index.md).

-   **[Security](https://wawarden.dortort.dev/threat-model/index.md)**

    ---

    The [threat model](https://wawarden.dortort.dev/threat-model/index.md) and the
    [hardening guide](https://wawarden.dortort.dev/hardening/index.md).

-   **[For agents](https://wawarden.dortort.dev/agents/index.md)**

    ---

    How an agent treats what it reads, pages, retries, sends and stops.

-   **[Reference](https://wawarden.dortort.dev/glossary/index.md)**

    ---

    The [glossary](https://wawarden.dortort.dev/glossary/index.md), the [internals](https://wawarden.dortort.dev/internals/index.md) and
    [observability](https://wawarden.dortort.dev/observability/index.md).

-   **[Project](https://wawarden.dortort.dev/project/contributing/index.md)**

    ---

    [Contributing](https://wawarden.dortort.dev/project/contributing/index.md), the [changelog](https://wawarden.dortort.dev/project/changelog/index.md),
    [releasing](https://wawarden.dortort.dev/project/releasing/index.md) and the [security policy](https://wawarden.dortort.dev/project/security-policy/index.md).

</div>

For AI agents: use [llms.txt](https://wawarden.dortort.dev/llms.txt) for a
Markdown index of every page, or load the
[WaWarden client skill](https://wawarden.dortort.dev/.well-known/agent-skills/wawarden-client/SKILL.md)
([discovery index](https://wawarden.dortort.dev/.well-known/agent-skills/index.json)).
