oc-call

通过 OpenClaw Gateway HTTP API 调用远程 OpenClaw 实例,支持多轮会话保持。 当用户说"用 oc 回答"、"用 openclaw 回答"、"oc 回答"、或发送 /oc 命令时触发。 用于调用内网另一台机器(192.168.123.106)上的 OpenClaw 进行问答,保持会话上下文。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "oc-call" with this command: npx skills add anlinxi/oc-call

OpenClaw HTTP API Call Skill / OpenClaw HTTP API 调用技能

Call a remote OpenClaw instance via its Gateway OpenAI-compatible /v1/chat/completions endpoint, with multi-turn conversation support via x-openclaw-session-key.

通过 OpenClaw Gateway 的 OpenAI 兼容端点调用远程 OpenClaw 实例,自动处理多轮会话保持。

Configuration / 配置

Variable / 变量Default / 默认值Description / 说明
OC_URLhttp://192.168.123.106:28789/v1/chat/completionsRemote Gateway address / 远程 Gateway 地址
OC_TOKEN87654321Auth token / 认证 Token
OC_SESSION_FILE~/.oc_sessionSession key storage path / Session Key 存储路径

Note / 注意: Sensitive values (URL, token) should be overridden via environment variables in production. 产品环境中请通过环境变量覆盖敏感配置。

How to Trigger / 触发方式

Command / 命令

/oc 你的问题

Keywords in message / 消息中的关键词

  • 用 oc 回答
  • 用 openclaw 回答
  • oc 回答

Session Persistence / 会话保持机制

Only the x-openclaw-session-key HTTP header is used — no local history file needed. The session key is stored in ~/.oc_session and automatically reused for subsequent calls.

仅依赖 x-openclaw-session-key HTTP header 保持会话,无需本地历史文件。 Session Key 存放在 ~/.oc_session,后续调用自动复用。

Management Commands / 管理命令

python oc_call.py /clear   # Clear session (delete session key) / 清除会话
python oc_call.py /new     # Create new session / 新建会话

Script Usage / 脚本调用

import subprocess
result = subprocess.run(
    ["python", "oc_call.py", "Your question here"],
    capture_output=True, text=True,
    cwd="C:\\Users\\an\\.openclaw\\workspace\\skills\\oc-call\\scripts"
)
print(result.stdout)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

GigaChat (Sber AI) Proxy

Integrate GigaChat (Sber AI) with OpenClaw via gpt2giga proxy

Registry SourceRecently Updated
3600smvlx
General

TencentCloud Video Face Fusion

通过提取两张人脸核心特征并实现自然融合,支持多种风格适配,提升创意互动性和内容传播力,广泛应用于创意营销、娱乐互动和社交分享场景。

Registry SourceRecently Updated
General

TencentCloud Image Face Fusion

图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。

Registry SourceRecently Updated
General

YoudaoNote News

有道云笔记资讯推送:基于收藏笔记分析关注话题,推送最新相关资讯。支持对话触发与每日定时推送(如早上9点)。触发词:资讯推送、设置资讯推送、生成资讯推送。

Registry SourceRecently Updated
1.5K1lephix