opencode-api
Installation
SKILL.md
OpenCode REST API
Use this skill when you need reliable, scriptable control of OpenCode over HTTP.
Default OpenCode server base URL: http://localhost:4096.
Canonical docs: https://opencode.ai/docs/server/
Quick Start
Start a local, protected server:
export OPENCODE_SERVER_USERNAME=opencode
export OPENCODE_SERVER_PASSWORD="change-me"
opencode serve --hostname 127.0.0.1 --port 4096
Basic API helper: