Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nixai — AI Agent Host

Purpose

nixai is the AI infrastructure host. It runs the AI agent, local inference via Ollama, the Open WebUI chat interface, Mnemosyne memory sync, and voice services.

Entry Point

Architecture / Services / Scope

AI Agent

  • Containerized AI agent with a web dashboard, an OpenAI-compatible API server, and a webhook platform.
  • Memory is enabled, backed by Mnemosyne sync.
  • Voice is enabled, using the local Wyoming STT server.
  • A hardened SSH daemon is provisioned inside the container for agent administration.

Local Inference

  • Runs local models on the host’s AMD iGPU (ROCm/Vulkan), loading a small set of chat and embedding models.
  • Used by Open WebUI and the agent for local model access.

Open WebUI (web.nix)

  • User-facing chat interface with RAG, web search (via SearXNG), and local Whisper STT.
  • Backed by a PostgreSQL database on the Database Coordinator and tied into the database availability target so it only starts when the DB is reachable.

Mnemosyne (mnemosyne.nix)

  • Mnemosyne memory provider sync server, used by the agent for persistent memory. Served on its own vhost.

Voice (voice.nix)

  • Wyoming Piper (TTS) and faster-whisper (STT) servers exposed over TCP for local voice assistants.

Secrets

Declared secrets

Secret keyPurpose
AI_AGENT/AZURE_FOUNDRY_API_KEYModel API key (Azure Foundry)
AI_AGENT/AZURE_FOUNDRY_BASE_URLModel API base URL
AI_AGENT/OPENROUTER_API_KEYOpenRouter model API key
AI_AGENT/DISCORD_BOT_TOKENDiscord bot token
AI_AGENT/API_SERVER_TOKENAgent API server auth
MCP/N8N_API_KEYMCP access to n8n
MCP/API_TOKENMCP bridge API token
MCP/HASSIO_TOKENHome Assistant MCP token
MCP/GITHUB_TOKENGitHub MCP token
MCP/ANILIST_TOKENAniList MCP token
MNEMOSYNE_SYNC_KEYMnemosyne sync API key

Operational Notes / Assumptions

  • Ollama relies on the AMD iGPU; ROCm on the iGPU is noted as unreliable upstream, so the config pins an override and waits on a Vulkan fix.
  • Open WebUI, the agent dashboard, Mnemosyne, and the voice/whisper endpoints are exposed through the IO Coordinator reverse proxy.
  • The agent’s SSH port is opened to the subnet for administration.

References