Skip to content

grikomsn/opencode-systemd

Repository files navigation

OpenCode Systemd

Systemd service files and installer for OpenCode.

Runs opencode web as a user service with daily auto-upgrades via systemd timer.

Install

curl -fsSL https://ocsd.nbr.st/install.sh | bash

This 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

Usage

opencode-systemd status    # check services
opencode-systemd upgrade   # manual upgrade + restart
opencode-systemd logs      # view logs
opencode-systemd --help    # all commands

Or use systemd directly:

systemctl --user {start,stop,restart} opencode-web.service
systemctl --user list-timers opencode-upgrade.timer
journalctl --user -u opencode-web.service -f

Uninstall

curl -fsSL https://ocsd.nbr.st/uninstall.sh | bash

Configuration

Install with custom settings:

curl -fsSL https://ocsd.nbr.st/install.sh | bash -s -- \
  --time 03:00:00 --host 0.0.0.0 --port 8080

Or edit service files directly in ~/.config/systemd/user/.


MIT License · https://ocsd.nbr.st · View pi thread

About

A systemd service manager for OpenCode with automatic daily upgrades

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors