Self-hosted Element Call with LiveKit: what it adds and when your team needs it
Element Call needs more than Synapse. To run group voice and video calls on your own homeserver, you host a dedicated LiveKit SFU (selective forwarding unit) that relays media, plus the MatrixRTC Authorization Service (lk-jwt-service) that issues credentials so authenticated users can join a call. Synapse itself must also be configured with several experimental features before Element Call will work. Your team needs this extra stack only when staff regularly need group calls inside the organization and you want that traffic to stay on infrastructure you control. Basic one-to-one calls are a separate question covered in the TURN guidance for Matrix calls.
Element's self-hosting guide for Element Call describes the components, their paths behind a reverse proxy, and the Synapse requirements, so read it before sizing anything. The Element Call repository is licensed under AGPL-3.0 and is maintained by Element in the element-hq organization on GitHub, which matters if you plan to modify the client or publish a branded build. Ask whether your use case is recurring team meetings, all-hands sessions, or occasional calls, because the answer determines how much capacity, monitoring and on-call attention the SFU will need.
Decide early whether the call stack belongs in the same change window as your Synapse upgrade. Element Call depends on Synapse features that must be enabled in configuration, and the Synapse upgrade notes for v1.161.0 changed how the LiveKit service URL is declared, so a version mismatch can break calls without affecting chat. Confirm with your platform team which Synapse release you run, which LiveKit release the guide targets at the time you deploy, and who owns the public DNS and TLS certificates for the SFU and authorization paths. If nobody on your team can own those components after launch, a managed or partner-supported route will be a better fit than a single engineer's side project.
Which components Element Call depends on
A self-hosted Element Call deployment spans four parts that must agree on hostnames, paths and secrets. Synapse decides whether calls are offered at all, the LiveKit SFU carries the media, the authorization service issues credentials, and the reverse proxy ties them to one public domain.
Synapse experimental features
Synapse must enable the experimental features Element Call relies on, including the MatrixRTC and delayed event support described in the Element Call self-hosting guide, and set max_event_delay_duration to match. Your Synapse operators own these settings in homeserver.yaml, and each change should be reviewed as a server configuration change. Check the values against the Element Call guide for the release you run, since missing flags usually show up as calls that never start.
Self-hosting guideLiveKit selective forwarding unit
LiveKit is the SFU that receives and forwards audio and video streams for group calls, and the self-hosting guide calls for a dedicated instance rather than sharing it with other services. Your infrastructure team operates it, sizes it for expected concurrent participants, and opens the media ports it needs through the firewall. Confirm its network reachability from client networks early, because media problems are hard to diagnose after rollout.
MatrixRTC authorization service
The lk-jwt-service component checks a user's Matrix session and issues the tokens that let a client join a LiveKit room. It is set up as an application service on Synapse, so the registration file and the shared credentials must match on both sides. Your platform team operates it alongside Synapse and should rotate its secrets through the same process as other homeserver credentials.
Reverse proxy routes
The reverse proxy serves the Synapse client API, Element Call and the LiveKit and authorization paths, such as /livekit/sfu and /livekit/jwt, under one public domain. Routing mistakes often surface as WebSocket failures or 404 responses that look like client faults. Your network or edge team owns the proxy configuration, and each route should be tested from outside your network before users are asked to join a call.
Configuration options and when each fits
This table compares the main configuration choices for a self-hosted Element Call stack: how Synapse points at the LiveKit SFU, where the SFU runs, and how the authorization service is registered. Read each row as a decision, with the trade-off and the condition that makes one option a better fit than the others. The main takeaway is that the Synapse url property is the current path, so new builds should start there and confirm the exact settings against the version they run.
| Choice | Option | Trade-off | When it fits |
|---|---|---|---|
| Synapse SFU setting | matrix_rtc url property (v1.161.0 and later) | Points Synapse at the SFU WebSocket URL directly and matches the current upstream direction | New builds and any server already on v1.161.0 or later |
| Synapse SFU setting | matrix_rtc livekit_service_url (deprecated) | Still documented in older guides but deprecated in favour of the url property, so it adds migration work later | Only existing deployments that have not yet been moved to the url property |
| SFU hosting | Dedicated hosts for LiveKit | Isolates media load and network tuning from other services, at the cost of extra machines to size, patch and monitor | Organizations with sustained call use or strict network and change control requirements |
| SFU hosting | Shared infrastructure | Fewer hosts to run, but media traffic competes with other workloads and bandwidth or UDP port needs can conflict | Small pilots where call load is low and the platform team has confirmed the network path |
| Authorization service | Deployed as a Synapse application service | Registration is handled through Synapse's application service API, so Synapse configuration and the service must stay in step | The standard model described for Element Call, where Synapse must know the service exists |
| Routing | Reverse proxy paths for SFU and authorization service | One public hostname with path routes such as /livekit/sfu and /livekit/jwt keeps client config simple, but each route needs correct upgrade and header handling | Most single-domain deployments behind an existing reverse proxy |
How a call request moves between Element clients, Synapse, the authorization service and LiveKit
The diagram starts with an Element client that has already joined a room. The client reads call state from Synapse, which is the room and event source, then requests a token through the reverse proxy at /livekit/jwt, where the MatrixRTC Authorization Service (lk-jwt-service) issues it. The client then connects to the LiveKit SFU at /livekit/sfu, which carries the media. Check that the proxy routes are exact, that the SFU is not reachable through any path that skips the proxy, and that the authorization service sits on the internal side of the trust boundary.
Request and media paths through the proxy, with internal services behind the trust boundary.
Setup sequence for Element Call with LiveKit
This sequence turns a working Synapse homeserver into one that can host Element Call group calls, by enabling the required experimental features, running the LiveKit SFU and its authorization service, and routing the paths between them through your reverse proxy. Each step closes with a check so you know it is safe to move on.
Confirm the homeserver baseline
Before changing anything, confirm that the Synapse homeserver runs a release that supports the call settings you plan to use, that it serves federation and client traffic correctly, and that you have a recent database backup. Check the version on the Synapse releases page and read the upgrade notes for every release between your current version and the target, because rolling back after schema changes can be difficult. Your team confirms the baseline. Done means the homeserver answers client requests over HTTPS on its public name, and you have a tested backup and a written record of the current version.
Enable the Synapse experimental features
Add the Element Call prerequisites to the Synapse configuration file: the experimental_features entries for MSC3266 room summaries, MSC4140 delayed events, MSC4519 MatrixRTC transports registry and MSC4222 sync state_after, plus a max_event_delay_duration value. Confirm the exact configuration keys against the Synapse configuration manual for your release before editing, then restart Synapse. Done means Synapse starts without configuration errors and the log shows no warnings about these features. You can also query the client versions endpoint through your public URL to confirm the server is still responding normally.
Deploy the LiveKit SFU
Install the LiveKit selective forwarding unit on a host or cluster you control, following the LiveKit project's own deployment guidance. Set the API key and secret, open the signaling and media ports that LiveKit requires, and decide how TURN will be provided for clients behind restrictive networks. Keep the LiveKit server on its own service, separate from Synapse, as Element Call's self-hosting guide describes. Done means the LiveKit service starts, its health endpoint responds from inside your network, and a test connection from a client on the same network succeeds.
Deploy the MatrixRTC Authorization Service
Run lk-jwt-service next to the LiveKit SFU. It issues LiveKit access tokens to Matrix users after checking their Synapse identity, so it needs the LiveKit API key and secret and must reach your homeserver over the internal network. Store the secrets in your secrets manager, not in plain configuration files, and restrict which hosts can reach the service. Done means the service starts, logs no authentication errors at startup, and responds on its local port to a health check.
Register the authorization service as an application service
Create the application service registration file for the LiveKit authorization service, using the namespace and token values from its documentation, and add it to the Synapse appservice configuration. In the same change, set the matrix_rtc url property to the LiveKit SFU WebSocket address, replacing the older livekit_service_url setting that Synapse v1.161.0 deprecated. Restart Synapse. Done means the appservice shows as registered in Synapse logs and the homeserver starts cleanly with the new configuration. Your team should confirm the registration with the Synapse admin API before moving on.
Configure reverse proxy routes for the call services
Add routes on your reverse proxy that send the LiveKit signaling path, such as /livekit/sfu, and the authorization service path, such as /livekit/jwt, to their backends, while all other paths continue to the homeserver. Preserve WebSocket upgrade headers on the SFU route, and keep the proxy timeouts long enough for persistent connections. Check the exact path prefixes against the Element Call self-hosting guide. Done means that requesting each route through the public hostname returns the backend's response rather than the homeserver's 404 page, and the WebSocket upgrade completes.
Deploy Element Call and point it at your services
Host the Element Call application on your own domain, using the build or container image that matches your release, and set its configuration to your homeserver, the LiveKit SFU address and the authorization service path. Make sure the Element Call origin is allowed by your proxy and security headers. Done means the Element Call page loads over HTTPS without console errors about missing configuration.
Verify a test call end to end
Sign in with two test accounts on separate devices, open a room, and start a group call from Element Call. Confirm that both participants see and hear each other, that the authorization service logged successful token issues, and that the LiveKit server shows the room as active. Test once from outside your network to confirm that TURN and the proxy routes work for remote users. Done means both test accounts complete a call from inside and outside your network, and you have recorded the results for your change record.
Which Synapse experimental features Element Call requires
Element Call needs four Synapse features that are not enabled by default: MSC3266 room summaries, MSC4140 delayed events, MSC4519 MatrixRTC transports registry, and MSC4222 sync state_after. MSC4519 is the one that matters most for calls, because it lets clients discover which MatrixRTC transport, here your LiveKit SFU, a room should use. MSC4140 supports the delayed events that MatrixRTC relies on to signal that a participant has left a call even if their connection drops. MSC3266 and MSC4222 support the room summary and sync behavior that Element Call reads when it loads a room. Without all four, the call button may appear but calls will not connect reliably.
In Synapse, the first three are switched on under experimental_features in homeserver.yaml, and MSC4140 also needs max_event_delay_duration set to a value that allows delayed events. The Element Call self-hosting guide lists the exact keys and values for each release, so copy them from the guide that matches your Synapse version rather than from older blog posts. Treat this as a change-control item: record the Synapse version, the keys you set, and the Element Call build you deploy together, and retest a test room after every Synapse or Element Call upgrade. Confirm with the current Synapse configuration manual which of these keys remain experimental in your release.
These settings are not stable across releases. Synapse v1.161.0 deprecated matrix_rtc.livekit_service_url in favour of a url property for the SFU, and the upgrade notes describe how the LiveKit authorization service is registered as an application service. Read the Synapse upgrade notes for every release between your current version and the target before you upgrade, paying attention to any change to experimental flags. Because Synapse rollbacks can be difficult after schema changes, rehearse the upgrade on a staging copy of the database and keep a verified backup before you touch production.
Security and operational considerations for call infrastructure
Element Call adds a public SFU, an authorization service and media ports to a Synapse deployment that already has its own exposure. The cards below cover the decisions that connect these pieces, from the proxy and firewall to credentials, logs and patching, and what to confirm before the stack carries real calls.
Public exposure of SFU and authorization paths
The LiveKit WebSocket and the lk-jwt-service endpoints are reached by every client that joins a call, so they must be reachable from user networks while nothing else on those hosts is. Route only the paths the self-hosting guide defines, such as /livekit/sfu and /livekit/jwt, and keep administrative interfaces on private addresses. Confirm which paths your proxy exposes by testing from outside your network, not by reading the configuration alone.
Element Call self-hosting guideTLS and certificate handling on the proxy
Clients will refuse calls if the certificate chain for the SFU or authorization hostname is incomplete or expired, and failures often look like a generic call error rather than a certificate error. Decide who issues and renews each certificate, where private keys are stored, and how renewal reloads the proxy without dropping active sessions. Include the call hostnames in your certificate monitoring alongside the homeserver name.
Firewalling media ports
The SFU needs media ports open for WebRTC traffic in addition to the HTTPS routes through the proxy, and those ports are a separate exposure from port 443. Open only the UDP and TCP ranges your LiveKit configuration sets, restrict them to the networks that need them, and document the rule set with the proxy rules. Test with a call from a network outside your office, since internal tests can pass while external media fails.
Credential and key handling for the authorization service
The authorization service exchanges Matrix sessions for LiveKit access, so the key pair or shared secret that signs those tokens controls who can join a room's call. Store it in your secrets manager, limit read access to the hosts that run the service, and rotate it with a planned window because clients and the SFU must trust the new value together. Confirm the rotation procedure with the vendor documentation for your release before you rely on it.
Logging of call metadata
Call setup logs can show who joined which room, when, and from which address, even though media content is not stored by default. Decide the retention period for proxy access logs, SFU logs and authorization service logs, and check that none of them record tokens or full request bodies. Align these settings with your data protection obligations and confirm with legal counsel what counts as personal data in your setup.
Patching LiveKit and lk-jwt-service with Synapse
Synapse v1.161.0 changed how the SFU URL is configured, so a Synapse upgrade can break calls even when the SFU is unchanged. Upgrade LiveKit, lk-jwt-service and Synapse as a set, check the release notes for each, and test a call on staging before production. Keep a record of the version of each component so that a failed call can be traced to the change that caused it.
Synapse upgrade notesQuestions buyers ask before hiring help with Element Call
What drives the cost of a self-hosted Element Call deployment?
The main drivers are how many components you host, how the network is designed, and how much proxy and certificate work sits behind the routes. Element Call on your own server needs Synapse with its experimental features enabled, a dedicated LiveKit SFU, the MatrixRTC Authorization Service (lk-jwt-service), and a reverse proxy that routes /livekit/sfu and /livekit/jwt correctly. Each added piece adds configuration, testing and operations work. Testing across clients and browsers also adds effort. Ask any partner for a quote built from a written scope that lists each component, each network path, and each client you need to verify. Cost is mostly one-time build work, with recurring costs for upgrades and monitoring.
How long does an Element Call setup usually take?
Duration depends on how much of the stack is new to your team and how many environments you must build. The work moves in a sequence: confirm the Synapse version and enable the required experimental features, deploy LiveKit and the authorization service, add the reverse proxy routes, then test calls from every client you support. If your Synapse is already current and your proxy is already in place, the work is shorter. If you need new DNS records, certificates, firewall rules or a Synapse upgrade first, the timeline grows. Ask for a schedule that names each dependency and who is responsible for it.
What does the work need from our team?
You need to provide a few things before work starts. Confirm DNS names for the Element Call and LiveKit endpoints, and make sure certificates can be issued for them. Provide a Synapse administrator who can change the homeserver configuration and restart it. Make sure the required ports are reachable between the proxy, the SFU and the homeserver, and that users can reach the SFU for media. Your team should also confirm who owns the reverse proxy and firewall changes. Missing access is one of the most common reasons these projects stall, so list these items in the statement of work.
Can our internal team set up Element Call without outside help?
Yes, if your engineers are comfortable with Synapse configuration, reverse proxies, certificates and container or service deployment. The official self-hosting guide describes the components and routes, so a capable team can follow it. Outside help usually makes sense when the team lacks time, when the deployment must pass a security or compliance review, or when calls must work across several networks and clients. Whichever path you choose, assign an owner for LiveKit and the authorization service after launch, because they need upgrades alongside Synapse.
How does Element Call differ from Jitsi or TURN for one-to-one calls?
Element Call is Matrix's group voice and video system. It uses MatrixRTC, a LiveKit SFU and an authorization service, and it runs inside Matrix rooms. TURN is a relay service that helps peers connect through restrictive networks, and it is commonly used for one-to-one calls between Matrix clients. Jitsi Meet is a separate conferencing platform with its own accounts and infrastructure. Your choice depends on whether calls should stay inside Matrix rooms, which clients you support, and how many people join a call. Check the Matrix voice and video guidance before you finalize the design, because one-to-one calls and group calls have different prerequisites.
What do we need to check before and after launch?
Before launch, confirm that Synapse has the required experimental features and the max_event_delay_duration setting, that the authorization service is registered as an application service, and that the proxy routes reach the right backends. After launch, test calls between users on different networks, check that group calls connect for every client you support, and review logs from the SFU and the authorization service. Also plan upgrades, because Synapse changes configuration keys between releases. The Synapse upgrade notes describe such changes, and you should read them before each upgrade.
Does Element Call affect our compliance or security review?
It can. Calls add a media path, a new public endpoint, and a service that issues tokens. Your security reviewers will ask where media flows, who can join a call, how tokens are issued and expired, and how logs are kept. Document the SFU, the authorization service and the proxy routes in your data flow diagrams, and test access controls for calls the same way you test chat. DeployOpen can prepare systems and evidence for a compliance assessment, but independent auditors issue any audit report or certification.
Keeping Element Call working after the first release
The main operational rule for Element Call is that Synapse, Element Call, the LiveKit SFU and lk-jwt-service must be upgraded as a set, and each upgrade needs a written compatibility check before it reaches production. Synapse carries most of the coupling. Element Call depends on experimental Synapse features (MSC3266 room summaries, MSC4140 delayed events, MSC4519 MatrixRTC transports registry and MSC4222 sync state_after), and those are enabled through experimental_features and max_event_delay_duration. Assign one owner for the whole stack, keep the Element Call release notes next to the Synapse upgrade notes, and confirm with Element Call's self-hosting guide that the versions you plan to run still match before you change anything. Ask your vendor or partner to show the exact versions tested together in your staging environment.
Synapse deprecations are where calls most often break quietly. Synapse v1.161.0 deprecated matrix_rtc.livekit_service_url in favour of a url property that points at the SFU WebSocket, and it expects the LiveKit authorization service to be registered as an application service. Read every set of upgrade notes between your current release and the target, not only the latest one, and treat any change to matrix_rtc settings as a reason to re-test. Also confirm that the Element Call configuration still points at the /livekit/sfu and /livekit/jwt routes on your reverse proxy. Keep a copy of the previous configuration and the previous Synapse package so you can roll back the config, while remembering that Synapse rollback can be difficult once the database schema has changed.
Monitoring should cover the SFU and the authorization service as separate services, not only Synapse. Track whether the LiveKit process is up, how many media sessions it is hosting, its CPU and bandwidth use, and error rates on the WebSocket path. For lk-jwt-service, watch token issuance failures, since a broken authorization service can stop calls from starting even when Synapse and the SFU look healthy. After each Synapse upgrade, run a fixed test: start a group call from two accounts on different networks, confirm media flows both ways, join from Element Web, Element Desktop and a mobile client, check that a call started before the upgrade can still be joined, and review logs for deprecation warnings. Confirm the exact checks and their frequency with your own operations and security teams before you set them as release gates.
How DeployOpen scopes and delivers Element Call on your infrastructure
DeployOpen plans, implements, hardens, documents and supports self-hosted Element Call with LiveKit inside your own cloud accounts, data centers or air-gapped networks. Each engagement starts from a written scope that names the Synapse settings, the LiveKit and authorization service hosts, and the reverse proxy routes your teams will operate.
How we scope
- Confirm your Synapse version and whether its experimental features can be enabled on your homeserver
- Agree in writing which hosts run the LiveKit SFU and the MatrixRTC Authorization Service
- Map reverse proxy routes for the SFU and authorization service paths before any build work begins
How we build
- Enable the required Synapse experimental features and the call limits in a staging homeserver first
- Configure the LiveKit SFU and authorization service as your Synapse application service and proxy them
- Test one-to-one and group calls across two clients and two networks before production cutover
How we hand over
- Deliver configuration files, proxy route definitions and a runbook for each component you operate
- Document the upgrade order for Synapse, Element Call, LiveKit and the authorization service together
- Walk your platform and security teams through verification steps and known failure symptoms
How we support
- Engagements are fixed-scope, so changes after handover are scoped and priced separately
- Ongoing upgrades, monitoring reviews and retesting are available as a retainer
- Ask any quote to state who maintains each host, certificate and firewall rule after go-live

