Agent Tab Title
/install agent-tab-title
agent-tab-title
Local OpenClaw Control UI patch: rewrites document.title to \x3Cagent name> · OpenClaw.

Mirrors PR openclaw/openclaw#80944 as an out-of-tree patch that edits the bundled Control UI index.html shipped inside the locally installed openclaw npm package. Survives gateway restarts; does not survive openclaw update (re-run apply after upgrades).
When to use
- User wants per-agent browser tab titles for OpenClaw Control UI.
- User has multiple Control UI tabs open across agents and can't tell them apart.
- User wants to apply / remove / re-apply this patch.
- User just ran
openclaw updateand the tab title went back toOpenClaw Control.
How it works
The Control UI is a static SPA shipped inside the npm package at:
\x3Cnpm-global>/openclaw/dist/control-ui/index.html
Gateway serves it as a static file. The patch injects a ~25-line \x3Cscript> block right before \x3C/body> that:
- Polls
\x3Copenclaw-app>Lit element every 200 ms. - Reads
assistantName(preferred) orassistantAgentId(fallback) properties. - Sets
document.titleto\x3Cname> · OpenClaw(U+00B7 middle dot), orOpenClaw Controlif no agent.
No build, no dependencies, no gateway restart — just refresh the browser tab.
Apply / remove
# Apply (idempotent — safe to re-run after openclaw update)
bash scripts/apply.sh
# Remove (restores original index.html via .bak)
bash scripts/apply.sh --uninstall
# Custom Control UI path (auto-detect usually works)
bash scripts/apply.sh --target /path/to/openclaw/dist/control-ui/index.html
apply.sh auto-detects the Control UI index.html by probing, in order:
OPENCLAW_CONTROL_UI_INDEXenv var--target \x3Cpath>flag$(npm root -g)/openclaw/dist/control-ui/index.html- Common nvm path
~/.nvm/versions/node/*/lib/node_modules/openclaw/dist/control-ui/index.html
On apply:
- Creates
index.html.bakonce (never overwrites an existing backup; that backup is the rollback point). - Skips re-injection if the patch marker
openclaw-tab-title local patchis already present.
After openclaw update
npm update overwrites the whole dist/ tree, including any prior backup. Re-run bash scripts/apply.sh — it will create a fresh backup off the new pristine file and inject the patch.
Verify
- Reload Control UI in browser (no gateway restart needed).
- Switch between agents (Milly / Sherry / etc.) — tab title should update live to
\x3Cagent> · OpenClaw. - With no agent selected, title falls back to
OpenClaw Control.
If title doesn't change, check Service Worker cache: DevTools → Application → Service Workers → Unregister → reload.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-tab-title - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-tab-title触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Tab Title 是什么?
Patch a locally installed OpenClaw Control UI so the browser tab title shows the active agent name (e.g. "Milly · OpenClaw") instead of the static "OpenClaw... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。
如何安装 Agent Tab Title?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-tab-title」即可一键安装,无需额外配置。
Agent Tab Title 是免费的吗?
是的,Agent Tab Title 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Tab Title 支持哪些平台?
Agent Tab Title 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Tab Title?
由 SymbolStar(@symbolstar)开发并维护,当前版本 v0.1.1。