OpenFederation Whitepaper: A Personal Data Server & Federated Identity System
OpenFederation
Personal Data Server & Federated Identity System
White Paper
Version 3.2 - November 2026
What changed in 3.2 (15 November 2026). Releases 0.5.0 and 0.6.0 shipped after version 3.1. Pseudonyms are released, server-to-server migration works for accounts, pseudonyms and communities, and a person can hold their own identity keys (custody modes). The affected passages (§6.6, §6.9, §7.2, §8.4, §8.5, §11) keep their 3.1 text and carry a dated update below it. The rest of the paper is unchanged, except for release numbers: the project is numbered 0.x while it is in development, so the releases first published as 1.0.0 to 1.5.0 appear here as 0.1.0 to 0.6.0, in the same order. 1.0.0 will be the first release recommended for production use.
What changed in 3.1. This revision brings the paper in line with releases 0.2.0 to 0.4.0 and the unreleased pseudonym work on
main. New: pseudonyms (§8), forums, events and the contact graph (§5.3), verifiable governance decisions with an objection window (§5.4–5.5), private communities kept on their own server (§6.7), email verification (§6.8) and an honest account of who holds which keys (§6.9). Corrected: server-to-server migration is half done (§7.2), the Node.js requirement (§10.1), and the project's status, which is pre-production (§11, §12). Version 3.0 is dated March 2026.
Architecture, Identity, Governance, Deployment & Cross-Network Interoperability
Executive Summary
OpenFederation is a decentralised identity and community platform built on the AT Protocol. It provides every community, and every person, with a portable identity -- stored on a Personal Data Server (PDS) it controls -- together with structured membership, custom roles with granular permissions, verifiable attestations, cross-network identity bridging, and a modular governance layer. People can also publish under pseudonyms that the server cannot link to them, and reveal themselves later if they choose.
The project is pre-production. Two projects are being built on it, both in early development: Open Newsrooms, for independent journalists and small newsrooms, and Grvty, for sports clubs.
The system is designed around three principles: portability (a community may migrate its entire dataset to any compatible PDS without permission from the incumbent host), verifiability (every record is cryptographically signed and stored in a Merkle Search Tree, making the full history tamper-evident and auditable; §6.9 explains where that stops short of full independence from the server), and modularity (governance is decoupled from identity and can be upgraded -- from simple admin control to community voting to on-chain governance -- without touching the underlying data model).
This white paper covers the full technical stack: identity layer, data schemas, repository structure, application architecture, governance modes, security model, deployment options, cross-network interoperability, and the operational procedures communities need to maintain control of their data.
1. Introduction
1.1 The Problem
Traditional community platforms centralise identity and data. A community's membership list, roles, and history are held by the platform provider, which can restrict access, export data in proprietary formats, or shut down service without warning. There is no portable, machine-verifiable record of a community's existence that the community itself controls.
1.2 The Solution
OpenFederation gives each community a dedicated repository -- hosted on a PDS that the community chooses -- and a Decentralised Identifier (DID) that anchors its cryptographic identity. Because both the DID and the data repository are portable, the community is designed to move to a different PDS without losing its history (§7 describes how far this is implemented today).
The same model applies to individuals. Each person has their own DID and repository, and their posts, votes and RSVPs live in that repository rather than in the community's. A person can also hold one or more pseudonyms: separate accounts the server cannot link to them, which they can later prove are theirs (§8).
1.3 AT Protocol Foundation
The system is built on the AT Protocol (Authenticated Transfer Protocol), an open standard originally developed for the Bluesky social network. AT Protocol provides:
- A content-addressed, Merkle-tree repository format (CAR / blockstore)
- Standardised XRPC API methods for reading and writing records
- Two well-specified DID methods: did:plc and did:web
- A Lexicon schema system for defining custom record types under namespaced identifiers
OpenFederation extends AT Protocol with community-specific Lexicon schemas under the net.openfederation namespace, adds governance gating logic, and wraps everything in a deployment-ready server implementation.
1.4 Projects Building on OpenFederation
Two projects run on the same PDS described here. Both are in early development, and neither is in production yet.
- Open Newsrooms helps independent journalists and small newsrooms own their identity, their work and their audience without depending on any platform. It is the main driver for pseudonyms: a journalist who needs protection can publish under a name the server cannot trace to them, and prove authorship later.
- Grvty gives sports clubs and their members identity, roles, forums and events that the club owns.
The changelog reserves version 2.0 for the first release validated against a real downstream use case such as these.
2. Identity Layer
2.1 DID Method Selection
At the moment of community creation, the founding member selects one of two Decentralised Identifier methods. This choice is permanent for the life of the DID, though the PDS hosting the community's data can be changed at any time regardless of the method chosen.
| Aspect | did:plc (Default) | did:web (Optional) |
|--------|-------------------|-------------------|
| Identifier format | Cryptographic hash (e.g. did:plc:z72i7hdynmk6r22z27h6tvur) | Domain name (e.g. did:web:manutd.com) |
| Control mechanism | Rotation keys held by community | Domain name ownership |
| PDS portability | Fully portable; DID is permanent | Fully portable; DID is tied to domain |
| Trust model | Cryptography + PLC directory | DNS + domain owner security |
| Recovery options | OpenFederation secondary key (optional) | Community manages domain & server |
| Best suited for | New communities, maximum decentralisation | Established brands with strong domain control |
2.2 did:plc -- Cryptographic Identity
A did:plc identifier is derived from a cryptographic hash of its genesis operation. It is not tied to any domain or service, making it the most resilient option for long-term community identity.
Control of the DID is exercised through rotation keys. OpenFederation implements a hybrid key model with two tiers:
Primary Rotation Key (Community Control)
Generated during community creation and returned to the community. OpenFederation does not retain a copy. Possession of this key grants full, unilateral authority to migrate the PDS, update verification methods, or rotate to a new key set.
Secondary Rotation Key (OpenFederation Recovery)
OpenFederation holds a lower-priority secondary rotation key whose sole purpose is to assist in account recovery when a community has lost its primary key. The trust boundary is made explicit: the cryptographic protocol enforces ownership; OpenFederation enforces reduced misuse risk through operational controls:
- Multi-party approval for rotation operations (2-of-3 or equivalent)
- Hardware-backed key custody (HSM / KMS) with strict access policies
- Immutable audit logs and rotation event transparency
- Documented recovery ceremonies requiring explicit community consent
2.3 did:web -- Domain-Based Identity
A did:web identifier uses a domain name already controlled by the community. The DID document is hosted at a well-known URI on the community's web server:
https://manutd.com/.well-known/did.json
OpenFederation holds no keys for did:web communities and has no control over the identity. Migration is straightforward: update the atproto_pds service endpoint in the did.json file to point at the new PDS. The tradeoff is that the identity's security inherits whatever protections the community applies to its DNS and web infrastructure.
3. Data Model
3.1 Lexicon Namespaces
All community records are defined under the net.openfederation namespace, preventing conflicts with core AT Protocol schemas or future protocol extensions. Each record type maps to an XRPC-queryable collection within the community's repository.
| NSID | Purpose | Key Type | Cardinality |
|------|---------|----------|-------------|
| net.openfederation.community.profile | Public profile, display name, avatar, website | self | 1 per community |
| net.openfederation.community.settings | DID method, governance model, governance config | self | 1 per community |
| net.openfederation.community.member | Membership record binding a user DID to a role | tid | 1 per member |
| net.openfederation.community.role | Named role with associated permissions array | tid | 1 per role |
| net.openfederation.community.attestation | Verifiable claim about a member or community | tid | Variable |
| net.openfederation.community.proposal | Governance proposal for protected collection changes | tid | Variable |
| net.openfederation.community.delegation | Vote delegation record (proxy voting) | tid | 1 per delegator |
| net.openfederation.identity.externalKey | Cross-network identity key (Ed25519, X25519, etc.) | user-chosen | Variable |
3.2 Record Key Strategy
The choice of record key determines storage consistency and protocol compatibility. OpenFederation uses three key types:
self -- Singleton Records
Used for profile and settings collections. Exactly one record can exist under this key. Writes to an existing self record replace it in the repository commit graph.
tid -- Timestamp Identifier
Used for member, role, attestation, proposal, and delegation collections. A TID is timestamp-based, guarantees uniqueness, maintains chronological ordering, and avoids encoding issues that would occur if DIDs were used directly as keys.
user-chosen -- External Key Identifiers
Used for the identity.externalKey collection. Users choose meaningful identifiers like meshtastic-relay-1 or nostr-primary. Must be 1-512 characters, alphanumeric with hyphens.
3.3 Core Schema Highlights
Profile
Contains displayName (required, max 64 chars), optional description (max 256 chars), blob fields for avatar (max 1 MB) and banner (max 3 MB), an optional website URI, and a createdAt timestamp.
Member
Links a member DID (did format) to a role reference (the rkey / tid of a role record), with a joinedAt timestamp. The roleRkey field is a reference rather than an embedded object, ensuring that role metadata is updated in one place.
Role
Defines a named role with an optional description and a permissions array of strings. Permissions follow the pattern community.<collection-short>.<action> (e.g., community.attestation.write, community.member.delete). The owner role is a regular role record with all permissions; it cannot have community.role.write or community.settings.write removed (lockout protection). Default roles (owner, moderator, member) are created during community creation. Communities can create custom roles with arbitrary permission sets.
Attestation
A verifiable claim with a subject DID, a type string (membership, role, or credential), an untyped claim object, an issuedAt timestamp, and an optional expiresAt timestamp. Revocation is performed by deleting the attestation record. The signed MST deletion commit serves as cryptographic proof of revocation. The audit log captures who revoked the attestation, when, and the reason.
Settings
Stores the immutable didMethod selection (plc or web) and the mutable governanceModel (benevolent-dictator, simple-majority, or on-chain), plus a governanceConfig object for model-specific parameters such as quorum, voter role, proposal TTL, protected collections list, and blockchain contract address.
Proposal
A governance proposal targeting a protected collection. Contains the target collection and rkey, the proposed action (write or delete), the proposed record content, the proposer's DID, vote arrays (votesFor, votesAgainst), status (open, approved, rejected, expired), timestamps, and an amendments array preserving the full amendment history.
External Key
An auxiliary cryptographic public key for cross-network identity bridging. Contains a key type (ed25519, x25519, secp256k1, p256), a purpose string (meshtastic, nostr, wireguard, ssh, device, etc.), the public key in did:key multibase format, and an optional human-readable label. Trust derives from the ATProto repo signing chain -- no cross-algorithm signatures needed.
4. Repository Structure
4.1 AT Protocol Repository Semantics
A community's entire dataset lives in a single AT Protocol repository, identified by its DID. The repository is an append-only Merkle Search Tree (MST) persisted as content-addressed blocks (CAR / blockstore format). SQL indexes may be maintained for fast lookup, but they are derived views; the blockstore is the authoritative source of truth.
Because the repository is content-addressed and every commit is deterministically derived from its contents, the full history is independently verifiable by any party holding the CAR file. This makes the data truly portable: importing a CAR file into a new PDS produces bit-identical blocks.
4.2 Collection Layout
Records are addressed using the path format <collection_nsid>/<record_key>. A representative repository looks like this:
/net.openfederation.community.profile/self
/net.openfederation.community.settings/self
/net.openfederation.community.role/3k-abc-123...
/net.openfederation.community.role/3k-def-456...
/net.openfederation.community.member/3k-ghi-789...
/net.openfederation.community.member/3k-jkl-012...
/net.openfederation.community.attestation/3k-pqr-678...
/net.openfederation.community.proposal/3k-stu-901...
/net.openfederation.community.delegation/3k-vwx-234...
4.3 Append-Only Discipline
Direct record deletion is used only for revocation (attestations) and cleanup operations. The preferred patterns are:
- Revocation: delete the attestation record. The signed MST commit is cryptographic proof of revocation. The audit log preserves the reason.
- Role changes: update the member record's roleRkey reference to point to a different role record.
- Settings changes: overwrite the self-keyed settings record (replacement is the intended use for singleton records).
Governance layers additionally restrict which actors can write to protected collections, enforcing that changes only happen via the approved path (e.g., proposal voting in simple-majority mode, or the Oracle service in on-chain governance mode).
5. Technical Architecture
5.1 Component Overview
The OpenFederation PDS is a specialised AT Protocol implementation composed of four primary layers:
| Component | Responsibility |
|-----------|---------------|
| XRPC Server | Public-facing API endpoint exposing standard com.atproto.* methods and all net.openfederation.* custom methods (70+ endpoints) |
| Repository Engine | Manages the community's MST, signs commits, persists blockstore, maintains SQL indexes for fast lookup |
| Identity Manager | Handles DID creation ceremonies, hybrid key storage for did:plc, guided setup instructions for did:web |
| Blob Store | Stores binary assets (avatars, banners) referenced by profile records. Dual-backend: local filesystem or S3-compatible storage |
5.2 Identity Manager -- Dual DID Support
The Identity Manager is the component most significantly extended from a stock AT Protocol PDS. For did:plc communities it orchestrates the key generation ceremony, stores the secondary recovery key in encrypted form (AES-256-GCM), and returns the primary rotation key to the community. For did:web communities it generates the required did.json document and provides DNS configuration instructions -- but holds no keys at all.
5.3 Application Layer
Applications interact with the PDS exclusively through XRPC calls. Multiple clients are provided:
Web Dashboard (Admin UI)
A Next.js 15 application (shadcn/ui, React Query v5, Zustand, kbar) that gives administrators a graphical interface for community management, user approval, invite generation, audit log inspection, and moderation actions.
Command-Line Interface (ofc)
A comprehensive CLI with 65+ commands covering authentication, server management, community operations, attestations, external identity keys, roles, governance proposals/voting, profiles, partner keys, and audit logs. Supports both human-readable and JSON output for scripting.
JavaScript SDK (@open-federation/sdk)
A zero-dependency browser library (2.5KB gzipped) for third-party application integration. Supports registration, login, session management, auto-refresh tokens, and ATProto OAuth redirect. Available as an IIFE bundle served by the PDS at /sdk/v1.js and via npm.
React Package (@open-federation/react)
React bindings for the SDK, validated with a downstream consumer in 0.4.0.
Pseudonym Library (@open-federation/pseudonym)
Client-side library for creating, unlocking and revealing pseudonyms (§8). It requires Node.js 24 or a modern browser.
Community Forums and Events
Forum threads and posts (net.openfederation.forum.*) are records in the author's repository, not the community's, so a member's contributions travel with them. Calendar events (community.lexicon.calendar.event) live in the community repository and RSVPs in the attendee's. The PDS keeps a search index built from these records and can rebuild it from the repositories at any time. Moderators can hide posts and threads under a dedicated community.forum.moderate permission; hiding never deletes the author's record.
Contact Graph
Two-way contact relationships with explicit consent (net.openfederation.contact.*): send, accept or reject a request, remove a contact, and list incoming and outgoing requests.
Federated Service Bridges
External services such as Matrix can be integrated through a bridge service that polls the PDS for membership changes and updates their internal permission systems accordingly. A reference Matrix bridge implementation (bridges/matrix/) supports three deployment modes:
- Public Matrix: Users link existing Matrix IDs via their PDS profile
- Self-hosted: Bridge auto-provisions Matrix accounts from PDS handles via the homeserver admin API
- Partner-hosted: A partner operates Matrix infrastructure for multiple communities, eliminating per-community ops burden
The bridge syncs membership and roles (mapped to Matrix power levels) from the PDS to Matrix Spaces. Channel structure and per-channel permissions remain Matrix-native. One-way sync: PDS is source of truth.
Cross-Network Identity Bridge
The net.openfederation.identity.externalKey collection enables cross-network identity bridging without any AT Protocol changes. Users store auxiliary cryptographic public keys in their ATProto repo (Ed25519, X25519, secp256k1, P256 in did:key multibase format). External systems read these keys to derive network-specific identities:
- Meshtastic:
SHA-256(Ed25519_pubkey)[:16]mesh identity hash - Nostr: secp256k1 key converted to npub
- WireGuard: X25519 peer public key for tunnel config
- SSH: Ed25519 authorized key
- Hardware devices: device attestation and authentication
A reverse-lookup endpoint (resolveByKey) allows bridge services to resolve any external public key back to its ATProto identity.
5.4 Governance Layer
The governance layer is entirely optional and defined by the governanceModel field in the community settings record. Three models are supported:
| Model | Write Authority | Trust Placed In | Upgrade Path |
|-------|----------------|-----------------|-------------|
| benevolent-dictator (default) | Permission-based (role permissions determine who can write) | Community admin(s) | Can upgrade to simple-majority or on-chain at any time |
| simple-majority | Proposals require majority vote from designated voter-role members | Community process | Can upgrade to on-chain |
| on-chain | As simple-majority, with each decision also anchored to a blockchain | Voter-signed records; the chain witnesses decisions but does not make them | Leaving the model takes a proposal and a vote |
Governance enforcement intercepts all writes to protected collections. Protected collections are configurable per-community via governanceConfig.protectedCollections. Default: settings, role, member, profile, attestation. community.settings and community.role are always protected (cannot be removed) to prevent governance bypass.
In simple-majority mode:
- Any member with the
community.governance.writepermission can create proposals targeting protected collections - The proposer auto-casts a "for" vote. Other voter-role members vote for or against
- Every counted vote is a
net.openfederation.governance.voterecord in the voter's own repository, signed with the voter's key. Accounts without a repository cannot vote - When the vote count reaches the configured quorum and a majority exists, the proposal passes and waits out a timelock (
governanceConfig.timelockHours, default 24 hours) before it is applied - During the timelock any eligible member can object with a signed
governance.objectionrecord. OnceobjectionThresholdobjections stand (default 1), the change is held and the same electorate votes once more against a higher bar. Clearing that bar applies the change; otherwise the objection stands - Each resolved proposal writes a
governance.decisionrecord citing the proposal, every counted vote and the rule applied. Anyone can recheck it offline withofc governance verify-decision, using only CAR exports and DID documents - Changing the governance model is itself a governed change and needs a proposal under simple-majority or on-chain
- Proposals can be amended (resets votes, extends expiration, preserves full amendment history)
- Vote delegation (proxy voting) is supported: members can delegate their vote to another voter-role member. Direct votes override delegations
5.5 On-Chain Governance Data Flow
Version 3.0 described a model in which votes were cast on a smart contract and an Oracle relayed the result to the PDS. Release 0.4.0 replaced it. Decisions are now made from voter-signed records exactly as in simple-majority (§5.4). Where a community uses a chain, the chain acts as a notary: it witnesses that a decision was made, and no outcome depends on reading it.
Direct writes to protected collections are rejected under on-chain mode, as under simple-majority.
Implementation status: an EVM adapter, Oracle credentials and proof endpoints are built as an optional module (src/modules/chain/) that the core server never imports. They have not been exercised against a real chain.
Known limit: decision verification proves that records are tamper-evident and publicly consistent. While the PDS holds its users' signing keys (§6.9), it does not prove independence from that PDS. Voter eligibility at the time of the vote is not yet checked online or offline.
6. Security Model
6.1 Authentication and Session Management
The PDS issues short-lived JWT access tokens with configurable TTL and longer-lived refresh tokens. Refresh token rotation is implemented with reuse detection: presenting a previously-rotated refresh token invalidates the entire session, providing protection against token theft.
ATProto OAuth 2.0 is supported as an authorization server (PAR, DPoP, PKCE) and as a client for "Sign in with ATProto" external user login.
6.2 Key Management at Rest
Recovery keys and signing keys are encrypted at rest using AES-256-GCM, keyed with the KEY_ENCRYPTION_SECRET environment variable. The primary rotation key for did:plc communities is returned to the community at creation time and never stored by the server thereafter. Communities are solely responsible for backing up this key.
6.3 Account and Community Lifecycle
All registration, approval, moderation, and security-relevant actions are written to an immutable audit log. The account status lifecycle provides seven states: pending, approved, rejected, disabled, suspended, takendown, and deactivated. The AT Protocol composable moderation model is implemented with two community states: suspended (reversible, community data remains readable by the owner for export) and taken-down (requires a prior export to have been performed).
6.4 Password and Handle Policy
Passwords must be 10-128 characters and satisfy at least three of four complexity categories (lowercase, uppercase, digit, special character). Handles must be 3-30 characters consisting of lowercase letters, numbers, and hyphens, with no leading or trailing hyphens and no consecutive hyphens. A reserved-names list blocks handles such as admin, root, and system.
6.5 Rate Limiting
| Scope | Limit |
|-------|-------|
| Global | 120 requests / minute per IP |
| Authentication | 20 attempts per 15 minutes per IP |
| Registration | 5 per hour per IP |
| Community creation | 10 per hour per IP |
| Discovery (public read endpoints) | 60 per minute per IP |
All limits except discovery are configurable. New pseudonyms also go through a probation period, by default 20 writes a day for their first 7 days (§8.5).
6.6 AT Protocol 'Free to Go' Principle
The PDS enforces the AT Protocol portability guarantee. Community owners can always export their full repository as a CAR archive via com.atproto.sync.getRepo or net.openfederation.community.export. Suspended communities remain readable for export. Takedown requires a prior export to have been performed. A transfer endpoint that packages a community for another PDS is registered but not yet usable (§7.2).
Update, 15 November 2026: since release 0.6.0 a takedown no longer requires a prior export. A standard takedown hides the community or account at once and emails the owner a private link to download the repository and its files, valid for 30 days. The transfer endpoint was removed in 0.5.0; a community now moves with community.migrateIn (§7.2).
Automated scheduled exports with configurable intervals (daily/weekly/monthly) and retention policies are supported via the export scheduler. Snapshots are stored in blob storage (local or S3) with integrity verification.
6.7 Private Communities Stay on Their Own Server
Private communities do not federate (ADR-001). Their existence and handle are public, because a did:plc identity is listed in the public PLC directory, but nothing beyond that leaves the PDS. Repository and sync endpoints, member lists, forum and calendar reads, the ActivityPub actor and WebFinger all hide a private community's content from anyone who is not a member. Any future firehose or relay surface must exclude private DIDs. A list of trusted peer servers is the planned way to share them later.
6.8 Email Verification
Registration sends a single-use link that expires after 24 hours. The operator chooses how strict to be with EMAIL_VERIFICATION_POLICY: off, advisory (the default, which only reports status), require-for-write, or require-for-login. Production servers must configure SMTP, or set ALLOW_NO_EMAIL=true explicitly, before they will start. Pseudonyms have no email address and never use these flows.
6.9 Who Holds Which Keys
This section states plainly what the server can and cannot do today.
- Communities. For
did:plccommunities, the primary rotation key is returned once at creation and not stored; the PDS keeps only an encrypted secondary recovery key. Adid:webcommunity holds all of its own keys. - User accounts. Each account's rotation key is split three ways, but the PDS currently holds enough of the pieces to rebuild it on its own, and the "self-custodial" recovery tier is a label that does not yet remove them (issue #239). In practice the server operator could act on a user's behalf.
- Pseudonyms. A pseudonym's own key comes from twelve words that only its owner holds (§8). The link back to the owner's main account, however, is signed with that main account's key, which the PDS holds.
Accounts whose keys only the person holds are being designed (issues #238 and #242). Until they ship, signatures prove a record is unchanged, not that the server could not have produced it.
Update, 15 November 2026: release 0.6.0 added custody modes (ADR-003). Every account is custodial (the PDS holds the rotation key, as described above), assisted (the person's key is listed first and the PDS's second, so the person can cancel anything the PDS signs within 72 hours) or self (only the person's key). The old tiers are renamed to say what they are, all custodial: custodial, escrow-recorded, key-exported. A record can carry ownerSig, a signature by the person's own key that the PDS cannot produce, and a pseudonym reveal signed that way is reported as signed by the person. The repository signing key still sits on the PDS in every mode. Device signing, which moves it to the person's device so the server cannot write as them, is built, switched on from the dashboard, and runs on our servers (issue #240).
7. Migration and Portability
7.1 Exporting a Community
Any community owner or admin can request a full export at any time using the net.openfederation.community.export endpoint (or the standard com.atproto.sync.getRepo method). The result is a CAR file containing every block in the repository's commit graph -- a complete, self-contained, verifiable snapshot of the community's data.
7.2 Migrating to a New PDS
The migration process is four steps, independent of the DID method:
- Export the repository from the current PDS as a CAR file
- Import the CAR file into the destination PDS via
net.openfederation.admin.importRepo - Update the DID document's atproto_pds service endpoint: - For did:plc: sign a PLC update operation with the primary rotation key - For did:web: edit the did.json file on the community's domain server
- Verify that the DID now resolves to the new PDS
Implementation status: this flow is half done. Export works, and the new server can load the backup, but it can't yet open the account or community there so it can be used. Since October 2026 admin.importRepo restores a CAR correctly: it walks the imported tree to index records and refuses a CAR whose commit belongs to a different DID. Still missing: a working community.transfer endpoint, verification of the imported commit's signature, registering the arrived account or community on the new server, and end-to-end tests across two servers. Pseudonyms can already sign the identity update that points them at a new PDS with their own key (§8.4); opening the account on the new server is tracked in issue #250.
Update, 15 November 2026: this flow works since release 0.5.0, with the standard AT Protocol endpoints. An account or pseudonym is opened on the new server with com.atproto.server.createAccount for its existing DID and stays deactivated; com.atproto.repo.importRepo verifies the CAR against the DID's current signing key and stores it in one transaction; blobs are copied; and activateAccount switches the account on only once the DID points at the new server. A pseudonym proves control with its own rotation key. A custodial user account needs the old PDS to sign the identity update, after an emailed code and the password. A community moves with net.openfederation.community.migrateIn, proven by the owner's primary rotation key (ADR-002). Each server decides what may move in (MIGRATION_ACCOUNTS, MIGRATION_PSEUDONYMS, MIGRATION_COMMUNITIES). community.transfer was removed. All three flows are covered by end-to-end tests between two servers; none has yet run between servers of different organisations. Not built: a self account moving into another OpenFederation PDS when the old one refuses to help (issue #382).
7.3 PDS Failure Recovery
If the current PDS becomes unreachable, the community DID continues to exist and may still resolve (particularly for did:plc). Recovery requires:
- A previously exported CAR snapshot (communities should export regularly, or use the automated export scheduler)
- Control of the primary rotation key (or engagement of the OpenFederation recovery process for secondary-key-assisted recovery in the did:plc case)
The destination PDS must support both com.atproto.sync.getRepo for export and the net.openfederation.admin.importRepo endpoint for restoring a repository from a CAR file.
8. Pseudonyms
8.1 What a Pseudonym Is
A pseudonym is a separate account a person can publish under. To everyone else, including the server that hosts it, it is an ordinary did:plc account with its own repository. The server cannot link it to the person who created it. The owner can later prove that the pseudonym is theirs, and nobody else can make that claim.
8.2 Creating One Without Being Traced
A logged-in, approved user collects a batch of single-use tokens each month. The tokens are blind-signed (RSA blind signatures, RFC 9474): the server signs them without seeing them, so when one is later spent to create a pseudonym the server can check it is valid but cannot tell whose it was. The monthly allowance is the only per-person limit. What matters is that tokens arrive on a regular schedule and are capped; the right cap is not settled yet. The code currently defaults to 20 a month (PSEUDONYM_TOKENS_PER_EPOCH), which operators can change.
The server keeps no audit entries for pseudonyms and records no timestamps for issuing or redeeming tokens, reserving keys, or login challenges.
8.3 Signing In
The pseudonym's key is derived from a twelve-word phrase that only the owner holds. The owner signs in by signing a challenge from the server with it; email, password and recovery flows are refused. On their own device, the owner can unlock the phrase with a passkey such as Face ID or Touch ID instead of typing it. The phrase is encrypted with a key derived from the passkey and never reaches the server.
8.4 Moving to Another Server
The pseudonym's identity is controlled by a key derived from the owner's twelve words, not by the server. The owner can therefore sign an identity update that points the pseudonym at a new PDS, keeping its DID and handle, without the old server's cooperation. The client library can build and sign this update today; its repository still has to be carried across separately. Opening the account on the destination server is still to be built (issue #250).
Update, 15 November 2026: built and released in 0.5.0. moveAccount in @open-federation/pseudonym runs the whole move and refuses to change the DID until the new server holds the exported repository and every blob. Moving a pseudonym straight back used to fail unless it wrote something on the new server in between (issue #422); this is fixed.
8.5 Revealing the Owner
The owner can reveal themselves in three ways:
- Publicly, with a link record written to both the pseudonym's and the owner's repositories.
- Privately, with a file given to one person.
- In person, by proving ownership of the pseudonym's key on the spot: someone present picks a random word, the owner signs it with the key derived from the twelve words, and anyone checks the signature against the pseudonym's public key in the PLC directory. Because the word could not be known in advance, a valid signature can only come from someone holding the key at that moment.
The CLI includes the tooling to check reveals: ofc pseudonym verify, presence-challenge and verify-presence. They can run offline, with the limits described in §8.6. A simple tool for people who don't use a command line is planned.
Update, 15 November 2026: built and released: a public /verify page in the dashboard checks a reveal from a link, a QR code or a file.
Abuse control. New pseudonyms are on probation, by default 20 writes a day for 7 days (PSEUDONYM_PROBATION_DAYS, PSEUDONYM_PROBATION_DAILY_WRITES). After that, abuse is handled per pseudonym through normal moderation.
8.6 Known Limits
- A public or private reveal proves the owner's server signed it, not that the owner agreed. The owner's main-account key is held by the PDS (§6.9), so a malicious operator could produce a valid-looking reveal. An in-person reveal depends only on the twelve words. Accounts whose keys only the person holds would close this gap.
- An offline check is incomplete. Without looking up the owner's DID online, the verifier cannot confirm the owner's key, and says so (exit code 2).
- A pseudonym's identity record marks it as an OpenFederation pseudonym. Giving every new account a decoy marker is a planned follow-up. Update, 15 November 2026: no longer planned. This is a deliberate choice: a pseudonym is openly a pseudonym, and what the design protects is who is behind it (blind passes, the sealed commitment, separate keys).
- Logs outside the PDS kept by a hosting provider, reverse proxy or CDN are the operator's responsibility.
- Lost tokens (for example after reinstalling an app) are replaced only the following month.
9. API Reference
All endpoints are XRPC methods served at /xrpc/{nsid}. Formal Lexicon definitions are in src/lexicon/. The table below lists the major endpoint groups.
| Group | Key Methods | Auth Required |
|-------|-------------|---------------|
| AT Protocol Sessions | createSession, refreshSession, getSession, deleteSession | No (create/get), Yes (others) |
| Account Management | register, listPending, list, approve, reject, updateRoles, changePassword, export | None (register); Admin / Mod (management) |
| Invite Codes | invite.create, invite.list | Admin / Mod |
| Community -- Core | create, get, listAll, listMine, update, delete | Approved user or Owner |
| Community -- Membership | join, leave, listMembers, listJoinRequests, resolveJoinRequest, removeMember, updateMemberRole | Approved user or Member |
| Community -- Roles | createRole, updateRole, deleteRole, listRoles | Owner (write); Public (read) |
| Community -- Attestations | issueAttestation, deleteAttestation, listAttestations, verifyAttestation | Owner/Mod (write); Public (read, supports remote PDS) |
| Community -- Governance | setGovernanceModel, createProposal, amendProposal, voteOnProposal, objectToProposal, listProposals, getProposal | Proposal (model change); Voter role (proposals, objections) |
| Community -- Delegation | setDelegation, revokeDelegation, getDelegation | Voter role (write); Public (read) |
| Community -- Moderation | suspend, unsuspend, takedown | PDS Admin |
| Community -- Portability | export, transfer | Owner / Admin |
| Forum | createThread, createPost, getThread, listThreads, deletePost, hidePost, hideThread | Member (write); Moderator (hide); Member or public (read) |
| Calendar | calendar.createEvent, listEvents, rsvp, listRsvps | Member (write); Member or public (read) |
| Contacts | contact.sendRequest, respondToRequest, removeContact, list, listIncomingRequests, listOutgoingRequests | Yes |
| Pseudonyms | pseudonym.getTokenKeys, collectTokens, createAccount, getLoginChallenge, createSession, signLink; server.reserveSigningKey | Approved user (collectTokens); Yes (signLink); none (token keys, anonymous creation, phrase login) |
| Email | server.confirmEmail, requestEmailConfirmation | Token (confirm); Yes (resend) |
| Identity Bridge | setExternalKey, listExternalKeys, getExternalKey, deleteExternalKey, resolveByKey | Yes (write); Public (read) |
| User Profiles | updateProfile, getProfile | Yes (write); Public (read) |
| Partner API | partner.register, partner.createKey, partner.listKeys, partner.revokeKey | X-Partner-Key (register); Admin (key management) |
| Repository Operations | getRecord, putRecord, createRecord, deleteRecord, describeRepo, listRecords, uploadBlob, sync.getBlob | Varies |
| Federation | sync.getRepo, admin.importRepo | Public (export); Admin (import) |
| Export Scheduler | admin.createExportSchedule, listExportSchedules, deleteExportSchedule, listExportSnapshots | PDS Admin |
| Administration | audit.list, server.getConfig | PDS Admin |
9.1 Example: Create a Community
curl -X POST http://localhost:8080/xrpc/net.openfederation.community.create \
-H "Authorization: Bearer <accessJwt>" \
-H "Content-Type: application/json" \
-d '{"handle":"my-community","didMethod":"plc","displayName":"My Community"}'
9.2 Example: Export a Community
curl "http://localhost:8080/xrpc/com.atproto.sync.getRepo?did=did:plc:abc123" \
-H "Authorization: Bearer <accessJwt>" \
--output community.car
10. Deployment
10.1 Prerequisites
The PDS requires Node.js 22, 23 or 24 and PostgreSQL 15+. The pseudonym library requires Node.js 24. It is not suitable for serverless platforms (Vercel, Netlify Functions) because it requires persistent database connections and long-running processes. Recommended hosting options are Railway, Render, Fly.io, or any VPS / containerised environment.
10.2 Required Environment Variables
| Variable | Required In | Description |
|----------|------------|-------------|
| AUTH_JWT_SECRET | Production | Random string, minimum 32 characters. Server refuses to start without it. |
| KEY_ENCRYPTION_SECRET | Production | Encrypts recovery / signing keys at rest. Must be set before creating communities. |
| DB_HOST / DB_PORT / DB_NAME / DB_USER / DB_PASSWORD | All | PostgreSQL connection parameters. |
| DB_SSL | Production | Set to true to enable SSL connections to PostgreSQL. |
| CORS_ORIGINS | Production | Web UI URL (e.g. https://your-web-ui.up.railway.app). |
| PDS_HOSTNAME / PDS_SERVICE_URL | All | Publicly reachable hostname and full HTTPS URL of the PDS. |
| INVITE_REQUIRED | All | true (default) enforces invite-only registration. |
| BOOTSTRAP_ADMIN_EMAIL / HANDLE / PASSWORD | First run | Creates an admin account on startup; remove after verified. |
| BLOB_STORAGE | All | `local` (default) or `s3` for S3-compatible storage. |
| BLOB_S3_BUCKET / BLOB_S3_REGION / BLOB_S3_ENDPOINT | If s3 | S3 bucket configuration. |
| EXPORT_SCHEDULER_ENABLED | Production | Set to `true` to enable automated community backups. |
| SMTP_HOST (and related SMTP settings) | Production | Required for email delivery. Without it, production refuses to start unless `ALLOW_NO_EMAIL=true`. |
| EMAIL_VERIFICATION_POLICY | All | `off`, `advisory` (default), `require-for-write` or `require-for-login`. |
| PSEUDONYM_TOKENS_PER_EPOCH | All | Pseudonym tokens per approved user per month (default 20, a placeholder until the right limit is settled). |
| PSEUDONYM_PROBATION_DAYS / PSEUDONYM_PROBATION_DAILY_WRITES | All | Probation for new pseudonyms (default 7 days, 20 writes a day; `0` days disables). |
10.3 Docker Compose Quick Start
The recommended path for self-hosted deployment is Docker Compose with two services: postgres (postgres:15-alpine) and pds (node:22-alpine). The schema is initialised from src/db/schema.sql at first boot. When upgrading an existing database, run the migration scripts in scripts/ by hand (see DEPLOYMENT.md); the schema file only runs on an empty database.
10.4 Railway Deployment
For faster deployment, we recommend Railway for managed deployment targets. The project deploys as three services from the same repository: the PDS API (Express.js, root directory), the Web UI (Next.js, web-interface/ directory), and the PLC Directory. Railway handles TLS termination and port assignment automatically. Full instructions are in RAILWAY.md.
10.5 Production Checklist
- Set strong DB_PASSWORD (Railway auto-generates)
- Set AUTH_JWT_SECRET and KEY_ENCRYPTION_SECRET (64-character random hex each)
- Configure PDS_HOSTNAME, PDS_SERVICE_URL, and CORS_ORIGINS
- Initialise database schema (npm run db:init or scripts/init-db.sh)
- Configure bootstrap admin and verify login
- Set up SSL / TLS (Railway provides free SSL)
- Configure PostgreSQL backups
- Enable export scheduler for automated community backups
- Set up monitoring and alerting
- Configure SMTP and choose an email verification policy
- If you host pseudonyms, make sure your hosting provider, proxy and CDN do not keep request logs that could identify them
- Remove BOOTSTRAP_ADMIN_* variables after first login
10.6 Health Check
After deployment, verify the application is running with GET /health. A healthy response includes status: ok and database: connected with a UTC timestamp.
11. Implementation Status
Phase 1 -- Core PDS & DID Choice: COMPLETE
Community creation with did:plc / did:web selection, secure key generation and storage, guided did:web setup, real MST repository engine, ATProto repo endpoints, CAR export/import, blob storage (local + S3), Docker Compose, auto-schema migration, PLC directory service, partner registration API, JavaScript SDK, Web Dashboard, CLI.
Phase 2 -- Governance Layer: COMPLETE (except on-chain)
Custom roles with 12 granular permissions, permission-based authorization guards, governance enforcement with configurable per-collection protection, benevolent-dictator mode, simple-majority mode with proposals/voting/auto-commit, proposal amendments with history, vote delegation (proxy voting), governance model switching. On-chain mode enforcement is built (PDS rejects writes), but Oracle service and smart contract infrastructure are deferred.
Phase 3 -- Federation & Interoperability: PARTLY COMPLETE
Cross-PDS attestation verification with remote DID resolution. Cross-network identity bridge for Meshtastic, Nostr, WireGuard, SSH, and hardware devices. Reference Matrix bridge with three deployment modes (public, self-hosted, partner-hosted). ActivityPub identity layer with nodeinfo and actor endpoints, not yet tested against a live external network; forum and event content stays on the PDS. Lexicon schema publication pending schema stabilisation. Server-to-server migration is half done: export and loading a backup work, opening the account on the new server does not yet (§7.2). Update, 15 November 2026: migration is complete since release 0.5.0 (§7.2).
Phase 4 -- Ecosystem & Tooling: COMPLETE
Comprehensive CLI (65+ commands across 12 command groups). Scheduled snapshot exports with configurable intervals and retention policies. JavaScript SDK with full documentation. Partner API for third-party integration.
Phase 5 -- Community Features and Hardening (0.2.0 to 0.4.0): COMPLETE
Contact graph (0.2.0). Community forums, calendar events and RSVPs, with moderation permissions (0.3.0). Profile pictures and banners via sync.getBlob, email verification, private communities kept on their own server, verifiable governance decisions with a timelock and objection round, React package, and a security audit that closed more than 40 issues (0.4.0, August 2026).
Phase 6 -- Pseudonyms: RELEASED IN 0.5.0
Anonymous creation with blind tokens, twelve-word sign-in, passkey unlock, signing a move to another server with the pseudonym's own key, three ways to reveal, offline verification and probation. On main, not yet in a tagged release. Update, 15 November 2026: released in 0.5.0 on 11 November 2026, together with the finished move to another server.
Remaining
- Accounts whose keys only the person holds, so no server operator can post as them (#238, #242), and honest custody tiers (#239)
- Complete server-to-server migration for communities, accounts and pseudonyms (§7.2, #250)
- Validation of built but untested features: ActivityPub federation against a live network, the chain module against a real chain, and key recovery end to end
Update, 15 November 2026: the first two items are done. Custody modes shipped in 0.6.0 and migration in 0.5.0 (§6.9, §7.2). Of the third: ActivityPub discovery is checked with Fedify and against Mastodon's rules in tests, but not yet fetched by a running Mastodon server; the chain module is tested against a local Ethereum node, not a public chain; the key-recovery round trip is tested. Remaining now: federation is built and works between our own servers, but no independent organisation runs a server yet, and the PDS has no firehose for AT Protocol relays to follow. Device signing now covers the features that write for a person (profile, contacts, forum, RSVPs, votes) and is switched on from the dashboard, and a self or assisted account can move into another server without the old server's help (ADR-004). Both are released and run on our servers.
- Verifying voter eligibility in governance decisions
- Lexicon schema public registry
- Cross-platform community import (Discord, Slack), cross-server discovery and timelines
12. Conclusion
OpenFederation is a pre-production foundation for community and personal identity that is portable by design, tamper-evident, and incrementally governable without migration penalties. Several of its guarantees are still being completed, and §6.9 and §11 say which. Communities start with a simple administrative model and graduate to community voting or decentralised on-chain governance as their needs evolve -- all without changing their DID or moving their data unless they choose to.
By building on the AT Protocol's open standards, OpenFederation ensures long-term compatibility with the broader federated ecosystem and avoids platform lock-in at every level of the stack. The hybrid key model for did:plc gives communities true ownership of their identity while preserving a recovery path -- a balance that pure self-sovereign systems typically sacrifice for the sake of decentralisation.
The cross-network identity bridge enables communities to span multiple protocols -- ATProto for identity, Matrix for communication, Meshtastic for mesh networking, Nostr for announcements -- all anchored to a single, verifiable cryptographic identity. This is not protocol convergence; it is protocol coexistence with a shared identity layer.
Pseudonyms extend the same idea to people who cannot safely publish under their own name: an identity the server cannot trace, controlled by words only its owner holds, that can be revealed on the owner's terms.
The goal is a system in which communities and people own their data, control their governance, bridge their identities across networks, and keep the right to leave. Open Newsrooms and Grvty are the first projects testing that goal in practice.
2026 OpenFederation - Version 3.2
Follow the work
Occasional, meaningful updates only.