Skip to main content

SDKs & Libraries

A Matrix SDK handles login, /sync, room state and, in most cases, end-to-end encryption (E2EE). This page helps you pick one. Versions and dates are as of 2026-10-18.

Comparison​

SDKLanguageMaintainerRelease (2026-10)E2EECross-signingTypical use
matrix-js-sdkJavaScript / TypeScriptElement / Matrix.org44.0.0 (2026-10-13)Yes (Rust crypto via WASM)YesWeb clients, Element Web
matrix-rust-sdkRust, with Swift/Kotlin bindingsElement / Matrix.org0.19.1 (2026-09-18)YesYesNative and mobile clients, Element X
matrix-nioPython (asyncio)Community0.26.0 (2026-07-23)Yes (vodozemac)NoBots, scripts
mautrix-pythonPython (asyncio)mautrix (Tulir Asokan)0.21.1 (2026-07-05)YesYes (recovery key)maubot plugins, bots
mautrix-goGomautrix0.32.0 (2026-10-16)YesYesmautrix bridges (bridgev2), gomuks
matrix-bot-sdkTypeScriptturt2live0.8.0 (2026-01-16)Yes (Rust crypto)NoNode.js bots and appservices
@vector-im/matrix-bot-sdkTypeScriptElement (fork)0.10.1-element.0 (2026-09-18), Node.js 24+YesNoHookshot, Draupnir, matrix-appservice-bridge
libQuotientC++ / QtQuotient0.9.6.1 (2026-02-17)Yessee repoQt clients such as NeoChat
matrix-dart-sdkDart / FlutterFamedly14.1.0 (2026-10-16)Yessee repoFluffyChat, Flutter apps
TrixnityKotlin Multiplatformconnect2x5.9.2 (2026-09-17)Yessee repoKotlin/JVM/native apps

The cross-signing column matters. Since spec v1.18, clients SHOULD NOT send room keys to devices that are not cross-signed, and SHOULD NOT display messages from them (spec v1.19, recommended client behaviour, MSC4153). A bot built on an SDK without cross-signing should expect to lose access to encrypted rooms as clients enforce this. See Building bots.

Don't pip install matrix-python-sdk

matrix-org's old matrix-python-sdk (published on PyPI as matrix-client) has been dead since 2021–22. The PyPI name matrix-python-sdk now belongs to an unrelated project. Use matrix-nio or mautrix-python instead. See Python SDKs.

Choosing an SDK​

  • Web client: matrix-js-sdk. Version 44 is ESM-only and declares Node.js 22 or later.
  • Mobile or desktop client: matrix-rust-sdk. Element X uses it through the Swift and Kotlin bindings. The matrix-sdk-ui crate provides the room list and timeline.
  • Bot, Python: write a maubot plugin (mautrix-python underneath), or use matrix-nio directly for small scripts.
  • Bot, TypeScript: matrix-bot-sdk, or Element's fork if you want what Hookshot and Draupnir run on.
  • Bridge: mautrix-go (bridgev2) or matrix-appservice-bridge (TypeScript).

Things every SDK user now meets​

TopicWhat changedSpec
Authenticated mediaMedia downloads moved to /_matrix/client/v1/media/download/{serverName}/{mediaId} (and thumbnail) and need an access token. Many servers no longer serve new media on the old unauthenticated endpoints.v1.11, content repository
OAuth 2.0 loginServers using Matrix Authentication Service (MAS) use the OAuth 2.0 API. matrix.org switched in 2025-04. Password login may not be offered.v1.15, OAuth 2.0 API
Room version 12Room IDs have no :server part, and room creators outrank every power level. Don't parse a server name out of a room ID.Room version 12
Sliding syncElement X uses Simplified Sliding Sync (MSC4186). It was accepted in 2026-06 but is not in spec v1.19. The old sliding-sync proxy (MSC3575) was shut down on matrix.org in 2024-11.MSC4186

matrix-js-sdk and matrix-rust-sdk support OAuth 2.0 login (js-sdk exports OAuth helpers; Rust has client.oauth()). The Python and bot SDKs mostly expect an access token. On a MAS server you get one as a personal access token; see Getting a bot account.

Minimal examples​

Each SDK page has one short example, type-checked against the release named in its front matter:

Resources​