← 返回 Skills 市场
61
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install session-rename-zh
功能描述
改会话名、rename session、会话标签、修改会话标题、session label
使用说明 (SKILL.md)
会话名称修改 (Session Rename)
通过直接编辑 sessions.json 给会话加 label 字段来修改显示名称。
OpenClaw 没有 CLI 或 RPC 方式修改会话标题,但 JSON store 可以直接编辑。
效果演示

触发
用户说「改会话名」「把这个会话叫 XXX」「rename session」「设置会话标签」「修改会话标题」等。
工作流
- 确认目标会话(当前会话 / 指定会话)和想要的名字
- 如果是当前会话,用
sessions_list拿到当前 session key - 用 python3 安全读取、修改、写回
sessions.json
改当前会话
python3 -c "
import json
path = '/Users/xingbin/.openclaw/agents/main/sessions/sessions.json'
with open(path, 'r') as f:
data = json.load(f)
key = '\x3CSESSION_KEY>' # 从 sessions_list 获取
if key in data:
data[key]['label'] = '\x3C新名称>'
with open(path, 'w') as f:
json.dump(data, f, indent=2, ensure_ascii=False)
print(f'✅ 已设置 label: \x3C新名称>')
"
- 改完后用
sessions_list验证displayName和derivedTitle已生效
改其他会话
sessions_list找到目标会话的 key- 同上流程,替换 key 和 label 值
列出所有会话
python3 -c "
import json
data = json.load(open('/Users/xingbin/.openclaw/agents/main/sessions/sessions.json'))
for k, v in data.items():
print(f'{k} → {v.get(\"label\", \"(无标签)\")}')
"
注意事项
sessions.json路径固定:~/.openclaw/agents/main/sessions/sessions.json- 用 python3 操作 JSON,不要用 sed/shell 字符串拼接,避免破坏格式
- 安全操作:读取→修改→写回,不删不改其他字段
- 只添加
label字段,不影响其他功能
安全使用建议
Install only if you are comfortable letting the agent modify OpenClaw's local session metadata. Before using it, back up `~/.openclaw/agents/main/sessions/sessions.json`, make sure OpenClaw is not concurrently writing the file, and confirm the exact session and new label before any write.
能力评估
Purpose & Capability
The purpose and capability fit together: it only describes adding or changing a session `label` so OpenClaw displays a custom session name, with no unrelated collection, networking, or credential handling.
Instruction Scope
Activation phrases are rename-related and the workflow says to confirm the target session and desired name, though the README presents the write as automatic and would benefit from stronger consent wording before modification.
Install Mechanism
The package contains markdown instructions and README content only; there are no executable scripts, declared dependencies, or install-time behaviors in the artifact.
Credentials
Access to `~/.openclaw/agents/main/sessions/sessions.json` is proportionate to the session-renaming goal, but the examples include a publisher-specific absolute path and direct local state editing.
Persistence & Privilege
The skill persistently modifies OpenClaw session metadata by rewriting `sessions.json`; this is disclosed and purpose-aligned, but lacks backup, atomic write, locking, schema validation, and recovery guidance.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-rename-zh - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-rename-zh触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
修复 README 效果图链接(指向 GitHub raw)
v1.0.1
添加 README 和效果演示图(图片托管在 GitHub)
v1.0.0
首个版本:支持编辑 sessions.json 给会话设置 label 来修改显示名称
元数据
常见问题
会话名称修改 是什么?
改会话名、rename session、会话标签、修改会话标题、session label. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 61 次。
如何安装 会话名称修改?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-rename-zh」即可一键安装,无需额外配置。
会话名称修改 是免费的吗?
是的,会话名称修改 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
会话名称修改 支持哪些平台?
会话名称修改 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 会话名称修改?
由 fhekg(@fhekg)开发并维护,当前版本 v1.0.2。
推荐 Skills