-
Notifications
You must be signed in to change notification settings - Fork 173
Installation
github-actions[bot] edited this page Apr 30, 2026
·
2 revisions
Complete installation guide for Loki Mode.
Before installing Loki Mode, ensure you have:
- Node.js 16+ (for npm installation)
- Git (for version control and worktrees)
- Claude Code CLI (or alternative provider CLI)
npm install -g loki-modeVerify installation:
loki --versionbrew tap asklokesh/tap
brew install loki-modedocker pull asklokesh/loki-mode
docker run -it asklokesh/loki-mode --versiongit clone https://github.com/asklokesh/loki-mode.git
cd loki-mode
npm linkClaude Code provides full feature support.
# Install Claude Code CLI
npm install -g @anthropic-ai/claude-code
# Authenticate
claude loginCodex runs in degraded mode (sequential execution only).
# Install Codex CLI
npm install -g @openai/codex-cli
# Authenticate
codex authGemini runs in degraded mode (sequential execution only).
# Install Gemini CLI
npm install -g @google/gemini-cli
# Authenticate
gemini authRun these commands to verify everything is working:
# Check Loki Mode version
loki --version
# Check provider availability
loki provider list
# View help
loki --helpA spec can be a PRD markdown file, a GitHub issue, or a YAML feature brief. The simplest is a markdown PRD. Create a file called my-prd.md:
# My Application
## Overview
Build a simple todo application.
## Requirements
- [ ] Add/edit/delete todos
- [ ] Mark todos as complete
- [ ] Persist data in localStorage
## Tech Stack
- React 18
- TypeScript
- TailwindCSS# Start with your spec (PRD markdown file)
loki start ./my-prd.md
# Or use a GitHub issue as the spec
# loki issue 123 --start
# Monitor progress
loki status
loki logs -fIf loki command is not found:
# Check npm global path
npm config get prefix
# Add to PATH (add to ~/.zshrc or ~/.bashrc)
export PATH="$PATH:$(npm config get prefix)/bin"
source ~/.zshrcIf you get EACCES errors during npm install:
# Fix npm permissions
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
# Reinstall
npm install -g loki-modeIf Claude CLI is not detected:
# Check if installed
which claude
claude --version
# If not found, install it
npm install -g @anthropic-ai/claude-code
claude loginnpm update -g loki-modebrew upgrade loki-modedocker pull asklokesh/loki-mode:latestnpm uninstall -g loki-modebrew uninstall loki-modeRemove configuration and data:
# Project-level data
rm -rf .loki/
# User-level data
rm -rf ~/.loki/
rm -rf ~/.config/loki-mode/- Getting Started - Quick start guide
- Configuration - Configuration options
- Providers - Provider comparison
- Troubleshooting - Common issues