# Engine plugin protocol (v1) An engine plugin lets openbee run tasks with an AI coding CLI (Claude Code, Codex, pi, OpenCode, ...). openbee ships no engines: install the CLI and log in to it yourself, then install the plugin that drives it. Plugins can be written in any language. Unlike a [channel plugin](channel-plugin-protocol.md), an engine plugin does not stay running. Every time openbee needs the engine it starts the plugin command, writes one JSON request to its stdin, reads one JSON response from its stdout, and the process exits. The CLI runs as a child of that plugin process. ## Package layout An engine plugin uses the same `openbee.plugin.json` manifest as a channel plugin, with `"type": "engine"`: ```json { "protocol_version": 1, "type": "engine", "id": "claude", "name": { "en": "Claude Code", "zh": "Claude Code" }, "description": { "en": "Runs tasks with Claude Code", "zh": "用 Claude Code 执行任务" }, "command": ["node", "dist/index.js"], "version": "0.1.0", "icon": "icon.svg", "config": [ { "key": "path", "type": "string", "label": { "en": "Claude Code path" }, "help": { "en": "Leave empty to use claude on PATH" } } ] } ``` | Field | Rules | |---|---| | `protocol_version` | Must be `1`. The engine protocol is versioned separately from the channel protocol. | | `type` | Must be `engine`. Without `type` the manifest describes a channel plugin; any other value is rejected. | | `id` | Engine id, used by workers and by the default engine setting. Matches `^[a-z][a-z0-9_-]{1,31}$`. Cannot be `local`. Channel and engine plugins share one id space. | | `name`, `description` | As for channel plugins. `name` is shown wherever engines are listed. | | `command` | As for channel plugins, including the [runtime](channel-plugin-protocol.md#runtime) openbee picks for `node`. Run with the plugin directory as working directory. | | `version` | Optional. `package.json` `version` wins when present. | | `icon` | Optional. Path of an SVG file inside the plugin, shown next to the engine name and in plugin lists; without it openbee shows a generic icon, or the initials of `name` in plugin lists. See [Icon](#icon). | | `config[]` | As for channel plugins: `type` is `string`, `secret`, `bool`, `int` or `list`; `required`, `default`, `random_default`, `label` and `help` are optional. `enabled` and `bot_name` are reserved keys. | | `setup` | Not allowed; a manifest that declares it is rejected. Logging in to the CLI is up to the user. | One plugin provides exactly one engine. ### Icon openbee paints the icon in the colour of the text around it, so draw it in one colour with `currentColor`; only its shape and opacity are kept. A manifest whose icon breaks these rules is rejected: | Rule | | |---|---| | Location | A relative path inside the plugin directory, ending in `.svg`; not a symlink. Include the file in the npm package. | | Size | At most 32 KB. | | Root | One `` element. A square `viewBox` fits best. | | Not allowed | `