Browse and solve LeetCode problems entirely from the terminal.
Test and submit solutions using CLI subcommands for scripting workflows.
Track and scaffold the daily LeetCode challenge automatically.
| harryycchou/lcx | anthropics/cargo-nix-plugin | brassworks-smp/brassworkslauncher | |
|---|---|---|---|
| Stars | 13 | 13 | 13 |
| Language | Rust | Rust | Rust |
| Setup difficulty | easy | hard | — |
| Complexity | 2/5 | 4/5 | 3/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Windows cookie auto-detection requires running as administrator.
lcx is a terminal application that lets you browse, read, write, test, and submit LeetCode coding problems without opening a web browser. It connects directly to LeetCode's own API and keeps a local cache of the problem list, so browsing problems feels instant once that cache is built. Running the program with no extra options opens a full interactive text interface inside your terminal, complete with a login screen, a dashboard showing your profile stats and a searchable problem list, and a solve screen with the problem description on one side and your code on the other. People who prefer scripting or one off commands can instead use individual subcommands to list problems, show a specific one, generate a solution file, run tests, or submit for a verdict, all without touching the interactive interface. Since LeetCode has no official public API for this kind of use, lcx logs in the same way your browser does, using session cookies. It can often detect these automatically from a browser you are already signed into, though on Windows this auto detection needs administrator permissions because Chrome, Edge, and Brave encrypt their cookies more strictly there. You can also copy your session cookie values in manually if you prefer not to grant that access. Installation is straightforward on Linux, macOS, and Windows through prebuilt binaries attached to each release, or you can build it from source if you have a recent Rust toolchain installed. The project separates its core logic, the part that talks to LeetCode and manages the cache, from its interface layer, so the command line tools and the interactive interface share the same underlying code. This tool is aimed at developers who practice coding problems on LeetCode and prefer working from the terminal instead of a browser tab. It is released under the MIT License, so it can be freely used, modified, and shared.
A terminal application for browsing, solving, testing, and submitting LeetCode problems without leaving the command line.
Mainly Rust. The stack also includes Rust, LeetCode API.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.