乐于分享
好东西不私藏

Openclaw 创建新agent(xhs-operator)

Openclaw 创建新agent(xhs-operator)

环境配置:

windows11 + Ollama + Openclaw

显卡是N卡2080Ti 22G 水冷:

PS C:\Users\mixintu> nvidia-smiTue Apr 14 15:16:07 2026+-----------------------------------------------------------------------------------------+| NVIDIA-SMI 591.86                 Driver Version: 591.86         CUDA Version: 13.1     |+-----------------------------------------+------------------------+----------------------+| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC || Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. ||                                         |                        |               MIG M. ||=========================================+========================+======================||   0  NVIDIA GeForce RTX 2080 Ti   WDDM  |   00000000:01:00.0  On |                  N/A || 41%   42C    P8             34W /  260W |    1441MiB /  22528MiB |     28%      Default ||                                         |                        |                  N/A |+-----------------------------------------+------------------------+----------------------+

显示已解析的默认模型/回退配置以及认证概览

# 当提供商使用快照可用时,OAuth/令牌状态部分会包含提供商使用头信息:PS C:\Users\mixintu> openclaw models status🦞 OpenClaw 2026.4.2 (d74a122) — Gateway online—please keep hands, feet, and appendages inside the shell at all times.Config        : ~\.openclaw\openclaw.jsonAgent dir     : ~\.openclaw\agents\main\agentDefault       : ollama/qwen3.5Fallbacks (0) : -Image model   : -Image fallbacks (0): -Aliases (1)   : GPT -> openai/gpt-5.1-codexConfigured models (4): ollama/gpt-oss:20b, openai/gpt-5.1-codex, openai/gpt-5.3-codex, openai/gpt-5.3-codex-sparkAuth overviewAuth store    : ~\.openclaw\agents\main\agent\auth-profiles.jsonShell env     : offProviders w/ OAuth/tokens (0): -- ollama effective=missing:missing | models.json=marker(ollama-local) | source=models.json: ~\.openclaw\agents\main\agent\models.json- openai effective=profiles:~\.openclaw\agents\main\agent\auth-profiles.json | profiles=1 (oauth=0, token=0, api_key=1) | openai:default=sk-proj-...tC9d_0AAOAuth/token status- nonePS C:\Users\mixintu>

查看 Agents 代理列表

PS C:\Users\mixintu> openclaw agents list🦞 OpenClaw 2026.4.2 (d74a122) — I'll do the boring stuff while you dramatically stare at the logs like it's cinema.Agents:- main (default)  Workspace: ~\.openclaw\workspace  Agent dir: ~\.openclaw\agents\main\agent  Model: ollama/gpt-oss:20b  Routing rules: 1  Routing: default (no explicit rules)Routing rules map channel/account/peer to an agent. Use --bindings for full rules.Channel status reflects local config/creds. For live health: openclaw channels status --probe.PS C:\Users\mixintu>✅ main agent (默认)  ✅ ollama/gpt-oss:20b 模型  ✅ Browser Relay已验证  ✅ Feishu技能全开

什么时候需要创建新Agent?

场景1:小红书专属运营官(为小红书创建独立记忆+专属prompt)openclaw agents add xhs-operator场景2:多账号隔离xhs-operator-1 → 小红书美食号xhs-operator-2 → 小红书穿搭号  feishu-admin → 飞书管理

创建Agent完整命令

PS C:\Users\mixintu> openclaw agents add xhs-operator🦞 OpenClaw 2026.4.2 (d74a122) — Alexa, but with taste.09:23:19+08:00 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes09:23:19+08:00 [plugins] feishu_chat: Registered feishu_chat tool09:23:19+08:00 [plugins] feishu_wiki: Registered feishu_wiki tool09:23:19+08:00 [plugins] feishu_drive: Registered feishu_drive tool09:23:19+08:00 [plugins] feishu_bitable: Registered bitable toolsT  Add OpenClaw agent|o  Workspace directory|  C:\Users\mixintu\.openclaw\workspace-xhs-operator|o  Copy auth profiles from "main"?|  Yes|o  Auth profiles ---------------------+|                                     ||  Copied auth profiles from "main".  ||                                     |+-------------------------------------+|o  Configure model/auth for this agent now?|  Yes|o  Model/auth provider|  Skip for now|o  Model check -----------------------------------------------------------------------------+|                                                                                           ||  No auth configured for provider "ollama". The agent may fail until credentials are       ||  added. Run `openclaw models auth login --provider ollama`, `openclaw configure`, or set  ||  an API key env var.                                                                      ||                                                                                           |+-------------------------------------------------------------------------------------------+[info]: [ 'client ready' ]|o  Channel status -------------------------------------------+|                                                            ||  Telegram: configured                                      ||  Feishu: connected as ou_cf72c******54a68eb86  ||  WhatsApp: not configured                                  ||  Discord: not configured                                   ||  IRC: not configured                                       ||  Google Chat: not configured                               ||  Slack: not configured                                     ||  Signal: not configured                                    ||  iMessage: not configured                                  ||  LINE: not configured                                      ||  Google Chat: installed                                    ||  Nostr: installed                                          ||  Microsoft Teams: installed                                ||  Mattermost: installed                                     ||  Nextcloud Talk: installed                                 ||  Matrix: installed                                         ||  BlueBubbles: installed                                    ||  LINE: installed                                           ||  Zalo: installed                                           ||  Zalo Personal: installed                                  ||  Synology Chat: installed                                  ||  Tlon: installed                                           ||  Discord: installed                                        ||  iMessage: installed                                       ||  IRC: installed                                            ||  QQ Bot: installed                                         ||  Signal: installed                                         ||  Slack: installed                                          ||  Twitch: installed                                         ||  WhatsApp: installed                                       ||                                                            |+------------------------------------------------------------+|o  Configure chat channels now?|  NoConfig overwrite: C:\Users\mixintu\.openclaw\openclaw.json (sha256 1398ea825216bc820ad7df3b898c98dbd982e0633d217e48cfc2bb0005cb3886 -> b08266b6b0be142d509ce56c60a88d455704538db3a096841445759869f59197, backup=C:\Users\mixintu\.openclaw\openclaw.json.bak)Updated ~\.openclaw\openclaw.jsonWorkspace OK: ~\.openclaw\workspace-xhs-operatorSessions OK: ~\.openclaw\agents\xhs-operator\sessions|—  Agent "xhs-operator" ready.PS C:\Users\mixintu> openclaw agents list🦞 OpenClaw 2026.4.2 (d74a122) — I'm not saying your workflow is chaotic... I'm just bringing a linter and a helmet.Agents:- main (default)  Workspace: ~\.openclaw\workspace  Agent dir: ~\.openclaw\agents\main\agent  Model: ollama/gpt-oss:20b  Routing rules: 1  Routing: default (no explicit rules)- xhs-operator  Workspace: ~\.openclaw\workspace-xhs-operator  Agent dir: ~\.openclaw\agents\xhs-operator\agent  Model: ollama/gpt-oss:20b  Routing rules: 0Routing rules map channel/account/peer to an agent. Use --bindings for full rules.Channel status reflects local config/creds. For live health: openclaw channels status --probe.PS C:\Users\mixintu>