-
Notifications
You must be signed in to change notification settings - Fork 173
FAQ
Loki Mode is an autonomous AI development orchestrator that transforms a Product Requirements Document (PRD) into a fully deployed application with minimal human intervention. It manages multiple AI agents, runs comprehensive SDLC phases, and learns from every session.
Named after the Norse god of mischief, Loki Mode operates autonomously and can surprise you with what it accomplishes. Like its namesake, it's clever, persistent, and gets things done through unconventional means.
Yes, Loki Mode is open source under the MIT license. However, you need API access to Claude, Codex, or Gemini (which have their own pricing).
- Claude Code (Full features - recommended)
- OpenAI Codex CLI (Degraded mode)
- Google Gemini CLI (Degraded mode)
# npm (recommended)
npm install -g loki-mode
# Homebrew
brew install asklokesh/tap/loki-mode
# Docker
docker pull asklokesh/loki-mode- Node.js 16+ (for npm install)
- Claude Code CLI installed and authenticated
- A PRD file describing what you want to build
Include:
- Clear overview of what to build
- Requirements as checkboxes
- [ ] - Tech stack preferences
- Any constraints or special requirements
Example:
# My App
## Overview
Build a todo app with React.
## Requirements
- [ ] Add/edit/delete todos
- [ ] Mark as complete
- [ ] Persist in localStorage
## Tech Stack
- React 18
- TypeScript
- TailwindCSS# Option 1: CLI
loki start ./my-prd.md
# Option 2: In Claude
# "Loki Mode with PRD at ./my-prd.md"loki stopYes:
loki pause # Pause after current phase
loki resume # Continue# Dashboard (web UI)
loki dashboard open
# CLI
loki status
loki logs -floki stop # Stop execution
loki reset all # Reset state
loki start ./prd.md # Try againParallel mode uses git worktrees to run multiple streams simultaneously:
- Feature development
- Testing
- Documentation
Enable with:
export LOKI_PARALLEL_MODE=trueLoki Mode learns patterns, mistakes, and successes from every session and applies them to future projects. View learnings with:
loki memory list
loki memory search "authentication"Configure webhooks for Slack, Discord, or custom endpoints:
export LOKI_SLACK_WEBHOOK="https://hooks.slack.com/..."
loki notify test- Token-based API authentication
- Audit logging for compliance
- Docker sandbox for isolation
- Project registry for multi-project management
- Staged autonomy for approval gates
All are opt-in:
export LOKI_ENTERPRISE_AUTH=true
export LOKI_ENTERPRISE_AUDIT=trueClaude Code (recommended) for:
- Complex projects
- Parallel execution needed
- Best quality results
Codex/Gemini for:
- Cost optimization
- Simple projects
- Provider preference
When using Codex or Gemini, some features aren't available:
- No parallel agents (sequential only)
- No Task tool (subagents)
- No MCP integration
Loki Mode automatically adjusts to work within these limitations.
No, provider is set at session start. To change:
loki stop
loki start ./prd.md --provider codex- Project:
.loki/config.yaml - User:
~/.config/loki-mode/config.yaml
No, defaults work great. Config is only needed for customization.
Yes, all options can be set via environment:
export LOKI_MAX_RETRIES=100
export LOKI_PARALLEL_MODE=trueCheck logs:
loki logs | grep -i errorCommon causes:
- Rate limiting (will auto-retry)
- PRD too vague
- Missing dependencies
- Authentication expired
loki stop
loki reset all
rm -rf .loki/ # Optional: full resetEnable parallel mode:
export LOKI_PARALLEL_MODE=trueOr use simpler complexity:
export LOKI_COMPLEXITY=simpleLoki Mode runs locally and doesn't send your code to external servers (except the AI provider you're using).
- Claude: Uses your authenticated CLI
- Webhooks: Stored in config (use env vars for secrets)
- Tokens: SHA256 hashed, never stored plain
For untrusted code or CI/CD, yes:
export LOKI_SANDBOX_MODE=trueThis runs in an isolated Docker container.
No separate enterprise version. Enterprise features are built into the open source version and enabled via configuration:
export LOKI_ENTERPRISE_AUTH=true
export LOKI_ENTERPRISE_AUDIT=true- GitHub Issues: Bug reports and feature requests
- GitHub Discussions: Community Q&A
Yes, MIT license allows commercial use.
- Fork the repository
- Create a feature branch
- Make changes
- Submit a pull request
Check GitHub Projects for planned features.