/install agent-deploy
Agent Deploy & Isolation Skill
WHEN TO USE THIS SKILL
Use this skill when the user says ANY of the following (or similar):
- "deploy a new agent"
- "add a new agent"
- "create a new agent"
- "set up a new bot"
- "bind a bot to a new agent"
- "add a telegram bot"
- "list agents" or "show agents"
- "remove agent" or "delete agent"
WHAT YOU NEED FROM THE USER
Before running any deploy script, you MUST collect these two values from the user:
| Required | Example | How to get it |
|---|---|---|
| agentId | research |
Ask: "What should I name this agent?" (lowercase, no spaces, no special chars) |
| botToken | 123456:ABC-xyz |
Ask: "What is the Telegram Bot Token?" (user gets this from @BotFather) |
If the user provides both in their message, proceed immediately. If the user is missing one or both, ask for the missing value(s) before proceeding.
HOW TO EXECUTE
Action: DEPLOY a new agent
Run this exact command, replacing \x3CagentId> and \x3CbotToken> with the user's values:
bash {baseDir}/scripts/deploy.sh \x3CagentId> \x3CbotToken>
Example: If user says "deploy agent called research with token 123456:ABCdef":
bash {baseDir}/scripts/deploy.sh research 123456:ABCdef
After the script finishes:
- If output contains "SUCCESS": tell the user the agent is deployed.
- If output contains "CONFLICT": tell the user the agent already exists.
- If output contains "ERROR": tell the user what went wrong.
- If output contains "ROLLING BACK": tell the user the change was safely reverted.
DO NOT run systemctl restart unless the script output explicitly says to.
The script handles hot-reload automatically for channels and bindings.
Action: LIST all agents
bash {baseDir}/scripts/list.sh
Show the output table to the user as-is.
Action: REMOVE an agent
Run this exact command, replacing \x3CagentId>:
bash {baseDir}/scripts/remove.sh \x3CagentId>
Example: If user says "remove the research agent":
bash {baseDir}/scripts/remove.sh research
STRICT RULES ??DO NOT VIOLATE
- NEVER edit openclaw.json directly. Do not use
write,edit,apply_patch, or any file editing tool onopenclaw.json. The deploy script usesopenclaw config setwhich is the only safe way. - NEVER skip the pre-flight check. Always run the full deploy.sh script. Do not try to run individual
openclaw config setcommands yourself. - NEVER change the agentId format. It must be lowercase letters, numbers, and hyphens only. No spaces, no uppercase, no special characters.
- NEVER deploy without a valid bot token. The token must match the format:
digits:alphanumeric(e.g.,123456789:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw). - NEVER modify the main agent. The
remove.shscript refuses to remove the main agent. Do not try to work around this.
WHAT THE SCRIPT DOES AUTOMATICALLY
You do NOT need to do any of these manually. The script handles everything:
- Creates isolated workspace at
~/.openclaw/workspace-\x3CagentId>/ - Adds agent to
agents.listwith safe defaults:tools.deny: ["gateway"](agent cannot modify core config)sandbox.mode: "non-main"(non-main sessions are sandboxed)sandbox.scope: "agent"(one container per agent)sandbox.workspaceAccess: "none"(sandbox cannot access host workspace)
- Adds routing binding:
\x3CagentId>->telegram:\x3CagentId> - Adds Telegram account with the bot token
- Validates with
openclaw doctor - Auto-rollbacks on any failure
- Merges API keys from BOTH global config (
openclaw.jsonauth.profiles) AND main agent's auth-profiles.json - Migrates from single-bot to multi-account mode if needed
TROUBLESHOOTING
If the user says the new bot is not responding after deploy:
- First, check logs:
journalctl --user -u openclaw-gateway --no-pager -n 20 - Look for
[telegram] [\x3CagentId>] starting providerin logs - If NOT found, restart:
systemctl --user restart openclaw-gateway - If still not working, run:
bash {baseDir}/scripts/list.shto verify config
ENVIRONMENT VARIABLES
These are optional. The scripts use sensible defaults:
| Variable | Default | Description |
|---|---|---|
OPENCLAW_CONFIG_PATH |
~/.openclaw/openclaw.json |
Custom config file path |
OPENCLAW_BIN |
openclaw |
Custom openclaw CLI path |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-deploy - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-deploy触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Deploy 是什么?
Deploy a new isolated OpenClaw agent with its own Telegram bot, workspace, and session storage. Use when user asks to create a new agent, add a new bot, or s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 568 次。
如何安装 Agent Deploy?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-deploy」即可一键安装,无需额外配置。
Agent Deploy 是免费的吗?
是的,Agent Deploy 完全免费(开源免费),可自由下载、安装和使用。
Agent Deploy 支持哪些平台?
Agent Deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Deploy?
由 Joe7921(@joe7921)开发并维护,当前版本 v2.4.0。