Systemd service files and installer for OpenCode.
Runs opencode web as a user service with daily auto-upgrades via systemd timer.
curl -fsSL https://ocsd.nbr.st/install.sh | bashThis creates:
~/.config/systemd/user/opencode-web.service— web UI with auto-upgrade on start~/.config/systemd/user/opencode-upgrade.timer— daily upgrade at 05:00~/.opencode/bin/opencode-systemd-wizard— management CLI
opencode-systemd status # check services
opencode-systemd upgrade # manual upgrade + restart
opencode-systemd logs # view logs
opencode-systemd --help # all commandsOr use systemd directly:
systemctl --user {start,stop,restart} opencode-web.service
systemctl --user list-timers opencode-upgrade.timer
journalctl --user -u opencode-web.service -fcurl -fsSL https://ocsd.nbr.st/uninstall.sh | bashInstall with custom settings:
curl -fsSL https://ocsd.nbr.st/install.sh | bash -s -- \
--time 03:00:00 --host 0.0.0.0 --port 8080Or edit service files directly in ~/.config/systemd/user/.
MIT License · https://ocsd.nbr.st · View pi thread