Kimaki does not run its own OpenCode server. It uses the OpenCode 2 background service of your machine, the same server the OpenCode TUI and CLI use. So a Kimaki session is a normal OpenCode session.
Run /session-id in a thread. Kimaki replies with the session ID and the command to open it:
Do not expose Kimaki's lock port (KIMAKI_LOCK_PORT, default 29988) to the network.
Manage the service
The service belongs to OpenCode. Use the OpenCode CLI to manage it:
12opencode service status
opencode service restart
When the service restarts, Kimaki reconnects by itself. kimaki status shows the OpenCode URL and version the bot uses.
Kimaki V1 started its own OpenCode server. The --opencode-hostname and --opencode-port flags, OPENCODE_SERVER_PASSWORD, and /restart-opencode-server are gone.