[Unit] Description=OpenJarvis API Server After=network.target [Service] Type=simple User=openjarvis WorkingDirectory=/opt/openjarvis ExecStart=/opt/openjarvis/.venv/bin/jarvis serve --host 0.0.0.0 --port 8000 Restart=on-failure RestartSec=5 Environment=HOME=/opt/openjarvis # Binding 0.0.0.0 requires authentication. This file MUST exist and contain: # OPENJARVIS_API_KEY= (generate one: `jarvis auth generate-key`) # It is not prefixed with "-", so the unit fails to start if the file is # missing — preventing an accidentally unauthenticated public server. EnvironmentFile=/etc/openjarvis/env [Install] WantedBy=multi-user.target