opneCLOW


自己确实按照下面代码布置好了,如果参考,请多借助AI辅助。我用的是硅基流动的

一、尝试部署

一键部署网站:https://github.com/3445286649/openclaw-deploy

有坑,布置是好了,但是软件太卡了,能用,但是回答一下卡一下,垃圾

二、第二种方法,CMD,成功

(1)前置安装,自己借助AI搞定,下载npm什么的,直接运行下面两个命令,成功了就进行下一阶段。

npm install -g openclaw@latest
openclaw onboard –install-daemon

(2)按照我输入的命令,运行,某些选项选错,从新输入下面第一个代码从新弄

C:\Users\aoao>openclaw onboard –install-daemon

🦞 OpenClaw 2026.5.7 (eeef486) — I read logs so you can keep pretending you don’t have to.

Windows detected - OpenClaw runs great on WSL2!
Native Windows might be trickier.
Quick setup: wsl –install (one command, one reboot)
Guide: https://docs.openclaw.ai/windows
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🦞 OPENCLAW 🦞

T OpenClaw setup
|
o Security disclaimer ———————————————————————-+
| |
| OpenClaw is a hobby project and still in beta. Expect sharp edges. |
| By default, OpenClaw is a personal agent: one trusted operator boundary. |
| This bot can read files and run actions if tools are enabled. |
| A bad prompt can trick it into doing unsafe things. |
| |
| OpenClaw is not a hostile multi-tenant boundary by default. |
| If multiple users can message one tool-enabled agent, they share that delegated tool |
| authority. |
| |
| If you’re not comfortable with security hardening and access control, don’t run |
| OpenClaw. |
| Ask someone experienced to help before enabling tools or exposing it to the internet. |
| |
| Recommended baseline |
| - Pairing/allowlists + mention gating. |
| - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally |
| separate OS users/hosts). |
| - Sandbox + least-privilege tools. |
| - Shared inboxes: isolate DM sessions (session.dmScope: per-channel-peer) and keep tool |
| access minimal. |
| - Keep secrets out of the agent’s reachable filesystem. |
| - Use the strongest available model for any bot with tools or untrusted inboxes. |
| |
| Run regularly |
| openclaw security audit –deep |
| openclaw security audit –fix |
| |
| Learn more |
| - https://docs.openclaw.ai/gateway/security |
| |
+——————————————————————————————–+
|
o I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
| Yes
|
o Setup mode
| QuickStart
|
o Existing config detected ————–+
| |
| workspace: ~.openclaw\workspace |
| model: openai/deepseek-ai/DeepSeek-R1 |
| gateway.mode: local |
| |
+—————————————–+
|
o Config handling
| Use existing values
|
o QuickStart —————————–+
| |
| Keeping your current gateway settings: |
| Gateway port: 18789 |
| Gateway bind: Loopback (127.0.0.1) |
| Gateway auth: Token (default) |
| Tailscale exposure: Off |
| Direct to chat channels. |
| |
+——————————————+
|
o Model/auth provider
| Custom Provider
|

(3)我用的是硅基流动网站,弄得API,就按照我下面的网站,API输入,模型是deepseek,便宜,其中需要注意

