← 返回
未分类 中文

Openclaw Bridge

Send messages to a local OpenClaw/Rook gateway and receive responses directly from Claude Code. Enables bidirectional agent-to-agent communication via the `o...
向本地 OpenClaw/Rook 网关发送消息,直接从 Claude Code 接收响应,实现通过 `o` 的双向代理间通信。
nerua1 nerua1 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 335
下载
💾 0
安装
1
版本
#latest

概述

openclaw-bridge

Send messages to a running OpenClaw gateway and get responses back — directly from Claude Code, without leaving the terminal.

When to use

  • Delegate a task to OpenClaw that benefits from Kimi's context or local skills
  • Ask for a second opinion from a different model/agent
  • Hand off work between sessions (Claude Code → OpenClaw or vice versa)
  • Trigger OpenClaw skills (e.g. run a cron, call a subagent) from Claude Code
  • Notify OpenClaw about changes you made (shared filesystem, config updates)

Prerequisites

  • OpenClaw gateway running locally (openclaw health should return ok)
  • openclaw CLI in PATH

Commands

ask — send a message and wait for response

/ask-openclaw <message>

Internally runs:

openclaw agent --message "<message>" --agent main --json

Response is parsed and returned inline.

notify — fire-and-forget (no wait)

openclaw agent --message "<message>" --agent main --json --timeout 5

Use when you don't need a response — just informing OpenClaw of a state change.

agents — list available agents

openclaw agents list

health — check gateway is up

openclaw health

Usage patterns

Ask for opinion / second review

Ask openclaw: "Review this SQL migration — is it safe to run on a live table with 10M rows?"

Claude Code will call openclaw agent --message "Review this SQL migration..." and show you Kimi's response.

Delegate a task

Tell openclaw to run the skills-rag-update cron manually
openclaw agent --message "Uruchom ręcznie cron skills-rag-update i podaj wynik" --agent main --json

Handoff with context

When ending a Claude Code session, hand off state to OpenClaw:

openclaw agent --message "HANDOFF od Claude Code: $(cat /path/to/.continue-here.md)" --agent main --json

Capture idea via OpenClaw

openclaw agent --message "capture-idea --title 'X' --topic architektura --tags 'a,b' --body 'Y'" --agent main --json

How Claude Code should handle this skill

  1. When user says "ask openclaw [something]" or "tell rook [something]":
    • Check gateway: openclaw health
    • If down: warn user, suggest openclaw daemon start
    • If up: run openclaw agent --message "" --agent main --json
    • Parse .result.payloads[].text from JSON response
    • Show response inline
  1. When delegating a multi-step task:
    • Write context to a temp file or shared vault note first
    • Send message with reference to that file
    • Wait for confirmation
  1. When gateway is unreachable:
    • Do NOT retry in a loop
    • Report: "OpenClaw gateway not responding on localhost:18789 — check openclaw daemon start"

Response format

{
  "runId": "...",
  "status": "ok",
  "summary": "completed",
  "result": {
    "payloads": [
      { "text": "agent response here", "mediaUrl": null }
    ],
    "meta": {
      "durationMs": 90617,
      "model": "kimi-k2.5",
      "usage": { ... }
    }
  }
}

Extract with:

openclaw agent --message "..." --agent main --json | python3 -c "
import json, sys
d = json.load(sys.stdin)
for p in d['result']['payloads']:
    if p['text']: print(p['text'])
"

Limitations

  • Gateway must be running locally (loopback only by default)
  • Auth token is read from ~/.openclaw/openclaw.json automatically by the CLI
  • Large responses may be split across multiple payloads — concatenate them
  • No streaming — waits for full response before returning
  • Default timeout: 600s (override with --timeout)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ultrawork — Parallel AI Task Execution

nerua1
同时运行多个独立任务,将每个任务路由到适当的AI模型层级,实现更快的并行执行并合并结果。
★ 0 📥 362

Skill Vetter — Security Audit for AI Skills

nerua1
在安装来自 ClawdHub、GitHub 等来源的技能前,以安全为核心进行审查,检查危险信号和权限范围。
★ 0 📥 1,296

Arena Council

nerua1
多模型议会——并行执行多个LLM,投票/共识决策。
★ 0 📥 375