Blitz

Legion CLI Documentation

Legion CLI is an open-source AI coding agent that generates code from natural language, automates tasks, and supports 500+ AI models. It is built as a fork of OpenCode with significant enhancements for professional software engineering workflows.

Quick Start

# Install globally
npm install -g @legioncli

# Run in your project
legion

# Or use directly
legion run "implement user authentication"

Core Features

Feature Description
Memory System Persistent project memory via LEGION.md and session entries
Test Runner Auto-detect and run tests across 7+ frameworks
Git Integration PR creation, conflict resolution, and blame analysis
ELC Skills 278+ built-in skills for common development tasks
Context Mode Lazy senior dev mode with smart defaults
Multi-Model Support for 500+ AI models across providers

Architecture

Configuration

Development