Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

OpenClaw Add Agent

v1.0.0

Add a new agent to OpenClaw configuration. Use when user wants to add a new Telegram bot agent to OpenClaw. Triggers: add agent, new agent, bind telegram.

0· 28· 1 versions· 0 current· 0 all-time· Updated 11h ago· MIT-0
byGalax Gao@gaoxiaowei2117

Add Agent to OpenClaw

Workflow

Step 1: Collect Agent Info

Required info from user:

  • Bot token: Telegram bot token (format: 123456789:ABCdef...)
  • Agent ID: Unique identifier (e.g., translator, customer_support)
  • Purpose/Name: Display name (optional, defaults to agent ID)
  • Allow users: Telegram user IDs that can access this bot (default: same as existing agents)

Step 2: Update openclaw.json

Edit /home/xgao/.openclaw/openclaw.json:

A. Add agent to agents.list:

{
  "id": "<agent_id>",
  "name": "<name>",
  "workspace": "/home/xgao/clawd-workspace/<agent_id>"
}

B. Add binding:

{
  "agentId": "<agent_id>",
  "match": {
    "channel": "telegram",
    "accountId": "<agent_id>"
  }
}

C. Add telegram account:

"<agent_id>": {
  "enabled": true,
  "dmPolicy": "allowlist",
  "botToken": "<token>",
  "allowFrom": [<user_ids>],
  "groupPolicy": "allowlist",
  "streaming": "partial"
}

Step 3: Create Workspace Directory

mkdir -p /home/xgao/clawd-workspace/<agent_id>

Step 4: Ask About Memory Isolation

Ask user: "是否需要独立的memory?"

  • Yes → Each agent already has independent workspace, memory is automatically isolated
  • No → Share workspace (not recommended)

Step 5: Restart OpenClaw

Inform user to restart: openclaw restart

Minimal Config Example

For a simple translator bot:

// agents.list
{ "id": "translator", "name": "translator", "workspace": "/home/xgao/clawd-workspace/translator" }

// bindings
{ "agentId": "translator", "match": { "channel": "telegram", "accountId": "translator" } }

// channels.telegram.accounts
"translator": { "enabled": true, "dmPolicy": "allowlist", "botToken": "8223784004:AAE-...", "allowFrom": ["8538882690"], "groupPolicy": "allowlist", "streaming": "partial" }

Version tags

latestvk9723rc7x14x6e93nawt41y75185ry1v