
Lila
Ad-free open source chess server with tournaments and puzzles.
Replaces Chess Com, Internet Chess Club

Who it's for
A club or regional chess federation that wants rated games, tournaments, and training for its members can deploy Lila and own the data, user accounts, and access rules. The tournament suite handles Swiss and arena formats natively without additional configuration.
The club lacks staff to manage a multi-service backend. The public lichess.org server is a better fit for casual club play without operational overhead.
The publicly downloadable PGN database contains over 12 billion rated games. Researchers training chess engines, studying opening theory at scale, or building AI systems can download the full dataset without a subscription or data license.
Your research only needs a small sample. The Lichess API and Lichess Opening Explorer are simpler entry points for smaller queries and do not require self-hosting.
Lila's production architecture shows how a high-traffic realtime game server is built in Scala 3 with Play, Redis, MongoDB, and Elasticsearch. The codebase and architecture diagram are a reference for building any realtime, high-concurrency server at this scale.
You need a simple chess widget or embed. External board libraries are far simpler for that use case and do not require running a full server.
The Lichess API provides endpoints for games, user data, puzzles, and broadcast management. Applications built on the API can reach the lichess.org user base without running their own server.
You need a fully independent, self-contained server. API-based applications depend on the lichess.org service and cannot operate on a private network or offline.
The problem
The dominant online chess platforms charge for the features players care most about. Chess.com, the most popular, requires a paid membership to unlock full computer analysis, engine-assisted game reviews, and advanced puzzle training. The Internet Chess Club has charged monthly subscription fees since the late 1990s. Free tiers on both platforms are designed to push upgrades rather than serve serious players. For developers and organizations who want to run a community chess server, commercial platforms offer no self-hosting path. The code is proprietary, the hosting is theirs, and any club or community using these services has no say in future pricing, access restrictions, or feature changes.
How it works
Lila handles real-time chess via a dedicated WebSocket server (lila-ws) backed by Redis, keeping game state and move delivery separate from the main Scala application. The architecture lets the server handle thousands of concurrent games without blocking the main application process.
Computer analysis runs on a crowd-sourced cluster of donated servers running the fishnet client. When a player requests a game analysis or uses the analysis board, the work is distributed across the cluster. The main server offloads all chess computation to this separate AI tier.
Lila includes a puzzle database and tactic trainer where players solve chess puzzles rated by difficulty. Puzzles are sourced from real games played on the server, giving the trainer an organic dataset rather than a hand-curated one. The trainer tracks a separate puzzle rating per player.
The server supports Swiss, arena, and team tournaments, plus simultaneous exhibitions (simuls) where one player faces many opponents at once. Operators can configure time controls, start dates, and access restrictions per tournament.
All rated games played on lichess.org are published in a freely downloadable PGN database at database.lichess.org. The database contains over 12 billion games and is updated monthly. Researchers and database tools can use it without a subscription or data license.
The interface is translated into more than 140 languages through a community Crowdin project. Every string in the UI is translatable, making the server accessible across language communities. New translations or corrections can be submitted without core-team involvement.
Features
- Realtime play over WebSocket
- Distributed Stockfish computer analysis
- Tactic trainer with rated puzzles
- Tournament suite with Swiss and arena formats
- Free PGN game database of 12 billion games
- 140+ language localizations via Crowdin
How to install
Self-hosting requires cloning the repository and running the included setup script.
git clone https://github.com/lichess-org/lila
./lila.shRecommended for this setup
Strengths
- Every feature is free with no paywalled tiers: All features on lichess.org are available without payment: computer analysis, puzzles, tournaments, study tools, and the mobile app. Chess.com and ICC charge monthly or annual fees to unlock analysis depth and advanced features. Lila gives self-hosters the same unconditional access.
- Active repository with 18,918 stars and ongoing commits: The repository has 18,918 GitHub stars and 2,797 forks, with active commits as of October 2026. The non-profit structure and a contributor competence-development program mean development continues without commercial pressure. Operators can track and contribute to the codebase directly.
- Publicly downloadable 12-billion-game PGN database: All rated games are published in a free PGN database updated monthly at database.lichess.org. No other major chess platform publishes its full game history for free download. Researchers and engine developers can use the dataset without a data license.
- Community-maintained translations in 140+ languages: Over 140 language localizations are maintained through a Crowdin project by community contributors. New chess communities can add or improve translations without waiting for an engineering release from the core team.
- Shared annotatable study board for coaching: The study feature provides a shared, annotatable analysis board where coaches and students can work through positions together in real time. This capability is typically locked behind paid tiers on commercial chess platforms.
Trade-offs
- Complex multi-service production deployment: Running Lila in production requires MongoDB, Redis, Elasticsearch, a Scala 3 build environment, and the separate lila-ws WebSocket server. The GitHub wiki documents the development setup, but production deployment requires backend operations experience. This is not a one-command install.
- 1,291 open GitHub issues as of October 2026: The project has 1,291 open issues as of October 2026. This is typical for a project at this scale, but it signals that some bugs and feature requests remain in the queue. Smaller community operators may encounter edge cases that are known but not yet fixed.
- AGPL-3.0 requires publishing modifications made in production: AGPL-3.0 requires that anyone running a modified version of Lila as a public network service must release those modifications under the same license. Operators who build proprietary features on top of the server cannot keep those changes private. Commercial managed-service deployments require careful license compliance.
Tech stack
FAQ
Lila is the name of the open source codebase; lichess.org is the public server that runs it. You can self-host Lila to create your own chess server, or use lichess.org directly without any installation. The two names refer to the same software at different levels.
No. Running Lila in production requires setting up MongoDB, Redis, Elasticsearch, a Scala 3 build environment, and the lila-ws WebSocket server. The GitHub wiki covers the development environment setup in detail, but the stack is complex. This is best suited for developers or teams with backend operations experience.
Lichess.org is free to use with no subscription required. Every feature, including full computer analysis, puzzles, tournaments, and the study board, is available at no cost. The service is funded by donations through a non-profit structure. There is no paid managed version of Lila.
Chess.com requires a paid membership to unlock full computer analysis and advanced puzzle training. Lichess.org, running Lila, provides all of these features free. Chess.com offers structured video lessons and a larger lesson library, which lichess.org does not match at the same depth. For pure play and analysis without a subscription, lichess.org is the stronger choice.
You can run Lila on your own servers for your community at no licensing cost, including for internal organizational use. If you modify Lila and run the modified version as a public network service, AGPL-3.0 requires you to publish those changes under the same license. You cannot offer Lila as a proprietary managed service and keep your modifications private.