Skip to main content

Installation

Requirements

  • Bun ≥ 1.0 (recommended) or Node.js ≥ 18
  • An LLM provider — Ollama (free, local) or a cloud API key

Run without installing (npm package)

The published CLI is @algiras/ak-coder. It bundles @ak-coder/core — no separate core install needed.

bunx @algiras/ak-coder

Or with npm/npx:

npx @algiras/ak-coder

Corporate / custom npm registry: if bunx or npx fails with ConnectionRefused or tries to reach a private registry (e.g. npm.dev.wixpress.com), your global ~/.npmrc is overriding the public registry. Point at npmjs for this package:

NPM_CONFIG_REGISTRY=https://registry.npmjs.org bunx @algiras/ak-coder
NPM_CONFIG_REGISTRY=https://registry.npmjs.org npx @algiras/ak-coder

Or install globally with an explicit registry:

npm install -g @algiras/ak-coder --registry https://registry.npmjs.org

Install globally

# Bun
bun install -g @algiras/ak-coder
ak-coder

# npm
npm install -g @algiras/ak-coder
ak-coder

Clone and run (monorepo)

For hacking on ak-coder itself, or to use unpublished workspace packages (@ak-coder/core, @ak-coder/sdk):

git clone https://github.com/Algiras/ak-coder
cd ak-coder
bun install # links all workspace packages
bun start # same as bun run apps/cli/src/index.ts

Monorepo packages

PackageNamePublished to npm
CLI@algiras/ak-codernpm
Core agent@ak-coder/core❌ workspace only (bundled into CLI on publish)
Plugin SDK@ak-coder/sdk❌ workspace only — install via path (see Building a Plugin)
Eval harness@ak-coder/evals❌ workspace only — run from repo root

Build the publishable CLI bundle:

bun run build:cli # outputs apps/cli/dist/index.js

Run evals (requires Ollama):

bun run packages/evals/run.ts

Setting up Ollama (local, free)

# macOS
brew install ollama
ollama serve # starts the server at localhost:11434
ollama pull gemma3:4b # download a model (~3GB)

On first run ak-coder auto-detects Ollama and uses gemma3:4b if available.

Bootstrap a workspace

bunx @algiras/ak-coder init
# if bunx fails (corporate registry), use:
NPM_CONFIG_REGISTRY=https://registry.npmjs.org bunx @algiras/ak-coder init
# or from a clone:
bun start init

Creates AGENTS.md and .akcoderignore in the current directory.

See Configuration for CLI flags (--plan, --sandbox) and provider setup.

Using a cloud provider

Set your key as an environment variable:

# OpenRouter (has a free tier)
OPEN_ROUTER_KEY=sk-or-... bunx @algiras/ak-coder

# Gemini
GEMINI_API_KEY=... bunx @algiras/ak-coder

Or configure it permanently in ~/.ak-coder/config.json — see Configuration.