# Loki Mode Openclaw

Launch Loki Mode autonomous SDLC agent.

- Repository: https://github.com/asklokesh/loki-mode (1114 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add asklokesh/loki-mode --skill loki-mode-openclaw -g -a claude-code -y`
Codex: `npx skills add asklokesh/loki-mode --skill loki-mode-openclaw -g -a codex -y`
Cursor: `npx skills add asklokesh/loki-mode --skill loki-mode-openclaw -g -a cursor -y`
Gemini CLI: `npx skills add asklokesh/loki-mode --skill loki-mode-openclaw -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add asklokesh/loki-mode`

## Description

Launch Loki Mode autonomous SDLC agent. Handles PRD-to-deployment with minimal human intervention. Invoke for multi-phase development tasks, bug fixing campaigns, or full product builds.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Loki Mode - OpenClaw Skill

## When to use
- User asks to "build", "implement", or "develop" a feature from a PRD
- User provides a requirements document and wants autonomous execution
- User says "loki mode" or references autonomous development
- User wants to run a full SDLC cycle on a codebase

## Prerequisites
- `loki` CLI installed on the host (via `npm install -g loki-mode` or Homebrew)
- One of: Claude Code, Codex CLI, or Gemini CLI installed
- Corresponding API key set (ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY)

## How to invoke

### Start a session
Use the bash tool with background mode:
```
bash(command: "loki start <prd-path> --bg --yes --no-dashboard", pty: true, background: true, workdir: "<project-dir>")
```

Key flags:
- `--bg`: Background mode (session outlives the tool call)
- `--yes`: Skip confirmation prompts
- `--no-dashboard`: Avoid port conflicts in sandboxed environments
- `--provider <claude|codex|gemini>`: Select AI provider (default: claude)
- `--budget <amount>`: Set cost limit in USD (auto-pause when exceeded)

### Monitor progress
Poll status every 30 seconds:
```
bash(command: "loki status --json", workdir: "<project-dir>")
```

The JSON output contains:
- `version`: Loki Mode version string
- `status`: inactive, running, paused, stopped, completed, unknown
- `phase`: Current SDLC phase (e.g., BOOTSTRAP, DISCOVERY, ARCHITECTURE, DEVELOPMENT, QA, DEPLOYMENT)
- `iteration`: Current iteration number
- `provider`: Which AI provider is active (claude, codex, gemini)
- `pid`: Process ID of the running session (null if not running)
- `elapsed_time`: Seconds since session start
- `dashboard_url`: URL of the web dashboard (null if disabled)
- `task_counts`: Object with `total`, `completed`, `failed`, `pending` counts

The rest: https://github.com/asklokesh/loki-mode/blob/HEAD/integrations/openclaw/SKILL.md