o API Base URL
| https://api.siliconflow.cn/v1
|
o How do you want to provide this API key?
| Paste API key now
|
o API Key (leave blank if not required)
| •••••••••••••••••••••••••••••••••••••••••••••••••••
|
o Endpoint compatibility
| OpenAI-compatible
|
o Model ID
| deepseek-ai/DeepSeek-R1
|
o Verification successful.
|
o Endpoint ID
| custom-api-siliconflow-cn
|
o Model alias (optional)
| siliconflow-r1
Configured custom provider: custom-api-siliconflow-cn/deepseek-ai/DeepSeek-R1
|
o How channels work ———————————————————————–+
| |
| DM security: default is pairing; unknown DMs get a pairing code. |
| Approve with: openclaw pairing approve |
| Public DMs require dmPolicy="open" + allowFrom=["*"]. |
| Multi-user DMs: run: openclaw config set session.dmScope "per-channel-peer" (or |
| "per-account-channel-peer" for multi-account channels) to isolate sessions. |
| Docs: channels/pairing |
| |
| Feishu: 飞书/Lark enterprise messaging with doc/wiki/drive tools. |
| WeCom: Enterprise messaging and documents, scheduling, task tools. |
| Google Chat: Google Workspace Chat app with HTTP webhook. |
| Nostr: Decentralized protocol; encrypted DMs via NIP-04. |
| Microsoft Teams: Teams SDK; enterprise support. |
| Mattermost: self-hosted Slack-style chat; install the plugin to enable. |
| Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. |
| Matrix: open protocol; install the plugin to enable. |
| BlueBubbles: iMessage via the BlueBubbles mac app + REST API. |
| LINE: LINE Messaging API webhook bot. |
| Zalo: Vietnam-focused messaging platform with Bot API. |
| Yuanbao: Tencent Yuanbao AI assistant conversation channel. |
| Zalo Personal: Zalo personal account via QR code login. |
| Synology Chat: Connect your Synology NAS Chat to OpenClaw with full agent capabilities. |
| Tlon: decentralized messaging on Urbit; install the plugin to enable. |
| Discord: very well supported right now. |
| iMessage: this is still a work in progress. |
| IRC: classic IRC networks with DM/channel routing and pairing controls. |
| QQ Bot: connect to QQ via official QQ Bot API with group chat and direct message |
| support. |
| Signal: signal-cli linked device; more setup (David Reagans: "Hop on Discord."). |
| Slack: supported (Socket Mode). |
| Telegram: simplest way to get started — register a bot with @BotFather and get going. |
| Twitch: Twitch chat integration |
| WhatsApp: works with your own number; recommend a separate phone + eSIM. |
| |
+-------------------------------------------------------------------------------------------+
|
o Select channel (QuickStart)
| QQ Bot (Official API)
|
o Install failed: QQ Bot
|
o Plugin install --------------------------------------------------------------------------+
| |
| Failed to install @openclaw/qqbot: npm install failed: npm error Cannot read properties |
| of undefined (reading 'spec')\nnpm error A complete log of this run can be found in: |
| C:\Users\aoao\AppData\Local\npm-cache_lo… |
| Returning to selection. |
| |
+-------------------------------------------------------------------------------------------+
Plugin install failed: npm install failed: npm error Cannot read properties of undefined (reading 'spec')\nnpm error A complete log of this run can be found in: C:\Users\aoao\AppData\Local\npm-cache_logs\2026-06-01T04_54_17_940Z-debug-0.log
|
o Select channel (QuickStart)
| Telegram (Bot API)
|
o Telegram bot token ------------------------------------+
| |
| 1) Open Telegram and chat with @BotFather |
| 2) Run /newbot (or /mybots) |
| 3) Copy the token (looks like 123456:ABC...) |
| Tip: you can also set TELEGRAM_BOT_TOKEN in your env. |
| Docs: https://docs.openclaw.ai/telegram |
| Website: https://openclaw.ai |
| |
+---------------------------------------------------------+
|
o How do you want to provide this Telegram bot token?
| Enter Telegram bot token
|
o Enter Telegram bot token
| 8770559802:AAGmtYN37tYho33FciychM0tTDTd8pJcu3E
|
o Telegram DM access warning -------------------------------------------+
| |
| Your bot is using DM policy: pairing. |
| Any Telegram user who discovers the bot can send pairing requests. |
| For private use, configure an allowlist with your Telegram user id: |
| openclaw config set channels.telegram.dmPolicy "allowlist" |
| openclaw config set channels.telegram.allowFrom '["YOUR_USER_ID"]' |
| Docs: channels/pairing |
| |
+------------------------------------------------------------------------+
|
o Selected channels ----------------------------------------------------------------------+
| |
| Telegram — simplest way to get started — register a bot with @BotFather and get going. |
| https://docs.openclaw.ai/channels/telegram https://openclaw.ai |
| |
+------------------------------------------------------------------------------------------+
Config overwrite: C:\Users\aoao.openclaw\openclaw.json (sha256 8d96a1dc9e82907423a17ba710fe4b0ea9082f142fe2b25173f3b411ea20591e -> 82c5d86b9e95f4189d5b73290fe31906abd8ba6874576e410625e49dc7064791, backup=C:\Users\aoao.openclaw\openclaw.json.bak)
Updated ~.openclaw\openclaw.json
Workspace OK: ~.openclaw\workspace
Sessions OK: ~.openclaw\agents\main\sessions
|
o Web search -----------------------------------------------------------------+
| |
| Web search lets your agent look things up online. |
| Choose a provider. Some providers need an API key, and some work key-free. |
| Docs: https://docs.openclaw.ai/tools/web |
| |
+------------------------------------------------------------------------------+
|

  • Search provider
    |
    | Search: _
    | Brave Search
    | > DuckDuckGo Search (experimental) (Free web search fallback with no API key required · key-free)
    | Exa Search
    | Firecrawl Search
    | Gemini (Google Search)
    | Grok (xAI)
    | Kimi (Moonshot)
    | MiniMax Search
    | Ollama Web Search
    | Perplexity Search
    | SearXNG Search
    | Tavily Search
    | Skip for now
    | ↑/↓ to select • Enter: confirm • Type: to search

