Docs · v0.2.0

Technical documentation

For the people who build on Kodera, deploy it and audit it: how it is put together, what each mode protects, and what is not shipped yet.

  • OIDC · PKCE S256
  • WebAuthn
  • Matrix
  • LiveKit SFU
  • OpenMLS · RFC 9420
  • SFrame v1
  • HMAC-SHA256
  • Ed25519

01Concepts

Overview & topology

Kodera is an open-core collaboration suite: one codebase, run on your own server or hosted in the EU. Four ways to run it, one chain of authority in each.

At a glance

Repository
kodera-hq/kodera, an open-core monorepo: web, desktop, iOS and Android clients, the server, the Synapse policy module, the SDK and the self-host profile.
Licences
Clients, SDK and self-host profile under Apache-2.0; server and Synapse policy module under AGPL-3.0-or-later; Enterprise Edition under a separate commercial licence.
Managed hosting
In the EU (Scaleway, Paris).
API contracts
Core API 0.61.0 and Agent API 0.11.0, published as OpenAPI.

Latest release and checksums on GitHub

Four ways to run it

You operate it

Community Self-Host

Identity
Your own OIDC issuer; the stack ships none
Runtime
One node, Docker Compose
Data
Your servers

Hosted · shared

Kodera Community

Identity
Shared realm
Runtime
One shared public workspace
Data
In the EU (Scaleway, Paris)

Hosted · multi-organisation

Collaborative Cloud

Identity
Shared realm, scoped per organisation
Runtime
Shared instance, strict per-seat quotas
Data
In the EU (Scaleway, Paris)

Hosted · single tenant

Dedicated Sovereign Instance

Identity
Dedicated realm
Runtime
A dedicated tenant, one organisation
Data
In the EU (Scaleway, Paris)

02Concepts

Identity & control plane

Identity proves who signs in. The relational control plane decides who may read or post, and where. Matrix, LiveKit and Docs converge to that decision, never the reverse.

One chain of authority

Schematic: Keycloak signs a person in, the Core API and PostgreSQL decide, the tenant agent pulls that decision, then Synapse, LiveKit and Docs converge to it.KeycloakCore APIPostgreSQLtenant_agentSynapseLiveKit SFUDocs · YjsOIDC · PKCE S256Agent API · pullconverge
Authority flows one way: nothing below the control plane grants an access it did not decide.

The three layers

  1. L1

    Identity

    Keycloak 26.8.2

    Proves who signs in; authorisation lives one layer down.

    • ES256 WebAuthn passkeys and hardware keys
    • OIDC with PKCE (S256)
    • Kodera Passport sessions across workspaces
    • A dedicated realm per Sovereign instance
    • An org-scoped shared realm on the Collaborative Cloud
  2. L2

    Relational control plane

    Core API 0.61.0 · PostgreSQL · Agent API 0.11.0

    The single source of truth for who may read or post, and where.

    • Roles, custom roles and per-resource policies
    • One authority_revision per organisation
    • Transactional quotas
    • Four least-privilege database roles
    • Factur-X invoices and credit notes (EN 16931, 380 / 381)
  3. L3

    Convergent projections

    Matrix Synapse · LiveKit · Docs · S3

    Converge to what the control plane decided, never the reverse.

    • kodera-synapse-policy 0.1.8 enforces the rules inside Synapse
    • tenant_agent pulls and converges room membership
    • room_access mints short-lived LiveKit SFU tokens, its secret isolated
    • Real-time collaborative Docs
    • Checksum-bound media in S3 object storage, in Paris when hosted

How a decision reaches a room

  • The Core API verifies each signed token offline, then authorises the request against the organisation’s roles and policies.
  • The tenant agent pulls its commands from the Agent API. Member and channel sets carry a strictly increasing revision, and the agent never applies a lower one.
  • Inside Synapse, kodera-synapse-policy refuses whatever would route around the control plane from another Matrix client.
  • For a call, room_access checks live membership of the Matrix room, then mints a short-lived LiveKit token for that room only.
  • For a document, the client redeems a single-use collaboration ticket with the Yjs collaboration service.

