Skip to content

Install

Install the Anthracode CLI from npm on Windows or Linux and get the AI coding agent running in your terminal in minutes. macOS builds are planned.

Two primary install paths: use the curl installer on Linux/WSL, or install the published npm package everywhere. Source builds are covered at the end for contributors.

Linux x64 / WSL shortcut. Node 18 or later and npm are required; the script verifies both before installing the published package.

Terminal window
curl -fsSL https://www.anthracode.com/install | bash

Node 18 or later is required.

Terminal window
npm i -g anthracode-ai

Verify the install:

Terminal window
anthracode --version

If the Linux binary didn’t install (npm sometimes skips the per-platform optional dependency), re-run with:

Terminal window
npm i -g anthracode-ai --include=optional

The postinstall step also self-heals: it downloads and extracts the correct anthracode-linux-x64 binary from the npm registry if the optional dependency was skipped (common on WSL/nvm).

For contributors and people who want the absolute latest from anthracode/dev.

  • Bun 1.3.14 stable or newer. Do not use canary for release builds.
  • Git, any version.
  • A terminal. Anthracode is TUI-only; no web, desktop, or hosted server target is supported in this branch.

On Windows, make sure node-gyp prerequisites (Visual Studio Build Tools + Python) are on PATH if any native deps need rebuilding.

Terminal window
git clone https://github.com/rafa57600/anthracode.git
cd anthracode
bun install
Terminal window
cd packages/anthracode
bun run script/build.ts --single --skip-install

This produces packages/anthracode/bin/anthracode — a self-contained executable.

Terminal window
cd packages/anthracode
npm install -g .