Configuration Guide
This guide explains how to configure Lemo to match your development preferences and requirements.
Basic Configuration
Environment Variables
API Keys
# Anthropic API Key
export ANTHROPIC_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# OpenAI API Key
export OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Groq API Key
export GROQ_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Telemetry Settings
# Disable telemetry
export LEMO_TELEMETRY_DISABLED=true
Model Selection
You can configure which AI model to use:
lemo-tui configure
# Available options:
# - claude-opus
# - gpt4-o
# - llama-3-70b
# - ollama/deepseek-coder:6.7b
Advanced Configuration
Terminal UI Configuration
The terminal UI can be customized through command line arguments:
# Run in debug mode
lemo-tui --debug
# Use local model
lemo-tui --api_key=FOSS
# View all options
lemo-tui --help
Electron App Configuration
The Electron app settings can be found in:
~/Library/Application Support/Claude/claude_desktop_config.json
Example configuration:
{
<span class="text-yellow-400">"mcpServers"</span>: {
<span class="text-green-400">"serverName"</span>: {
<span class="text-blue-400">"command"</span>: <span class="text-orange-400">"node"</span>,
<span class="text-blue-400">"args"</span>: [<span class="text-orange-400">"/path/to/server/build/index.js"</span>],
<span class="text-blue-400">"env"</span>: {
<span class="text-green-400">"API_KEY"</span>: <span class="text-orange-400">"your-api-key"</span>
}
}
}
}
MCP Server Configuration
MCP (Model Context Protocol) servers can be configured in:
~/Library/Application Support/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Example configuration:
{
<span class="text-yellow-400">"mcpServers"</span>: {
<span class="text-green-400">"customServer"</span>: {
<span class="text-blue-400">"command"</span>: <span class="text-orange-400">"node"</span>,
<span class="text-blue-400">"args"</span>: [<span class="text-orange-400">"/path/to/server/index.js"</span>],
<span class="text-blue-400">"env"</span>: {
<span class="text-green-400">"CUSTOM_API_KEY"</span>: <span class="text-orange-400">"your-key-here"</span>
}
}
}
}
Project-Specific Settings
Git Integration
Lemo integrates with Git and can be configured for version control:
# Initialize Git repository
git init
# Configure Git user
git config user.name "Your Name"
git config user.email "your.email@example.com"
Editor Settings
The editor can be configured through the UI or configuration files:
- Line numbers
- Code folding
- Syntax highlighting
- Auto-formatting
- Theme preferences
Performance Tuning
Memory Management
Control memory usage through environment variables:
export LEMO_MAX_MEMORY=4096
Cache Settings
Configure caching behavior:
# Set cache directory
export LEMO_CACHE_DIR=/path/to/cache
# Set cache size limit
export LEMO_CACHE_SIZE=1024
Security Settings
Access Control
Limit file access:
# Restrict to specific directories
export LEMO_ALLOWED_PATHS=/path/to/projects
# Block sensitive directories
export LEMO_BLOCKED_PATHS=/path/to/sensitive
API Security
Secure API usage:
# Enable secure mode
export LEMO_SECURE_MODE=true
# Set API request timeout
export LEMO_API_TIMEOUT=30
Customization
Custom Commands
Add custom commands in your configuration:
{
<span class="text-yellow-400">"customCommands"</span>: {
<span class="text-green-400">"myCommand"</span>: {
<span class="text-blue-400">"script"</span>: <span class="text-orange-400">"/path/to/script.sh"</span>,
<span class="text-blue-400">"description"</span>: <span class="text-orange-400">"Custom command description"</span>
}
}
}
Shortcuts
Configure keyboard shortcuts:
{
<span class="text-yellow-400">"shortcuts"</span>: {
<span class="text-green-400">"togglePanel"</span>: <span class="text-orange-400">"cmd+shift+p"</span>,
<span class="text-green-400">"quickAction"</span>: <span class="text-orange-400">"ctrl+space"</span>
}
}
Troubleshooting
Configuration Validation
Verify your configuration:
lemo-tui verify-config
Debug Mode
Enable debug logging:
export LEMO_DEBUG=true
lemo-tui --debug
Reset Configuration
Reset to default settings:
lemo-tui reset-config
Next Steps
- Review Basic Usage
- Explore Features Overview
- Check out the Quick Start Guide