03Concepts

Security modes & cryptography

Three modes, each stated as what it is. Standard and policy-fenced rooms are protected in transit and readable by the server. Confidential rooms and documents are opt-in, and refuse to fall back to plaintext.

The three modes

The same five rows under every mode
DefaultStandard channels & docsPartners & guestsPolicy-fenced rooms & bridgesOpt-inConfidential rooms & docs
TransportTLSTLSTLS, then scoped OpenMLS (RFC 9420)
At restReadable by the serverReadable by the serverKDE1 document envelopes, KVKB1 zero-knowledge key backup
You getInstant history for newcomers, search, extensionsRules enforced inside Synapse by kodera-synapse-policyLocal blind-indexed search, SFrame v1 media framing
Who gets inMembers of the organisationClosed federation by default, opt-in bilateral partner rooms, single_channel_guest accessDevices that hold the room’s keys
AIOff by defaultOff by defaultRefused with a 403

Policy-fenced rooms

kodera-synapse-policy 0.1.8
Runs inside Synapse. It refuses encryption in standard rooms, cleartext in confidential rooms, and any room creation or invitation that bypasses the tenant agent.
Federation
Closed by default. A partner room federates only on an explicit opt-in, with the servers the organisation lists.
single_channel_guest
A guest role scoped to one channel, checked live against the control plane.

Confidential mode, primitive by primitive

OpenMLS · RFC 9420
Group key agreement, scoped to one confidential room.
KDE1
Envelope of a confidential document’s collaboration updates: a context-bound HKDF-SHA-256 subkey, then AES-256-GCM. The collaboration relay admits them per epoch, as opaque envelopes.
KVKB1
Zero-knowledge key backup, sealed in the browser. Passphrase mode: PBKDF2-HMAC-SHA-512 (600,000 iterations or more), then HKDF-SHA-256, then AES-256-GCM. Recovery-key mode: a random 256-bit key that skips PBKDF2 and goes through the same HKDF-SHA-256 and AES-256-GCM.
SFrame v1
Media frame encryption for confidential calls, applied in a worker on top of DTLS-SRTP.
Local search
A blind index (HMAC-SHA-256) over encrypted shards kept in the browser; no query leaves the device.
AI
Off by default, and refused with a 403 on confidential channels and documents.

These primitives are implemented and tested; the complete confidential experience in the shipped clients is still in progress. A confidential session that cannot be established is quarantined, never downgraded to plaintext.

What is not shipped

Not every room is end-to-end encrypted, and no padlock is drawn where the server can read. Confidential mode is opt-in room by room; its hosted relay stays off until an operator activates it, and multi-device coordination, mobile key backup and encryption across every room remain in progress.

04Build

Extensions, widgets & migration

An open SDK for signed webhooks, slash commands and declarative cards, reference implementations to start from, and offline importers for the archives you already have.

SDK & scaffolder

@kodera/extension-sdk 0.2.0
A zero-dependency ESM and TypeScript package: the manifest, the signed-webhook envelope, slash-command helpers and declarative cards.
create-kodera-extension
Scaffolds a starter with signature verification, a card builder and its own tests. A local pre-release: run it from a checkout until it is published to the registry.
ShellScaffold a starter
# Today, from a checkout of kodera-hq/kodera
node packages/create-kodera-extension/bin/create-kodera-extension.mjs \
  --slug incident-triage --commands triage \
  --widgets incident-card --dry-run

# Once the package is published to the registry
npx create-kodera-extension --slug incident-triage \
  --commands triage --widgets incident-card --dry-run

Signed deliveries

Sequence: Kodera posts a signed delivery, the extension checks the HMAC-SHA256 signature before reading it, then answers.KoderaYour extensionPOST · kodera.extension.delivery.v2HMAC-SHA2562xx
Verify before you parse: the signature covers the timestamp and the exact raw body.
x-kodera-signature-256
v1= followed by the hexadecimal HMAC-SHA256 of timestamp.rawBody, under the installation’s signing secret.
x-kodera-timestamp
Unix seconds. A delivery more than 300 seconds off is refused.
x-kodera-delivery-id
Identifies the delivery, repeated as the Idempotency-Key: deduplicate on it before any side effect.
Raw body
At most 1 MiB. Its schema field is kodera.extension.delivery.v2.
TypeScriptVerify a delivery
import { verifyWebhookRequest } from "@kodera/extension-sdk";

// rawBody is the exact bytes received, before any JSON parsing.
export function receive(secret: string, rawBody: string, headers: Headers) {
  // Throws unless the signature matches
  // and the timestamp is within 300 s.
  return verifyWebhookRequest({
    secret,
    rawBody,
    signatureHeader: headers.get("x-kodera-signature-256") ?? undefined,
    timestampHeader: headers.get("x-kodera-timestamp") ?? undefined,
  });
}

Declarative widgets

A card is data, never code: a closed set of blocks (header, text, kv_list, status_pill, progress_bar, button_row, link_button) the client renders in a sandbox. A card posted to a confidential channel is refused with a 403.

JSONA minimal kodera.widget.v1 card
{
  "schemaVersion": "kodera.widget.v1",
  "widgetId": "release-checklist",
  "blocks": [
    { "type": "text", "body": "2 of 3 checks passed" }
  ]
}

Reference implementations & importers

  • 23 reference implementations ship in extensions/, each tested against the SDK harness with synthetic fixtures. A provider’s name describes the payload shape it models, not an endorsement or a connected account.
  • Offline importers read Slack, Discord and Notion export archives. Archives are bounded, and imported content stays inert and attributed to its author.
  • An extension is installed workspace by workspace, with scoped permissions.

05Operate

Self-hosting & operations

The Community profile is a single-node Docker Compose stack. It ships no identity provider: you bring an OIDC issuer you already operate.

Generate a configuration

ShellValidate a plan, then generate
# Today, from a checkout of kodera-hq/kodera
node packages/create-kodera/bin/create-kodera.mjs --self-host \
  --domain chat.example.org \
  --oidc-issuer https://id.example.org/realms/studio \
  --oidc-client-id console --template tech-studio --dry-run

# Once the package is published to the registry
npx create-kodera --self-host --domain chat.example.org \
  --oidc-issuer https://id.example.org/realms/studio \
  --oidc-client-id console --template tech-studio --dry-run
Status
A local pre-release, driven by flags: it validates a plan with --dry-run and writes a new directory when given a trust file, a source checkout and an output directory.
What it writes
docker-compose.yml, Caddyfile, livekit.yaml, the Synapse configuration script, a workspace template and an environment file in mode 0600.
Secrets
Drawn fresh from the system’s random source; never printed. Credentials someone else issues are left empty.
What it never does
It does not run Docker, publish images or overwrite an existing directory. You start Compose yourself.

The Community stack

Services
Caddy (automatic HTTPS), the web client, the API and its migrator, room-access, PostgreSQL 17, Valkey 8, Synapse on its own PostgreSQL database, and the LiveKit SFU.
Identity
None is shipped. The server trusts the OIDC issuers you list, and Synapse signs members in through the same realm.
Network
Federation is closed unless you enable it, and the agent API is never reachable from the internet.
Footprint
434.6 MiB of container working sets at idle, in one qualification run. Each service has a memory ceiling; this is a measurement, not a capacity guarantee.
Backups
PostgreSQL, media, configuration and the server signing keys. Restore into an isolated environment before you rely on them.

Read the self-hosting guide

06Operate

Native clients & delivery boundaries

What is published, what is in development and what is not shipped, block by block. Nothing is implied: a limit is written where the feature is described.

Native clients

Clients, their stack and their status
ClientStackStatus
Desktop · macOS, Windows, LinuxNative Rust host (tao/wry) on the system WebView; credentials in the OS keychainPublished in v0.2.0 with SHA-256 checksums; installers are not notarised by the OS vendors yet
AndroidJetpack ComposePublished in v0.2.0 with SHA-256 checksums; no store listing yet
iOSSwiftUIIn development
App Store & Google PlayStore listingsPending
Desktop deployment assistantPart of the desktop appValidates the inputs; it does not install an instance yet

