Firefox Account Server
Host your own Firefox accounts server.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: The official documentation page is marked as "archived and no longer maintained," so its content may be outdated or incorrect. The documentation and code for Sync and Tokenserver have moved to the syncstorage-rs project. The official docs also state that this self-hosting guide is still preliminary and far from complete.
Introduction
Firefox Account Server, now called the Mozilla accounts server, is the server-side software behind Firefox accounts (Mozilla accounts). Mozilla allows users to deploy this account service themselves, so that Firefox no longer connects to the account server hosted by Mozilla. This way, you can keep both your account data and your sync data in your own hands.
Components
A self-hosted Mozilla accounts server requires two components:
- auth-server: manages the account database and handles authentication.
- content-server: provides the web-based user interface for sign-up, sign-in and so on.
You can also deploy the OAuth service and the Profile (user profile) service as needed.
Target users and use cases
- Privacy-conscious individuals who want full control over their browser data.
- Self-hosting enthusiasts who want to offer a private Firefox Sync environment to a team or family.
- Developers who want to study or build on the Mozilla accounts system.
Deployment
- Prepare the environment: your system needs git and Node.js installed.
- Clone the mozilla/fxa repository and follow the README to deploy the auth-server and content-server.
- Mozilla packages and deploys with RPM on its own systems. It does not provide other installation packages, and no official builds have been released yet. The community has a Docker-based self-hosting guide (fxa-self-hosting), which the official docs advise using at your own risk.
- Also self-host a Sync server: the Sync server hosted by Mozilla does not trust assertions issued by third-party account servers, so you also need to run your own Sync-1.5 server.
Configuring Firefox clients
- Desktop Firefox (52 and later): In
about:config, create a new string preferenceidentity.fxaccounts.autoconfig.uriand set its value to your content-server address, then restart the browser. This must be done before you open the sign-up or sign-in page, and the setting is reset when you sign out. - Firefox for iOS (9.0 and later): Go to Settings, tap the version number 5 times to open "Advance Account Settings," enter the content-server address, then turn on "Use Custom Account Service."
- Legacy Firefox for Android (Fennec 44 and later): In
about:config, change settings such asidentity.fxaccounts.auth.uri,identity.fxaccounts.remote.webchannel.uriandwebchannel.allowObject.urlWhitelistto your self-hosted addresses. You can also change the OAuth and Profile addresses at the same time. Changing these settings after an Android account has been created has no effect; you need to disconnect the account and sign in again. - Firefox Preview for Android (Fenix): At the time the documentation was written, account servers not hosted by Mozilla were not supported.
Notable features
- Combined with a self-hosted Sync server, it lets you make Firefox data sync completely private.
- The fxa-content-server repository contains graphics and other assets that use Mozilla trademarks. If you plan to use it for anything other than personal use of an unmodified copy, you need to review the Mozilla trademark policy and brand guidelines first.
- You can ask for help in the #fxa channel on Matrix (chat.mozilla.org).
Discover more
Briefkasten
Modern app for saving and managing your own bookmarks. Includes a browser extension.
Digibunch
Create bunches of links to share with your learners or colleagues.
Grimoire
Bookmark manager with a modern UI, automatic content & metadata extraction, categorization, filtering, and more. It has fully documented REST API, and Docker image for easy deployment.
LinkWarden
Bookmark and archive manager to store your useful links.
Servas
A self-hosted bookmark management tool. It allows organization with tags, groups, and a list specifically for later access. It supports multiple users with 2FA. Companion browser extensions are available for Firefox and Chrome.
42links
Bookmarking server supporting multiple accounts.