Dev Setup
For end users, see the one-liner install in the README.
This page is for contributors and developers who want to run from source.
1. Clone and install
git clone https://github.com/Bobain/chess-self-coach.git
cd chess-self-coach
uv venv && uv sync
2. Create a Lichess API Token
- Go to lichess.org/account/oauth/token/create
- Token description:
chess-self-coach - No special scopes needed (default read access is sufficient for fetching games)
- Click Submit — copy the token immediately (shown only once, starts with
lip_)
Test your token
curl -H "Authorization: Bearer lip_your_token" https://lichess.org/api/account
3. Configure
# Create your personal config from the template
cp config.example.json config.json
# Save your Lichess token
cp .env.example .env
# Edit .env and replace lip_your_token_here with your actual token
# Run interactive setup (verifies auth, saves config)
chess-self-coach setup
The setup command will:
- Check Stockfish availability
- Download Syzygy endgame tablebases (3-5 pieces, ~1 GB) if not already installed
- Ask for your Lichess username and API token
- Ask for your chess.com username
- Save your personal configuration to
config.json
!!! note
Both config.json and .env are gitignored — they contain your personal data (API token, usernames) and will never be pushed to the repository.
4. Verify
chess-self-coach train --stats
This shows your training progress statistics.