Product specifications

What each part of the product does today, with its limit stated under it.

Messaging · tech specs

  • Structured channels and threads on Matrix v1.12.
  • Attachments, voice notes and custom emoji in the channel.
  • Send later and reminders on any message.
  • Matrix interoperability with approved homeservers on eligible public channels, by explicit opt-in; hosted activation depends on each organisation’s policy.
  • Mentions, pins and polls in every channel.

Standard channels are readable by the server; confidential rooms are opt-in and their hosted relay is not activated yet.

Calls & video · tech specs

  • LiveKit WebRTC calls: camera, screen sharing and picture-in-picture.
  • A 16:9 stage, and a call pill that stays visible from any channel.
  • Voice rooms to join as the work unfolds.

Calls run in each organisation’s own workspace; hosted access follows the opening of each offer.

Docs · tech specs

  • Pages, templates, comments and Markdown export.
  • Structured collection views: table, kanban and list, with filters and CSV or JSON export.
  • A file explorer for what the team shares.
  • A command palette, ⌘K, to find a channel, a page or a file.

Documents are co-edited in each organisation’s own workspace.

Access & roles · tech specs

  • OpenID Connect with PKCE: a dedicated realm per Sovereign instance, an org-scoped shared realm on the Collaborative Cloud.
  • Multi-provider WebAuthn passkeys.
  • Organisation roles, with permission overrides per channel.
  • An audit trail of administrative actions.
  • Full GDPR workspace export, in JSON and in Markdown.

Roles are granted by each organisation’s own administrators.

Delivery limits

Four building blocks, each with its limit stated.

Espace & voice rooms

Messages by room, presence tied to a session, voice rooms to join as work unfolds.

  • Structured messaging and instant voice rooms with LiveKit.
  • Synthesised sound identity: Givre, Atelier, Souffle, Cosmos, Luciole, or silence.

Espace and voice rooms are open in Kodera Community. Rooms there are standard, readable by the server; confidential mode is not activated yet.

Visio & Docs

Video conferencing, channel documents and structured views, in one place.

  • Video conferencing and real-time co-editing: pages, templates, comments and Markdown export.
  • Structured views over channel collections: table, kanban and list, with filters and CSV or JSON export.

Open in Kodera Community. A dedicated instance is prepared with each organisation before its own integration.

#proximity, everyday presence

A voluntary, pseudonymous check-in shared with nearby devices. It is not an emergency service.

  • Here
  • Need assistance
  • Meeting point

In development. BLE and local Wi-Fi relaying and trusted device enrolment are not deployed. Check-ins are voluntary and pseudonymous; messages are signed but remain plaintext: neither confidentiality nor anonymity is guaranteed. Devices need power or charged batteries; delivery is not guaranteed. This channel is not an emergency service and does not replace emergency services.

Open-core, native & extensions

An open foundation, signed connectors, published v0.2.0 apps, iOS in preparation.

  • Desktop (native Rust tao/wry host on the system WebView) and Android (Jetpack Compose) are published in v0.2.0 with SHA-256 checksums; iOS with SwiftUI is in development and store listings are pending.
  • Extension SDK for signed webhooks and commands: @kodera/extension-sdk.
  • 23 signed reference connectors and offline archive importers for Slack, Discord and Notion exports are built on that SDK; they are exercised with synthetic fixtures, Qonto stays deferred pending banking validation, and activation happens workspace by workspace.
  • Community Self-Host generator npx create-kodera, in pre-release: Docker Compose, reverse-proxy TLS, Synapse room policy and fresh local secrets.

The one-click Desktop deployment assistant is in development: it validates the inputs, it does not install an instance yet.

Understand the proximity protocol

Protocol v1 defines rotating HMAC-SHA256 beacons and Ed25519 signed frames of up to 256 bytes. Signing does not encrypt their content.

A signature identifies a key, not organisation membership. The relay hop limit is not signed.

Talk to the teamPricing