
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/badge/.NET-10.0-512BD4?logo=dotnet&labelColor=2C003E&color=5656FF]([] https://img.shields.io/badge/Agent%20Framework-1.0.0-blue]([] https://img.shields.io/github/license/seiggy/lucia-dotnet](https://github.com/seiggy/lucia-dotnet/blob/master/LICENSE) https://img.shields.io/badge/Home%20Assistant-Compatible-41BDF5](https://www.home-assistant.io/)
Lucia (pronounced LOO-sha) is an open-source, privacy-focused AI assistant that serves as a complete replacement for Amazon Alexa and Google Home. Built on the Microsoft Agent Framework with a multi-agent architecture, Lucia provides autonomous whole-home automation management through deep integration with Home Assistant.
| Platform | Status |
|---|---|
| Azure OpenAI / AI Foundry | ✅ Supported |
| OpenAI | ✅ Supported |
| Ollama | ✅ Supported |
| *** (Claude) | ✅ Supported |
| Google *** | ✅ Supported |
| Azure AI Inference | ✅ Supported |
| OpenAI-compatible (Open Router, etc.) | ✅ Supported |
Create a docker-compose.yml:
yamlservices: lucia-redis: image: redis:8.2-alpine container_name: lucia-redis networks: [lucia-network] ports: ["127.0.0.1:6379:6379"] command: > redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru volumes: [lucia-redis-data:/data] healthcheck: test: ["CMD", "redis-cli", "PING"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped lucia-mongo: image: mongo:8.0 container_name: lucia-mongo networks: [lucia-network] ports: ["127.0.0.1:27017:27017"] volumes: [lucia-mongo-data:/data/db] healthcheck: test: ["CMD", "mongosh", "--eval", "db.runCommand('ping').ok"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped lucia: image: seiggy/lucia-agenthost:latest container_name: lucia depends_on: lucia-redis: { condition: service_healthy } lucia-mongo: { condition: service_healthy } networks: [lucia-network] ports: ["7233:8080"] environment: - ASPNETCORE_ENVIRONMENT=Production - ASPNETCORE_URLS=http://+:8080 - ConnectionStrings__luciatraces=mongodb://lucia-mongo:27017/luciatraces - ConnectionStrings__luciaconfig=mongodb://lucia-mongo:27017/luciaconfig - ConnectionStrings__luciatasks=mongodb://lucia-mongo:27017/luciatasks - ConnectionStrings__redis=lucia-redis:6379 healthcheck: test: ["CMD-SHELL", "wget -qO- http://localhost:8080/health || exit 1"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped networks: lucia-network: driver: bridge volumes: lucia-redis-data: lucia-mongo-data:
Start the stack:
bashdocker compose up -d
Open the Dashboard at http://localhost:7233 — the setup wizard will guide you through configuration.
| Image Tag | GPU | Size | Use Case |
|---|---|---|---|
seiggy/lucia-agenthost:latest | None | ~250MB | Base orchestration (no voice) |
seiggy/lucia-agenthost:voice | NVIDIA CUDA 12.8 | ~3GB | Voice + NVIDIA GPU acceleration |
seiggy/lucia-agenthost:voice-cpu | None | ~3GB | Voice with CPU-only inference |
seiggy/lucia-agenthost:ha-mono | None | ~350MB | Home Assistant add-on (mono-container) |
To use voice variants, change the image in your docker-compose.yml:
yaml# NVIDIA GPU (requires nvidia-container-toolkit) image: seiggy/lucia-agenthost:voice # CPU only (no GPU requirements) image: seiggy/lucia-agenthost:voice-cpu
AMD ROCm: Not published to Docker Hub (~25GB). Build locally:
docker build -t lucia:voice-rocm -f infra/docker/Dockerfile.voice-rocm .
The ha-mono variant runs with no external dependencies — no Redis, no MongoDB. Uses in-memory caching and SQLite for persistence.
bashdocker run -d \ --name lucia \ --network host \ -v lucia-data:/data \ -v lucia-models:/app/models \ lucia:ha
| Mount Point | Purpose | Required |
|---|---|---|
/data | SQLite database — all config, traces, tasks | Yes |
/app/models | Wyoming voice models (STT, VAD, wake word) | Recommended |
/app/plugins | Script plugins | Optional |
| Port | Protocol | Purpose |
|---|---|---|
| 8099 | HTTP | Web dashboard and REST API |
| *** | TCP | Wyoming voice protocol |
| Variable | Purpose |
|---|---|
ConnectionStrings__luciatraces | MongoDB connection for traces |
ConnectionStrings__luciaconfig | MongoDB connection for configuration |
ConnectionStrings__luciatasks | MongoDB connection for tasks |
ConnectionStrings__redis | Redis connection string |
| Variable | Default | Description |
|---|---|---|
DataProvider__Cache | InMemory | Cache backend (InMemory or Redis) |
DataProvider__Store | SQLite | Persistence backend (SQLite or MongoDB) |
DataProvider__SqlitePath | /data/lucia.db | SQLite database file path |
| Configuration | Cache | Store | Use Case |
|---|---|---|---|
| Default | Redis | MongoDB | Full deployment with dedicated infrastructure |
| Lightweight | InMemory | SQLite | HA add-on, single-container, resource-constrained |
| Hybrid | InMemory | MongoDB | Reduce infra while keeping durable document store |
Skip the setup wizard by providing all required values via environment variables:
| Variable | Purpose |
|---|---|
DASHBOARD_API_KEY | Dashboard login key (e.g. lk_...) |
HOMEASSISTANT__BASEURL | Home Assistant URL (e.g. http://homeassistant.local:8123) |
HOMEASSISTANT__ACCESSTOKEN | Long-lived access token from HA |
LUCIA_HA_API_KEY | Optional: API key for the HA integration |
MUSICASSISTANT__INTEGRATIONID | Optional: HA Music Assistant config entry ID |
| Variable | Purpose |
|---|---|
SEARXNG_URL | General Agent gets web_search tool (SearXNG instance URL) |
METAMCP_URL | Seed MetaMCP as an MCP tool server |
METAMCP_API_KEY | Optional: Bearer token for MetaMCP |
| Variable | Default | Description |
|---|---|---|
HomeAssistant__BaseUrl | — | HA instance URL |
HomeAssistant__AccessToken | — | HA long-lived access token |
Home Assistant ↔ Lucia Custom Component ↔ JSON-RPC ↔ AgentHost ├── Orchestrator (Router → Dispatch → Aggregator) │ ├── LightAgent │ ├── ClimateAgent │ ├── SceneAgent │ ├── ListsAgent │ └── GeneralAgent ├── A2AHost (MusicAgent, TimerAgent) ├── MongoDB (traces, config, tasks) ├── Redis (session cache) └── React Dashboard
| Mode | Value | Description |
|---|---|---|
| Standalone (default) | standalone | All agents embedded in AgentHost. Single container + Redis + MongoDB (or zero-dependency with HA image). |
| Mesh | mesh | Agents run as separate A2A containers. For Kubernetes or multi-node. |
yamlenvironment: - Deployment__Mode=mesh
⚠️ Single-Instance Constraint: AgentHost must run as a single instance — no horizontal scaling via replicas. In-memory stores hold active alarms and timers.
bash# Using manifests kubectl apply -f infra/kubernetes/manifests/ # Using Helm helm install lucia infra/kubernetes/helm/lucia-helm \ --namespace lucia --create-namespace
https://github.com/seiggy/lucia-dotnet → Download "Lucia" → Restart HA → Add Integrationcustom_components/lucia to your HA config → Restart → Add IntegrationAfter installing:
Lucia includes OpenTelemetry instrumentation:
Export to Prometheus, Grafana, Jaeger, or any OTLP-compatible backend.
bashgit clone https://github.com/seiggy/lucia-dotnet.git cd lucia-dotnet/infra/docker docker compose up -d
Or build the image directly:
bashdocker build -t lucia:latest -f infra/docker/Dockerfile .
MIT License — see https://github.com/seiggy/lucia-dotnet/blob/master/LICENSE.
Built with ❤️ for the Home Assistant community
https://github.com/seiggy/lucia-dotnet · https://github.com/seiggy/lucia-dotnet/blob/master/README.md
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务