You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lora Code is a powerful AI-driven command-line coding assistant that seamlessly integrates into your development workflow. Built for professional developers and teams, it provides intelligent code suggestions, automated refactoring, and comprehensive project understanding directly from your terminal.
Features
Core Capabilities
Feature
Description
🤖 AI-Powered Coding
Intelligent code generation, refactoring, and explanations
🏗️ Architect Mode
Design-first approach with separate architect and editor models
📊 Context Mode
Automatic identification of relevant files for your task
💬 Ask Mode
Query your codebase without making changes
🗺️ Repository Mapping
Intelligent codebase understanding with customizable token limits
🔄 Git Integration
Automatic commits, diffs, and version control management
Advanced Features
Feature
Description
🎤 Voice Input
Record and transcribe voice commands (WAV, MP3, WebM)
💾 Checkpoints
Save and restore session states
🪝 Hooks System
Custom automation triggers for various events
✅ Auto-Approve
Configurable automatic approval for different action categories
🌐 Web Scraping
Fetch and analyze web content with Playwright support
🔐 Authentication
Secure device-flow authentication with credential caching
git clone https://github.com/Lora-Technologies/loracode.git
cd loracode
pip install -e .
Upgrade
# Upgrade to latest stable version
loracode --upgrade
# Install from main branch (development)
loracode --install-main-branch
Quick Start
1. Authentication
# Interactive login with device flow
loracode
# Then use: /auth login# Or set API key directlyexport LORA_CODE_API_KEY="your-api-key"
2. Start a Session
# Start interactive session
loracode
# Work with specific files
loracode src/main.py src/utils.py
# Use a specific model
loracode --model gpt-4
# Single message mode (non-interactive)
loracode -m "Add error handling to main.py"
Usage
Chat Modes
Mode
Command
Description
Code
/code
Make code changes (default)
Architect
/architect
Design changes with architect model, implement with editor
Ask
/ask
Ask questions without making changes
Context
/context
Auto-identify files needed for a task
Help
/help
Get help about Lora Code usage
In-Session Commands
File Management
Command
Description
/add <file>
Add file(s) to the editable session
/drop [file]
Remove file(s) from session (all if no argument)
/read-only <file>
Add file(s) as read-only reference
/ls
List all files in session and repository
Git Operations
Command
Description
/commit [message]
Commit pending changes
/diff
Show changes since last commit
/undo
Undo the last Lora Code commit
/git <command>
Run any git command
Session Management
Command
Description
/clear
Clear conversation history
/reset
Clear history and drop all files
/tokens
Show token usage breakdown
/settings
Display current configuration
Model Configuration
Command
Description
/model [name]
Switch or display current model
/editor-model <name>
Set the editor model
/weak-model <name>
Set the weak model (for summaries)
/think-tokens [value]
Set thinking token budget
/chat-mode <mode>
Switch chat mode
Checkpoints
Command
Description
/checkpoint-save [name]
Save current session state
/checkpoint-load <name>
Restore a saved session
/checkpoints
List all saved checkpoints
/checkpoint delete <name>
Delete a checkpoint
Automation
Command
Description
/auto-approve <categories>
Auto-approve specific action categories
/auto-reject <categories>
Auto-reject specific action categories
/auto-ask <categories>
Reset categories to ask mode
/auto-status
Show current auto-approval settings
/hooks
List and manage automation hooks
Utilities
Command
Description
/web <url>
Fetch and add web content to chat
/voice
Record voice input (requires OpenAI API key)
/paste
Paste clipboard content (text or image)
/copy
Copy last assistant message to clipboard
/copy-context
Copy current context for external use
/editor
Open external editor for input
/run <command>
Execute shell command
/test [command]
Run tests
/lint
Lint and fix files
/map
Show repository map
/report
Report an issue on GitHub
/language [code]
Change UI language (en/tr)
/auth <login|logout|status>
Manage authentication
/help [topic]
Get help on specific topics
/quit
Exit Lora Code
Configuration
Configuration Files
Lora Code searches for configuration in the following order:
--model MODEL # Main chat model
--weak-model MODEL # Model for summaries and commits
--editor-model MODEL # Model for editor tasks
--edit-format FORMAT # Edit format (diff, whole, architect, etc.)
--architect # Use architect edit format
--thinking-tokens VALUE # Thinking token budget (0 to disable)
API Settings
--api-key KEY # Lora Code API key
--api-base URL # API base URL
--timeout SECONDS # API call timeout
--verify-ssl / --no-verify-ssl # SSL verification
--map-tokens N # Token limit for repo map (0 to disable)
--map-refresh MODE # Refresh mode: auto, always, files, manual
--map-multiplier-no-files N # Multiplier when no files specified
--dark-mode / --light-mode # Color scheme
--pretty / --no-pretty # Colorized output
--stream / --no-stream # Streaming responses
--code-theme THEME # Syntax highlighting theme
--show-diffs # Show diffs when committing
Voice Settings
--voice-format FORMAT # Audio format: wav, mp3, webm
--voice-language LANG # ISO 639-1 language code
--voice-input-device NAME # Input device name
Checkpoint Settings
--load-checkpoint NAME # Load checkpoint at startup
--save-on-exit [NAME] # Save checkpoint on exit
--checkpoint-dir DIR # Custom checkpoint directory
Automation
--auto-approve CATEGORIES # Auto-approve categories (comma-separated)
--auto-reject CATEGORIES # Auto-reject categories
--yes-always # Always confirm prompts
--lint-cmd "LANG: CMD"# Custom lint command per language
--test-cmd CMD # Test command
--auto-lint / --no-auto-lint # Auto-lint after changes
--auto-test / --no-auto-test # Auto-test after changes
Modes
-m, --message MSG # Single message mode
-f, --message-file FILE # Message from file
--gui # Browser-based interface
--copy-paste # Auto copy/paste with web UI
--watch-files # Watch for AI coding comments
Other Options
--vim # VI editing mode
--multiline # Multi-line input mode
--fancy-input / --no-fancy-input # Input with history/completion
--notifications # Enable notifications
--detect-urls # Auto-detect URLs in input
--language LANG # UI language (en, tr)
--encoding ENCODING # I/O encoding (default: utf-8)
--verbose # Verbose output
--version # Show version
--help # Show help
Hooks System
Hooks allow you to run custom commands at specific events during your Lora Code session.
Configuration
Create .loracode/settings.json in your project root: