Commands
Complete reference for all Kodezi CLI commands
Kodezi CLI includes multiple commands designed for development workflows, automation, debugging, configuration discovery, and authentication.
While most users spend the majority of their time in interactive mode, understanding the full command set helps unlock the CLIβs complete capabilities.
Command Overview
Below is a quick reference to all available commands.
kodezi
Start interactive AI assistant mode with natural language interface and session persistence
kodezi auth
Manage authentication credentials for login, status check, and logout
kodezi run
Execute single tasks non-interactively for automation and CI/CD
kodezi dirs
Display configuration and data directory locations
kodezi logs
View CLI logs to debug issues, monitor LSP, or inspect MCP errors.
Interactive Mode (Default)
The primary command of Kodezi CLI:
kodeziThis is the primary way to use Kodezi CLI. It starts a conversational interface where you can work naturally with AI on development tasks.
Features:
- Natural language interface
- Session persistence
- Full tool access
- Context continuity across conversations
Auth Command
Manage authentication credentials:
# Interactive login with email and token
kodezi auth login
# Check authentication status
kodezi auth status
# Remove stored credentials
kodezi auth logoutRequired before using other commands (except in interactive mode, which prompts for authentication).
Run Command (Non-Interactive Execution)
The run command lets you execute one AI task at a time, without entering interactive mode.
Useful for:
- CI/CD pipelines
- Git hooks
- Automation scripts
- One liners in the terminal
# Run a prompt from arguments
kodezi run "Explain the use of context in Go"
# Pipe input from stdin
echo "What is this code doing?" | kodezi run
# Run quietly (no spinner)
kodezi run -q "Generate a README"Flags:
--quiet,-q- Hide spinner output
Use cases:
- CI/CD pipelines
- Automation scripts
- Quick one-off tasks
Dirs Command
Shows the file paths for global config, data directory, and project config.
# Show all directories
kodezi dirs
# Show only config directory
kodezi dirs config
# Show only data directory
kodezi dirs dataUseful for troubleshooting or when you need to manually access configuration files.
Logs Command
Use logs to diagnose errors in:
- MCP servers
- LSP initialization
- File permission issues
- System failures
- Network errors
- Unexpected behavior
# Show last 1000 lines (default)
kodezi logs
# Follow log output in real-time
kodezi logs -f
# Show last 500 lines
kodezi logs -t 500
# Follow with custom tail
kodezi logs -f -t 100Flags:
| Flag | Meaning |
|---|---|
--follow, -f | Stream logs in real time |
--tail, -t | Limit log lines displayed |
Global Flags
These global flags can be added to any Kodezi CLI command.
Working Directory
Run in a different directory:
# Run in specific directory
kodezi --cwd /path/to/project
kodezi -c /path/to/projectCustom Data Directory
Useful when isolating environments:
# Use custom data directory
kodezi --data-dir /path/to/.kodezi
kodezi -D /path/to/.kodeziDebug Mode
Enable verbose debugging:
# Enable debug logging
kodezi --debug
kodezi -dShows internal logs, requests, LSP boot logs, MCP handshake logs, etc.
Yolo Mode
# Skip all permission prompts (dangerous)
kodezi --yolo
kodezi -yUse Yolo Mode with Caution
Yolo mode automatically approves all permissions without prompting. Use only in trusted environments where you understand the consequences of automated approvals.
Help
# Show help for any command
kodezi --help
kodezi auth --help
kodezi run --helpShows command-specific help and usage examples.
Version
# Display version
kodezi --version
kodezi -vCommon Usage Patterns
First Time Setup
# Authenticate
kodezi auth login
# Start interactive session
kodeziGet authenticated and ready to use Kodezi CLI in seconds.
Development Workflow
# Start in project directory
cd /path/to/project
kodezi
# Or specify directory
kodezi -c /path/to/projectWork naturally with AI assistance directly in your project.
Automation
# Single task execution
kodezi run "Run tests and generate coverage report"
# Quiet mode for scripts
kodezi run -q "Format all code files"
# Auto-approve for CI/CD
kodezi run -y "Analyze code for security issues"Integrate AI-powered tasks into your build pipeline and scripts.
Debugging
# View recent logs
kodezi logs
# Watch logs in real-time
kodezi logs -f
# Check authentication
kodezi auth status
# Enable debug output
kodezi -dTroubleshoot issues and monitor CLI activity.
Next Steps
Explore each command in detail:
- Interactive Mode: Master the primary interface
- Auth: Authentication setup
- Run: Automation patterns
- Dirs: Configuration locations
- Logs: Activity tracking
Or explore related topics:
- Configuration: Customize behavior