RepositoryRust
TH

thomas-mauran/chess-tui

Play chess in any terminal. Rust TUI, Stockfish, Lichess.

1.2kstars
85forks
19issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: chessboard

#1 Repository of the week

1
TINIX TRENDING·Topic: chess-puzzle

#1 Repository of the week

2
TINIX TRENDING·Topic: lichess

#2 Repository of the week

chess-tui

Chess in the terminal. Free, cross-platform terminal chess game in Rust. Local play, Stockfish, Lichess. 🦀

Chess TUI: terminal chess board with piece selection

Stars Downloads GitHub CI License: MIT GitHub release Built With Ratatui

Table of contents

Description

chess-tui is a free, open-source terminal chess game. Play with a friend locally, against any UCI chess engine (e.g. Stockfish), or online via Lichess. Runs on macOS, Linux, and Windows.

Quick Install

Homebrew:

brew install thomas-mauran/tap/chess-tui
chess-tui

Cargo:

cargo install chess-tui
chess-tui

Debian/Ubuntu:

DEB_URL=$(curl -s "https://api.github.com/repos/thomas-mauran/chess-tui/releases/latest" | jq -r '.assets[] | select(.name | endswith(".deb")) | .browser_download_url') && curl -LO "$DEB_URL" && sudo dpkg -i "$(basename "$DEB_URL")" && sudo apt-get install -f
chess-tui

Available on:

Packaging status

For installation via package managers or other methods, see the Installation Guide.

Features

Local 2 player mode Chess TUI local two-player mode in terminal
Play against any UCI chess engine Playing against UCI chess engine (e.g. Stockfish) in terminal
Lichess Integration

Play online on Lichess directly from your terminal!

Lichess integration menu in chess-tui

See Lichess Features for details.

Online multiplayer Chess TUI online multiplayer in terminal
Helper menu Chess TUI helper menu
Custom skins Chess TUI custom skins and piece styles demo

Quick Start

Connect a chess engine:

# Simple engine path
chess-tui -e /path/to/engine

# Engine with command-line arguments (e.g., GNU Chess with UCI mode)
chess-tui -e "/opt/homebrew/bin/gnuchess --uci"

# Stockfish example
chess-tui -e /opt/homebrew/bin/stockfish

See Bot Configuration for details.

Configure Lichess:

chess-tui -l YOUR_LICHESS_TOKEN_HERE

See Lichess Setup for details.

Other options: --depth 15 (engine depth), --difficulty easy|medium|hard|magnus, --no-sound. See Configuration for all flags and config file.

Controls

KeyAction
Arrow keys or h/j/k/lMove cursor
SpaceSelect piece / move
EscDeselect or close popup
?Help menu
sCycle skins
bBack to menu
qQuit

Press ? in-game for the full list.

Documentation

📚 Full Documentation (installation, configuration, Lichess, multiplayer).

  • Installation (Cargo, Homebrew, Debian/Ubuntu, Arch, NixOS, Docker, binary)
  • Configuration (config file, skins, bot, logging)
  • Lichess (seek game, join by code, ongoing games, puzzles)
  • Multiplayer (LAN and over the internet, e.g. with bore)

Platforms

PlatformInstall
macOSbrew install thomas-mauran/tap/chess-tui or cargo install chess-tui
Linuxcargo install chess-tui, .deb, or binary
Archpacman -S chess-tui
NixOSnix-shell -p chess-tui or install from nixpkgs
Windowscargo install chess-tui

FAQ

  • Does it work with Stockfish? Yes. Run chess-tui -e /path/to/stockfish (see Bot Configuration).
  • Can I play on Lichess from the terminal? Yes. Get a Lichess API token and run chess-tui -l YOUR_TOKEN.
  • What is chess-tui built with? Rust, ratatui (TUI), shakmaty (chess), ruci (UCI engine support).
  • Where is the config? config.toml and skins.json in your config dir (e.g. ~/.config/chess-tui/ on Linux). See Configuration.

Troubleshooting

Run into issues? Check the docs: Lichess setup & troubleshooting, Bot configuration & troubleshooting. Otherwise open an issue.

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines.


Terminal chess · Chess in the terminal · Chess CLI · Command line chess · Rust TUI · UCI engine · Lichess · Stockfish · ratatui

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
tauri-apps/tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

113.4k
Dec 1, 2026
RepositoryScala
lichess-org/lila

♞ lichess.org: the forever free, adless and open source chess server ♞

19.1k
Dec 1, 2026
RepositoryRust
spacedriveapp/spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

39.6k
Nov 25, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryC++
react/react-native

A framework for building native applications using React

127.0k
Nov 27, 2026
RepositoryRust
BurntSushi/ripgrep

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

70.7k
Nov 24, 2026
RepositoryRust
sharkdp/bat

A cat(1) clone with wings.

61.6k
Nov 29, 2026
RepositoryRust
sharkdp/fd

A simple, fast and user-friendly alternative to 'find'

45.4k
Dec 2, 2026