Using engines running outside of the browser for analysis on lichess.org.
-
Create a token at https://lichess.org/account/oauth/token/create?scopes[]=engine:read&scopes[]=engine:write
-
Install your favorite engine. (Under Windows is it is recommended to place it directly in
C
. Under Unix chooseusr/bin/YOUR_ENGINE_FOLDER/program
) -
Install python3 in case you have not: https://www.python.org/downloads/
-
Install pip3 - Packages
First go into your project folder.
On Windows:
py -m ensurepip --upgrade py -m pip install -r requirements.txt
On other systems:
py3 -m ensurepip --upgrade py3 -m pip install -r requirements.txt
On Windows run:
py3 example-provider.py --engine C:\YOUR_ENGINE_FOLDER\program.exe --token YOUR_TOKEN
On Unix run:
LICHESS_API_TOKEN=YOUR_TOKEN python3 example-provider.py --engine /usr/bin/YOUR_ENGINE_FOLDER/program
The connector should now run successful.
-
Open the hamburger menu and select the Alpha 2 provider
An official (more user-friendly) provider is under development.
Will provide Stockfish 15 for 64-bit x86 platforms, built with profile-guided optimization, automatically selecting the best available binary for your CPU.
🔧 🔨 The protocol is subject to change. Please make an issue or get in contact to discuss.
Lichess provides an HTTP API for third-party clients and providers.