opencode-v2-serve

Installation
SKILL.md

OpenCode V2 Server Exposure

Docs: https://opencode.ai/v2/docs/cli and https://opencode.ai/v2/docs/troubleshooting.

One server only

Sessions, plugins, and permissions live per server process. Never run the background service AND opencode serve on different ports for the same clients — state splits and each sees a different world.

Background service opencode serve
Start automatic (opencode service start/stop/restart/status) foreground: opencode serve --hostname 0.0.0.0 --port 4000
Bind/persist opencode service set hostname 0.0.0.0 + opencode service set port 4000 flags per invocation
Best for permanent host, phone apps, myfritz/tunnel routing ad-hoc sharing, scripts

opencode web does NOT exist in V2. Anything spawning it is a V1 leftover.

Auth

Installs
1
First Seen
Oct 2, 2026