openclaw-bridge

Bridge to an OpenClaw agent. Use when user says "Ask OpenClaw", "OpenClaw mode on/off", or wants to relay a question or task to the OpenClaw agent. Any capabilities, skills, or tools available on the OpenClaw agent become accessible from within Claude Code. Also supports relay mode: when the user says "OpenClaw mode on", ALL subsequent messages should be relayed to OpenClaw until the user says "OpenClaw mode off".

7 stars

Best use case

openclaw-bridge is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Bridge to an OpenClaw agent. Use when user says "Ask OpenClaw", "OpenClaw mode on/off", or wants to relay a question or task to the OpenClaw agent. Any capabilities, skills, or tools available on the OpenClaw agent become accessible from within Claude Code. Also supports relay mode: when the user says "OpenClaw mode on", ALL subsequent messages should be relayed to OpenClaw until the user says "OpenClaw mode off".

Teams using openclaw-bridge should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

How openclaw-bridge Compares

Feature / Agentopenclaw-bridgeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Bridge to an OpenClaw agent. Use when user says "Ask OpenClaw", "OpenClaw mode on/off", or wants to relay a question or task to the OpenClaw agent. Any capabilities, skills, or tools available on the OpenClaw agent become accessible from within Claude Code. Also supports relay mode: when the user says "OpenClaw mode on", ALL subsequent messages should be relayed to OpenClaw until the user says "OpenClaw mode off".

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# OpenClaw Bridge

Relay the user's request to the OpenClaw agent via its OpenAI-compatible API and return the response verbatim.

## Required Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `OPENCLAW_BASE_URL` | yes | Base URL for the OpenClaw API (e.g. `http://127.0.0.1:18789/v1`) |
| `OPENCLAW_MODEL` | yes | Model identifier (e.g. `openclaw:main`) |
| `OPENCLAW_API_KEY` | yes | API key for authentication |
| `OPENCLAW_ASSISTANT_NAME` | no | Display name for the assistant (defaults to `OpenClaw`) |

## Instructions

Follow these steps exactly:

### 1. Validate environment variables

Run a single bash command to check that the three required env vars are set:

```bash
echo "BASE_URL=${OPENCLAW_BASE_URL:-MISSING} MODEL=${OPENCLAW_MODEL:-MISSING} API_KEY=${OPENCLAW_API_KEY:+SET}"
```

If any required variable is `MISSING` or the API key is empty, stop and tell the user which variables need to be set. Do not proceed.

### 2. Determine the assistant display name

Use `$OPENCLAW_ASSISTANT_NAME` if set, otherwise default to `OpenClaw`.

### 3. Extract the user's question

Take the user's message. If it starts with a trigger phrase like "Ask OpenClaw" or similar, strip that prefix to get the actual question. If the message is just the trigger with no question, ask the user what they'd like to ask.

### 4. Send the request

Use curl to POST to the chat completions endpoint. Do NOT inject a system prompt -- the OpenClaw agent has its own.

```bash
curl -sS -w "\n%{http_code}" \
  "${OPENCLAW_BASE_URL}/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${OPENCLAW_API_KEY}" \
  -d '{
    "model": "'"${OPENCLAW_MODEL}"'",
    "messages": [
      {"role": "user", "content": "USER_QUESTION_HERE"}
    ]
  }' 2>&1
```

Replace `USER_QUESTION_HERE` with the actual user question (properly JSON-escaped).

### 5. Handle errors

Check the HTTP status code (last line of output from `-w "\n%{http_code}"`):

- **Connection refused / curl error**: Tell the user the OpenClaw agent is not reachable at the configured URL. Suggest checking that the service is running.
- **401 or 403**: Tell the user the API key was rejected. Suggest checking `OPENCLAW_API_KEY`.
- **404**: Tell the user the endpoint was not found. Suggest checking `OPENCLAW_BASE_URL`.
- **500+**: Tell the user the OpenClaw agent returned a server error. Include the status code.
- **Malformed JSON**: Tell the user the response was not valid JSON. Show the raw response for debugging.

### 6. Display the response

On success (HTTP 200), extract `.choices[0].message.content` from the JSON response. Display it verbatim, prefixed with the assistant name in bold:

```
**[<assistant name>]:** <response content here>
```

Do NOT summarize, reformat, or editorialize the response. Show it exactly as returned.

## Relay Mode (Session Toggle)

The user can toggle **relay mode** on and off during a session:

- **"OpenClaw mode on"** (or "relay mode on"): Activates relay mode. From this point, **every message** the user sends should be relayed to the OpenClaw agent using the steps above (steps 1-6). No need for the user to say "Ask OpenClaw" each time. Confirm activation with:
  ```
  **[OpenClaw relay mode: ON]** -- All messages will be forwarded to <assistant name>. Say "OpenClaw mode off" to stop.
  ```

- **"OpenClaw mode off"** (or "relay mode off"): Deactivates relay mode. Return to normal Claude Code behavior. Confirm with:
  ```
  **[OpenClaw relay mode: OFF]** -- Returning to normal mode.
  ```

- This toggle is **session-scoped only** -- it does not persist across sessions.
- While relay mode is active, if the user says something clearly directed at Claude Code itself (e.g., "read this file", "edit this code", "git status"), use your judgment -- those should NOT be relayed. Only relay messages that are questions or tasks for the OpenClaw agent.

## Important

- No system prompt is injected -- OpenClaw manages its own persona and context.
- No multi-turn state is maintained here -- OpenClaw manages its own conversation history.
- The response is displayed verbatim with no summarization.

Related Skills

openclaw-persona-forge

144923
from affaan-m/everything-claude-code

为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。

AI Tools & UtilitiesClaude

openclaw-youtube

3891
from openclaw/skills

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

Content & Documentation

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

openclaw-media-gen

3891
from openclaw/skills

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

Content & Documentation

OpenClaw Mastery — The Complete Agent Engineering & Operations System

3891
from openclaw/skills

> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.

DevOps & Infrastructure

openclaw-safe-change-flow

3891
from openclaw/skills

Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.

DevOps & Infrastructure

jqopenclaw-node-invoker

3891
from openclaw/skills

统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。

DevOps & Infrastructure

openclaw-stock-skill

3891
from openclaw/skills

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Data & Research

openclaw-whatsapp

3891
from openclaw/skills

WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync

Workflow & Productivity

polymarket-openclaw-trader

3891
from openclaw/skills

Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.

Trading Automation

openclaw-version-monitor

3891
from openclaw/skills

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Workflow & Productivity

openclawfice

59
from openclawfice/openclawfice

Virtual office dashboard — pixel-art NPCs for your OpenClaw agents. Install, manage, and interact with your retro AI office.