Skip to content
FunCoding

Search

Search docs, Skills and MCP

服务端与开发接口

从 HTTP 服务、OpenAPI、事件和会话接口接入 OpenCode。

This page has not been translated into English yet. The original Chinese version is shown below.

OpenCode 将客户端与服务端分开,TUI、浏览器和程序可以通过后端处理会话。开发接入时先确定服务生命周期、工作目录与认证,再选择所需 API。

只需从脚本提交提示时,CLI 非交互模式已经提供 run 与 attach。需要在工具执行过程中扩展行为时,阅读插件与 Hooks。

In this section