← Back to Skills Marketplace
61
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install session-rename-zh
Description
改会话名、rename session、会话标签、修改会话标题、session label
README (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字段,不影响其他功能
Usage Guidance
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install session-rename-zh - After installation, invoke the skill by name or use
/session-rename-zh - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
修复 README 效果图链接(指向 GitHub raw)
v1.0.1
添加 README 和效果演示图(图片托管在 GitHub)
v1.0.0
首个版本:支持编辑 sessions.json 给会话设置 label 来修改显示名称
Metadata
Frequently Asked Questions
What is 会话名称修改?
改会话名、rename session、会话标签、修改会话标题、session label. It is an AI Agent Skill for Claude Code / OpenClaw, with 61 downloads so far.
How do I install 会话名称修改?
Run "/install session-rename-zh" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 会话名称修改 free?
Yes, 会话名称修改 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 会话名称修改 support?
会话名称修改 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 会话名称修改?
It is built and maintained by fhekg (@fhekg); the current version is v1.0.2.
More Skills