What is Lighthouse?
Lighthouse is the gRPC service that enables communication between CloudShip Platform and registered Stations.Features
- Bidirectional Streaming - Real-time command dispatch and response
- Station Management - Track connected Stations and their capabilities
- Secure Communication - TLS-encrypted gRPC channels
- Load Balancing - Distribute commands across healthy Stations
Architecture
Communication Protocol
Registration
Station connects with registration key:Commands
Lighthouse sends commands to Stations:| Command | Description |
|---|---|
EXECUTE_AGENT | Run an agent with task |
LIST_AGENTS | Get available agents |
LIST_TOOLS | Get available MCP tools |
INSTALL_BUNDLE | Install bundle from registry |
SYNC | Trigger configuration sync |
Self-Hosted Lighthouse
For enterprise deployments, run your own Lighthouse:Requirements
- PostgreSQL database
- Redis (optional, for caching)
- TLS certificates
Docker Deployment
Configuration
Local Development
Run Lighthouse locally for testing:Monitoring
Lighthouse exposes metrics:| Metric | Description |
|---|---|
lighthouse_stations_connected | Number of connected Stations |
lighthouse_commands_total | Total commands processed |
lighthouse_command_duration_seconds | Command execution time |
lighthouse_errors_total | Error count |
/metrics endpoint.
Troubleshooting
Station Won’t Connect
- Lighthouse is running
- Port 50051 is accessible
- TLS configuration matches
Commands Timeout
- Station is responsive
- Network latency
- Command timeout settings
Authentication Failed
- Registration key is valid
- Key hasn’t been used before
- Organization permissions

