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.
curl -fsSL https://www.anthracode.com/install | bashNode 18 or later is required.
npm i -g anthracode-aiVerify the install:
anthracode --versionIf the Linux binary didn’t install (npm sometimes skips the per-platform optional dependency), re-run with:
npm i -g anthracode-ai --include=optionalThe 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).
Option C — build from source (contributors)
Section titled “Option C — build from source (contributors)”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.
git clone https://github.com/rafa57600/anthracode.gitcd anthracodebun installcd packages/anthracodebun run script/build.ts --single --skip-installThis produces packages/anthracode/bin/anthracode — a self-contained executable.
cd packages/anthracodenpm install -g .