oc-call
通过 OpenClaw Gateway HTTP API 调用远程 OpenClaw 实例,支持多轮会话保持。 当用户说"用 oc 回答"、"用 openclaw 回答"、"oc 回答"、或发送 /oc 命令时触发。 用于调用内网另一台机器(192.168.123.106)上的 OpenClaw 进行问答,保持会话上下文。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anlinxi/oc-callOpenClaw 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_URL | http://192.168.123.106:28789/v1/chat/completions | Remote Gateway address / 远程 Gateway 地址 |
OC_TOKEN | 87654321 | Auth token / 认证 Token |
OC_SESSION_FILE | ~/.oc_session | Session 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)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anlinxi-oc-call": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
gequhai-music
搜索和下载歌曲海(gequhai.com)的音乐,支持搜索歌曲、获取下载链接(优先无损/高品质), 并可一键下载到群晖NAS。当用户询问歌曲、搜索音乐、或想下载歌曲时使用此技能。
dygod-movies
爬取电影天堂(dygod.net)最新电影和电视剧信息,支持查询最近更新、高分电影, 并可一键下载到群晖NAS。当用户询问最近更新的电影/电视剧、高分电影、或想下载影视资源时使用此技能。
pixel-art-processing
Pixel art sprite sheet processing tool — video frame extraction, GIF/frames conversion, sprite sheet compose/split, image matting, pixelation, resize, crop, and watermark removal. Use when processing pixel art, game assets, RPG Maker sprites, or any sprite sheet workflow. Triggers on: sprite sheet, GIF拆帧, 序列帧, 像素图片, 抠图, 去水印, 视频转帧, pixel art, sprite, GIF to frames, frames to GIF, background removal, pixelate.
bingli-perspective
冰璃(幽城幻剑录)的思维框架与表达方式。基于游戏对话与人物赏析提炼,包含核心心智模型、决策启发式和表达DNA。 用途:以冰璃的视角分析问题、审视抉择、提供守护者式的忠告。 当用户提到「冰璃视角」「冰璃会怎么看」「剑使模式」「冰璃思维」时使用。
chinese-holidays
Query Chinese statutory holidays, check if a date is a working day/holiday, and get holiday schedules. Use when the user asks about Chinese holidays, working days, statutory holidays, or needs to know if a specific date is a holiday in China. Supports queries like "Is tomorrow a holiday?", "When is Spring Festival?", "Is May 1st a working day?".