Kodi Backend: What It Means & How It Works
In this article
Kodi backend is not a standard, official term used by the Kodi team. It is informal community slang for the part of a Kodi setup that supplies content or data to the Kodi player itself. In plain terms: Kodi is the frontend (what you see and click), and the backend is whatever feeds it — a local hard drive, a network server, a streaming add-on, or a database like MySQL. When someone says “my Kodi backend,” they usually mean the device or service that stores the media and sends it to Kodi for playback.
Where the Term Comes From
The word “backend” is standard software jargon, used for decades to describe the server-side of any application — the part that handles data, logic, and storage, as opposed to the frontend that the user interacts with. Kodi’s own documentation uses the terms “client” and “server” rather than “backend,” but the community adopted “backend” because it fits the same client-server idea. The phrase appears in Kodi forum threads and Reddit posts, usually in sentences like:
- “I run my Kodi backend on a NAS so all three TVs can stream the same library.”
- “The add-on’s backend is down, so nothing loads.”
- “MySQL as a backend keeps my watched status synced across devices.”
So it is not a formal Kodi feature name — it is descriptive shorthand. In official Kodi documentation, you will not find a menu or setting called “backend.”
What the Backend Actually Does
In a typical Kodi setup, the backend performs one or more of these roles:
- Media storage: holding video, music, or photo files on a local disk, USB drive, NAS, or network share.
- Library database: storing metadata, artwork, and watched status. By default Kodi uses a local SQLite database, but you can switch to a MySQL or MariaDB server so multiple Kodi devices share the same library.
- Streaming source: providing live TV or on-demand content through a PVR (Personal Video Recorder) backend like TVHeadend, NextPVR, or MythTV, which connects to a tuner and sends the stream to Kodi.
- Add-on service: a remote server that an add-on (e.g., a YouTube or music add-on) queries to fetch results and streams.
Without a backend, Kodi is just a shell — it can play files you manually browse to, but it cannot maintain a library, sync state, or receive live TV. The backend is what makes Kodi feel like a complete media center.
Common Backend Types and Examples
People use “backend” to mean different things depending on context. Here are the most common setups:
- Local filesystem backend: The simplest. Kodi runs on a PC or Android box and reads movies from an attached USB drive or internal disk. No network involved.
- Network share backend: Kodi connects to a SMB (Windows/Samba) or NFS share on a NAS or another PC. The backend is the NAS or PC holding the files.
- MySQL/MariaDB backend: You set up a MySQL server on a PC or NAS, then configure Kodi’s advancedsettings.xml to use it. This allows multiple Kodi devices to share the same library, including watched status and resume points. This is the most common use of “backend” in Kodi forums.
- PVR backend: Software like TVHeadend runs on a server with a TV tuner. Kodi connects to it via the PVR client add-on. The backend handles recording and channel tuning.
- Add-on remote backend: Many third-party add-ons (like streaming video add-ons) rely on remote servers that scrape or host content. Users often say “the add-on’s backend is down” when the remote server fails.
How to Choose a Backend
Your choice depends on how many devices you use and what you want to do:
- Single device, local files: No backend needed beyond the disk itself. Just add the folder as a source in Kodi.
- Multiple devices, same library: Use a MySQL/MariaDB backend. You also need to store the media on a network share so all devices can access the same files.
- Live TV or DVR: Set up a PVR backend like TVHeadend. You will need a compatible TV tuner (USB or network).
- Streaming add-ons: You do not control the backend — it is the add-on developer’s server. Just install the add-on from the official Kodi repository or the developer’s repository.
For most home users, a NAS with SMB sharing plus MySQL is the standard “backend” setup. It is reliable and free.
Setting Up a MySQL Backend (Basic Steps)
If you want a shared library across multiple Kodi devices, here is the general process. Labels may differ slightly by Kodi version.
- Install MySQL or MariaDB on a PC or NAS that is always on. Note the server’s IP address and create a database user for Kodi.
- On each Kodi device, locate the
advancedsettings.xmlfile. On Windows it is in%APPDATA%\Kodi\userdata, on Android it is inAndroid/data/org.xbmc.kodi/files/.kodi/userdata, and on Linux it is in~/.kodi/userdata. - Edit the file to include the database connection details (host, port, user, password). Kodi will automatically create the necessary databases on first run.
- Restart Kodi and add your media sources. The library will be stored on the MySQL server, and all devices will see the same library.
- Repeat the same
advancedsettings.xmlon every device.
If you are not comfortable editing XML files, consider using a simpler approach: just point each Kodi device to the same network share and accept that watched status will not sync.
Common Problems and Misconceptions
One frequent misconception is that “Kodi backend” refers to a specific add-on or a “Kodi backend server” product. There is no official “Kodi backend” software. It is always a generic term for whatever serves the data.
Common issues people hit:
- MySQL connection refused: Usually because the MySQL server is not running, the port (default 3306) is blocked, or the user is not allowed to connect from the Kodi device’s IP. Check the server’s firewall and user privileges.
- Library not syncing: Ensure all devices use the same MySQL database and that the media paths are identical (e.g., both use
smb://SERVER/Movies). If one device uses a different path, Kodi will see duplicate entries. - PVR backend not found: The PVR client add-on must be installed in Kodi, and the backend’s IP/port must be correct. Also ensure the backend software is running.
- Add-on backend down: That is on the add-on developer’s side. You can only wait or switch to another add-on.
If That Did Not Work
If you followed the MySQL steps and Kodi still does not connect, try these in order:
- Restart Kodi and the MySQL server.
- Verify the MySQL server is reachable from the Kodi device using a tool like
pingor a MySQL client. - Double-check the username and password in
advancedsettings.xml— a typo is common. - Check Kodi’s log file (
kodi.log) for database errors. The log will show the exact SQL error. - If nothing works, revert to a local library — remove the
advancedsettings.xmlor rename it, and Kodi will fall back to its default SQLite database.
Frequently Asked Questions
Is “Kodi backend” an official term?
No. The Kodi team uses “client” and “server” in documentation. “Backend” is community slang, but it is widely understood and not incorrect in a technical sense.
Do I need a backend to use Kodi?
No. You can use Kodi with just a local hard drive. A backend becomes necessary only if you want shared libraries, live TV, or streaming add-ons that depend on remote servers.
Can I use a Raspberry Pi as a Kodi backend?
Yes, a Raspberry Pi can run MySQL or a PVR backend like TVHeadend, but it may be slow for large libraries. A NAS or an old PC is usually more reliable.
What is the difference between a backend and a repository?
A repository is a server that hosts add-ons for download. A backend serves media or data to Kodi. They are unrelated.
Is using a third-party add-on backend safe?
Add-ons from the official Kodi repository are generally safe. Third-party add-ons that stream copyrighted content are not officially supported and may contain malicious code. Stick to official sources.