start
Install Anthracode.
Two paths: install the published binary from npm, or build from source. Most users want the npm route.
Option A — npm (recommended)
Node 18 or later is required.
~/terminal
npm i -g anthracode-aiVerify the install:
~/terminal
anthracode --versionOption B — build from source
For contributors and people who want the absolute latest from anthracode/dev.
prerequisites
- Bun 1.3.13 stable. Do not use canary — it crashes on
bun compileon Windows x64. - Git, any version.
- A terminal. Anthracode is TUI-only; no web, desktop, or hosted server target is supported in this branch.
Windows: make sure node-gyp prerequisites (Visual Studio Build Tools + Python) are on PATH if any native deps need rebuilding.
clone & install
~/terminal
git clone https://github.com/rafa57600/anthracode.git
cd anthracode
bun installIf bun install hangs on Windows, try a fresh cache dir:
~/terminal
bun install --cache-dir "$(mktemp -d)"build the TUI binary
~/terminal
cd packages/opencode
bun run script/build.ts --single --skip-installThis produces packages/opencode/bin/.anthracode — a self-contained executable.
install the command globally
npm link (recommended for development) creates a global anthracode command that runs via Bun with hot reload on source changes:
~/terminal
cd packages/opencode
npm linkOr copy the binary to a directory on PATH:
~/terminal
# Linux / macOS
cp packages/opencode/bin/.anthracode /usr/local/bin/anthracode
chmod +x /usr/local/bin/anthracode