opencode-v2-api
Installation
SKILL.md
OpenCode V2 API
Base: server root (e.g. http://<host>:4000). Every V2 route lives under
/api/*. Full reference: GET /api docs at https://opencode.ai/v2/docs/api
and machine-readable https://opencode.ai/v2/openapi.json.
Auth
HTTP Basic. Username defaults to opencode (override with
OPENCODE_SERVER_USERNAME), password from OPENCODE_SERVER_PASSWORD or the
service config (opencode service get password). No-auth requests get
401 {"_tag":"UnauthorizedError"}.