Background service via Homebrew (like Ollama)
brew services start apfel # Start at login, auto-restart
brew services stop apfel # Stop
brew services restart apfel # Restart
brew services info apfel # Status
tail -f /opt/homebrew/var/log/apfel.log # LogsZero custom launchd code - uses Homebrew's built-in service do DSL, same pattern as Ollama, PostgreSQL, nginx.
APFEL_MCP environment variable
Configure MCP tool servers via environment (colon-separated paths):
APFEL_MCP="/path/to/server.py" apfel "What is 2+2?"
APFEL_MCP="/path/a.py:/path/b.py" brew services start apfelNew docs
- docs/background-service.md - full guide for brew services, env vars, manual plist
Tests
- 7 new brew service integration tests (health, models, chat, streaming, info, logs, restart)
- 2 new integration tests (APFEL_MCP env var, formula service block)
Update
brew upgrade apfel