CLI for Locus - AI-native project management platform
npm install @locusai/cliCommand-line interface for Locus - an AI-native project management platform for engineering teams.
``bash`
npm install -g @locusai/cli
Or with other package managers:
`bashpnpm
pnpm add -g @locusai/cli
Quick Start
`bash
Initialize Locus in your project
locus initIndex your codebase for AI context
locus indexRun an agent to work on tasks
locus run --api-key YOUR_API_KEYExecute a prompt with repository context
locus exec "Explain the authentication flow"
`Commands
$3
Initialize Locus in the current directory. Creates the necessary configuration files and directory structure:
-
.locus/ - Configuration directory
- .locus/config.json - Project settings
- CLAUDE.md - AI instructions and context
- .agent/skills/ - Domain-specific agent skillsRunning
init on an already initialized project will update the configuration to the latest version.$3
Index the codebase for AI context. This analyzes your project structure and creates a searchable index that helps AI agents understand your codebase.
`bash
locus index [options]Options:
--dir Project directory (default: current directory)
--model AI model to use
--provider AI provider: claude or codex (default: claude)
`$3
Start an agent to work on tasks from your Locus workspace.
`bash
locus run [options]Options:
--api-key Your Locus API key (required)
--workspace Workspace ID to connect to
--sprint Sprint ID to work on
--model AI model to use
--provider AI provider: claude or codex (default: claude)
--api-url Custom API URL
--dir Project directory (default: current directory)
--skip-planning Skip the planning phase
`$3
Run a prompt with repository context. Supports both single execution and interactive REPL mode.
`bash
locus exec "your prompt" [options]
locus exec --interactive [options]Options:
--interactive, -i Start interactive REPL mode
--session, -s Resume a previous session
--model AI model to use
--provider AI provider: claude or codex (default: claude)
--dir Project directory (default: current directory)
--no-stream Disable streaming output
--no-status Disable status display
`#### Session Management
Manage your exec sessions with these subcommands:
`bash
List recent sessions
locus exec sessions listShow messages from a session
locus exec sessions show Delete a session
locus exec sessions delete Clear all sessions
locus exec sessions clear
`Configuration
Locus stores its configuration in the
.locus/ directory within your project:-
config.json - Project settings including workspace ID and version
- codebase-index.json - Indexed codebase structureThe
CLAUDE.md file in your project root provides AI instructions and context that agents use when working on your codebase.AI Providers
Locus supports multiple AI providers:
- Claude (default) - Anthropic's Claude models
- Codex - OpenAI Codex models
Specify the provider with the
--provider flag:`bash
locus exec "your prompt" --provider codex
locus run --api-key YOUR_KEY --provider claude
`Requirements
- Node.js 18 or later
- A Locus API key (for
run` command)MIT