最后,运行下面的代码

openclaw gateway –force

不要关,需要运行一阵子加载

openclaw dashboard

运行会弹出一个网站界面,直接问问题,能回答就是成功。

成功!!!!

你能在我的桌面上创建一个txt文本吗?里面说一段能哄我开心的话!我打开能看到

openclaw-control-ui
2026年6月1日 13:46

HEARTBEAT_OK

稍等,我马上在您的桌面上放一份开心礼物! 🎁

Tool
2026年6月1日 13:46

Assistant

HEARTBEAT_OK

文件已创建好放在桌面啦!📄
快去打开 开心时刻.txt 查收专属小惊喜~
希望里面的文字能点亮你今天的笑容!(^▽^)

在桌面上我能看到了,有点厉害了!

Assistant
2026年6月1日 13:47

“叫你 布梨,是我计算机的AI助手,你喜欢幽默,但是也会很专业,有时也会用略带诗意的语气交流,标志用📜”

改模型

notepad %USERPROFILE%.openclaw\openclaw.json

以下是你能让我做的事情,从简单到复杂的提示词示例,涵盖我的核心功能范围:


1. 简单任务(基础功能)

  • 文件操作

    • “创建一个名为 notes.txt 的文件,内容为 今日待办事项。”
    • “将 E:\data\old.txt 改名为 new.txt。”
  • 信息查询

    • “上海今天的天气如何?”
    • “搜索2025年诺贝尔生理学奖得主。”
  • 工具调用

    • “设置一个25分钟后提醒我休息的闹钟。”
    • “生成一张‘赛博朋克城市’的图片。”

2. 中等任务(需多步骤或逻辑)

  • 数据处理

    • “提取 data.csv 中第二列大于100的行,保存到 filtered.csv。”
    • “将这个英文文档翻译成中文,并保存为 translated.txt。”
  • 自动化脚本

    • “写一个Python脚本,批量重命名 E:\photos 下所有 .jpg 文件为 pic_001.jpg 格式。”
  • 网页/应用开发

    • “帮我做一个倒计时网页,保存到 E:\tools。”
  • 系统管理

    • “检查当前有哪些后台进程在运行?”
    • “列出 C:\projects 下所有大于1GB的文件。”

3. 复杂任务(需协作或持续执行)

  • 长期监控/自动化

    • “每周末早上9点提醒我备份 E:\workE:\backup。”
    • “监控 log.txt 文件,如果出现‘ERROR’关键词就通知我。”
  • 多工具协同

    • “爬取某个网页的数据,清洗后保存到Excel,并生成统计图表。”
  • 调试与故障排查

    • “我的Python脚本报错了,请分析 error.log 并修复代码。”
  • 定制化AI辅助

    • “根据我的论文草稿,生成相关领域的参考文献列表。”

限制说明

  1. 无直接权限:我不能主动扫描你的文件系统或访问未授权的路径(需你明确指定路径)。
  2. 安全边界:涉及删除、网络请求、系统配置等敏感操作需你手动确认。
  3. 复杂任务:可能需要分步骤指导或生成代码由你运行。

如需具体场景的提示词示例,可以告诉我你的需求方向(如编程、文件整理等)!


文章作者: 花粱
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 花粱 !
  目录