Download
The agent runs on your computer — the same one as on the phone. In the Windows installer and the Linux deb / rpm, the window app and the command line are one piece of software: installed, upgraded and removed together. On Linux without a desktop (servers, cloud machines) you can install just the command line.
No downloadable version yet.
Windows (64-bit)
- Double-click the installer and it's done: it installs for the current user and needs no administrator rights. The Start menu gets “灵刻 LeanCarve”; in a terminal just type
lc(full nameleancarve; both work — terminals opened after the install pick it up). - The installer is not code-signed (we haven't bought a certificate yet). So the first time you open it after downloading, Windows will likely show the blue “Windows protected your PC” box: click “More info”, then “Run anyway”.
- The first time you open the window app it asks you to pick a project folder — that's where the agent reads and writes files and runs commands. To switch: menu “文件 → 打开文件夹…” (File → Open folder).
- To uninstall: Settings → Apps → 灵刻 LeanCarve. The uninstaller asks whether to also delete your session history, settings and API keys; answer “No” to keep them.
- Upgrade:
leancarve upgradein a terminal (versions whoseleancarve --helplists it). It downloads the new installer from here, checks its SHA-256, and only if it matches installs it in the background. While another LeanCarve window or terminal session is open it won't install and asks you to close them first — the installer would close them, cutting off whatever they're running. You can also download the new installer from this page and run it.
Linux: one line
curl -fsSL https://leancarve.win/install.sh | bash
- Machines without a display (servers, cloud machines, or when you're in over SSH): it installs just the command line — no sudo, no graphics or sound libraries; it brings its own Node and unpacks into
~/.leancarve. Both x86_64 and arm64. It asks nothing. - Computers with a display (and this release has a window-app package for your CPU, see the list above): it first asks whether to install the window app too. Yes: it installs the deb / rpm below (the one for your CPU) through apt / dnf, which needs sudo once — the window app needs the system's graphics libraries and a root-owned sandbox file, and both can only be put in place as root; the window app and the command line are then one piece of software, and an earlier command-line-only copy is removed. No, or if that install fails: just the command line, without sudo. If this release has no window-app package for your CPU, it doesn't ask and, as before, installs just the command line, without sudo.
- To skip the question:
… | bash -s -- --clifor the command line only,… | bash -s -- --desktopfor the window app too. - Whichever it installs, it downloads it from here and checks its SHA-256 first; only if it matches does it install. To see what it does first, open https://leancarve.win/install.sh in a browser.
- For the command-line-only install, to make
lc(full nameleancarve) typeable: if a directory under your home is already on your PATH (such as~/.local/bin), it links into it — usable in this terminal right away; otherwise it adds a PATH line to your shell's startup files (for bash, both the one terminals read and the one login shells read; marked, and removed on uninstall), and you need to open a new terminal (or runexec $SHELL) — an install script can't change the terminal you're in, and it says so at the end. If another program is already calledlcon this machine, it doesn't take the name; use the full name. To keep it out of your startup files, putLEANCARVE_NO_MODIFY_PATH=1in front ofbash. - Upgrade:
leancarve upgrade(versions whoseleancarve --helplists it), or run the same line again. To uninstall the command-line-only copy:curl -fsSL https://leancarve.win/install.sh | bash -s -- --uninstall; your sessions and settings are kept (in~/.local/share/leancarve). Removing the window app is in the next section. - musl-based distributions (Alpine and the like) can't run the bundled Node.
Linux: installing the window app yourself
- Ubuntu / Debian:
sudo apt install ./leancarve_VERSION_amd64.deb(x86_64);sudo apt install ./leancarve_VERSION_arm64.deb(arm64) - Fedora / RHEL:
sudo dnf install ./leancarve-VERSION.x86_64.rpm(x86_64);sudo dnf install ./leancarve-VERSION.aarch64.rpm(arm64) - Each CPU has its own package: run
uname -min a terminal — if it printsx86_64, use the x86_64 package; if it printsaarch64, use the arm64 package. In the list above, every window-app package is marked with its CPU; if there is none for your CPU, this release doesn't have one — the command line is there for both x86_64 and arm64, see “Linux: one line”. - Your application menu gets “灵刻 LeanCarve”; in a terminal,
lc(full nameleancarve) is the command line andleancarve-desktopopens the window (if/usr/bin/lcalready belongs to another program, only the full name). The window app needs the system's graphics and sound libraries; the package manager installs them along with it. - If Chinese text shows up as boxes, the system has no Chinese font: the deb recommends
fonts-noto-cjk; with the rpm, install one yourself, e.g.google-noto-sans-cjk-fontson Fedora. - None of these packages is signed (dnf will say it skipped the signature check).
- Upgrade:
leancarve upgrade(versions whoseleancarve --helplists it); it needs sudo once. While the window is open it won't install and asks you to close it first (replacing files an open window is using can crash it). Or run the one-line install again. - To uninstall:
sudo apt remove leancarveorsudo dnf remove leancarve. Your sessions and settings live in~/.local/share/leancarve; the uninstaller leaves them alone (it runs as root and, by convention, doesn't touch home directories) — delete them yourself if you don't want them.
Android
No Android version to download yet.
- There is only an arm64 package.
- It isn't in an app store: download it with your phone's browser and tap it to install. Android first asks you to allow installing apps from that source (from Android 8 on, per browser; on older versions, the “Unknown sources” switch in Settings); allow it as prompted.
- Upgrade: download the new version and install it over the old one; the app's data is kept.
Checking the download
Each file has its SHA-256 listed under it. On Windows run certutil -hashfile FILE SHA256, on Linux sha256sum FILE; if the result matches, the file wasn't damaged or swapped on its way to you.
It can't prove the file itself is fine: the files and this page live on the same server, and if that server were tampered with, both would change together. That isn't something this page can prove to you.
Not yet
- macOS: packaging and signing can only be done on a Mac, and that hasn't been done yet.
- Automatic updates: LeanCarve doesn't check for new versions on its own — that would tell our server, every time you open it, “this address uses LeanCarve, and this version”. To find out whether there is one: “帮助 → 检查新版本…” (Help → Check for a new version) in the window app's menu, or
leancarve upgrade --checkin a terminal — it asks here only when you click or type it (in versions whose menu or--helphas it). To upgrade, runleancarve upgradeor come back here. Installing a new version replaces the old one and keeps your sessions and settings.