@catpi-miti/miti-openclaw-plugin
v0.1.2
Published
OpenClaw channel plugin for Miti Agent Gateway.
Readme
@catpi-miti/miti-openclaw-plugin
OpenClaw channel plugin for Miti Agent Gateway.
This plugin connects a local OpenClaw Gateway to Miti through the External Agent protocol:
POST /agent/v1/auth/tokenGET /agent/gatewayPOST /agent/v1/messages/send
It does not depend on the Python miti-agent-sdk; the Miti protocol is
implemented directly in TypeScript.
Install (recommended)
Requires OpenClaw ≥ 2026.6.10, Node ≥ 22.19.0.
openclaw config set agents.mode per-channel-per-peer
openclaw plugins install "@catpi-miti/miti-openclaw-plugin"
openclaw config set plugins.entries.miti-openclaw-plugin.enabled true
openclaw gateway restartUpgrade:
openclaw plugins update miti-openclaw-plugin
openclaw gateway restartFull QA guide: miti-agent-docs/openclaw-testing.md(Miti 文档仓库 / monorepo pai/miti-agent-docs/)
Configure
See openclaw.json example in the QA guide. Minimal plugins.entries.miti-openclaw-plugin.config:
{
"appId": "...",
"appSecret": "...",
"apiBaseUrl": "https://t1.miti.chat/chat",
"accessMode": "trust_miti"
}appId / appSecret 可在 Miti App 的 我的 → 设置 → 智能体管理 → 连接智能体 创建后获取。
Develop
npm install
npm run build
npm test
openclaw plugins install . --link
openclaw config set plugins.entries.miti-openclaw-plugin.enabled true
openclaw gateway restartIf a linked source checkout was deleted and downloaded again, rebuild it before
restarting OpenClaw. Otherwise config validation can fail with
extension entry not found: dist/index.js.
Publish: see PUBLISHING.md.
Behavior
- Direct text, voice-STT text, image, and multimodal messages are supported.
- Group @ text is supported.
- Replies are sent as
stream_fullMarkdown. - Images are downloaded to local cache and passed to OpenClaw as inbound media.
- 0.1.2+: After disabling and re-enabling an agent app in Miti, the plugin automatically clears stale JWT cache and re-authenticates (no manual gateway restart required beyond picking up the plugin update).
