lc component
Manage project components such as AI models, databases, storage, and other services. Components are the building blocks of your LocalCloud project.Usage
lc comp
Commands
lc component list
List all available components and their status.
- Component ID and name
- Installation status ( Installed, � Available)
- Description
- Dependencies
lc component add
Add a component to your project.
- Model selection for AI components
- Dependency validation and auto-installation
- Configuration prompts
- Progress indicators
lc component remove
Remove a component from your project.
- Dependency check (warns if other components depend on this one)
- Confirmation prompt
- Data preservation options
lc component info
Show detailed information about a component.
- Component description
- Current status
- Dependencies
- Configuration
- Resource usage
lc component update
Update component configuration (e.g., change model).
Available Components
AI Components
llm
- Language Model
- Purpose: Run large language models locally
- Dependencies: None
- Models: Llama, Mistral, Qwen, Gemma, etc.
- Port: 11434 (Ollama)
embedding
- Embedding Model
- Purpose: Generate text embeddings for RAG
- Dependencies:
llm
(shares Ollama instance) - Models: all-minilm, nomic-embed-text, etc.
stt
- Speech-to-Text
- Purpose: Audio transcription
- Dependencies: None
- Model: OpenAI Whisper
Database Components
database
- PostgreSQL
- Purpose: Relational database
- Dependencies: None
- Features: Full PostgreSQL 16 with extensions
- Port: 5432
mongodb
- MongoDB
- Purpose: NoSQL document database
- Dependencies: None
- Features: MongoDB 7.0 with auth
- Port: 27017
vector
- Vector Database
- Purpose: Vector similarity search
- Dependencies:
database
(uses pgvector extension) - Features: Hybrid search, RAG support
Infrastructure Components
cache
- Redis Cache
- Purpose: High-performance caching
- Dependencies: None
- Features: Redis 7 with persistence
- Port: 6379
queue
- Message Queue
- Purpose: Background job processing
- Dependencies:
cache
(uses Redis) - Features: Job scheduling, pub/sub
storage
- Object Storage
- Purpose: S3-compatible file storage
- Dependencies: None
- Features: MinIO with web console
- Port: 9000/9001
Examples
Basic Component Management
Building an AI Chat App
E-commerce Backend
Updating Components
Component Dependencies
Dependencies are automatically resolved when adding components:Component Status
Components can be in several states:- Available: Can be added to project
- Installed: Added to project configuration
- Running: Active and serving requests
- Stopped: Installed but not running
- Error: Failed to start or configure
Best Practices
Planning Your Stack
- Start Simple: Begin with core components needed
- Add Incrementally: Add components as requirements grow
- Check Dependencies: Understand what each component needs
- Consider Resources: Each component uses system resources
Resource Management
Model Selection Guidelines
- Development: Use smaller models (3B parameters)
- Production: Use larger models (7B+ parameters)
- Specialized: Use task-specific models (code, math, etc.)
Troubleshooting
Component Won’t Start
- Check dependencies:
lc component info llm
- Verify resources:
lc doctor
- Check logs:
lc logs llm
- Restart service:
lc restart llm
Dependency Conflicts
- Add dependency first:
lc component add cache
- Add both together:
lc component add cache queue
Model Download Issues
- Check internet connection
- Verify disk space:
lc info
- Try different model:
lc models list
- Check Ollama service:
lc status