🎓 OpenClaw 完整配置指南:46 分钟视频拆解 Skills、Voice、Memory 核心设置

"treat openclaw like an untrusted virtual assistant"(01:33)—— 这是整个配置过程的核心安全原则
📺 视频来源
- 标题
:OpenClaw Full Course: Setup, Skills, Voice, Memory & More - 频道
:Tech With Tim - 观看量
:131,108 views - 发布时间
:1 month ago - 链接
:https://www.youtube.com/watch?v=vte-fDoZczE - 时长
:46:53
核心观点
这期视频是 OpenClaw 的完整配置教程,作者花费 60-70 小时亲自配置后总结出的最佳实践。核心观点是:将 OpenClaw 视为不受信任的虚拟助手,在享受自动化便利的同时保持安全边界。
视频作者明确指出:
"if you want to go extreme and make sure that you're very secure, I have a full 50-minute long video that breaks down every step you can take to harden and secure your OpenClaw instance"(01:00-01:06)
这意味着安全配置可以非常深入,但本视频聚焦于基础安全 + 核心功能配置。
运行在 VPS 上而非本地电脑(更安全、更便宜、更易管理) 使用多模型策略(Opus 4.6 处理复杂任务,Codex 处理编码任务) 通过技能系统扩展功能 配置记忆系统实现长期上下文 使用心跳和 Cron 实现自动化任务
🔒 安全最佳实践
核心原则
视频作者强调的安全理念:
"treat OpenClaw the exact same way. Make sure that if you are connecting it to external resources that those are secure and that you set up separate accounts for"(02:00-02:08)
- 不要给 OpenClaw 访问主电脑
- 不要给加密密钥或主邮箱访问权限
- 为 OpenClaw 创建独立账户
(如独立的 GitHub 账号) - 只连接你愿意承担风险的资源
VPS 部署优势
视频推荐使用 VPS(虚拟私有服务器)而非本地部署:
"It's going to have things like regular backups, disaster recovery, you know, fire protection, natural disaster protection, and theft protection that you don't have when you run Open Claw on something like a Mac Mini or your own computer"(02:21-02:33)
定期备份 灾难恢复 防火/自然灾害/盗窃保护 成本低(约 $7/月) 随时可关闭,无需投资硬件
Hostinger 一键安装演示
视频展示了使用 Hostinger KVM2 计划的一键安装流程:
选择 1 个月或 12/24 个月计划(使用优惠码 "techwithtim" 可享额外 10% 折扣) 取消勾选 "ready to use with AI"(手动配置 API Key) 选择服务器位置 输入 API Key(演示使用 Anthropic) 点击 Deploy,自动创建 Docker 容器
"make sure that you have credits that you purchase some credits in whatever platform you're using for the LLM"(08:11-08:16)
作者演示时遇到 API 额度不足的问题,需要先在 Anthropic 控制台购买 $10 额度才能正常使用。
🤖 多模型配置策略
为什么需要多模型?
视频作者解释了多模型策略的必要性:
"if you run Opus every single day and you're doing a lot, you can spend 100, 200, 300, $500 per day. I know someone, one of my friends was spending about $200 per day running this purely with Opus, which is insanity"(10:32-10:41)
Opus 4.6:最强模型,但极贵且有速率限制 Codex 5.2:编码任务足够用,几乎无限额度(如果使用 ChatGPT $200/月订阅)
推荐配置策略
视频中的配置指令:
"I want you to always use the Opus 4.6 model by default. But whenever an instruction is provided to you, I want you to determine whether or not you need that level of intelligence or if you can switch to a cheaper model like codex 5.2"(16:57-17:11)
- 默认使用 Opus 4.6
(处理复杂规划任务) - 编码任务自动切换到 Codex 5.2
- 低杠杆任务使用便宜模型
- 每次任务开始时告知使用的模型
创建模型切换命令
视频演示了创建 /model 命令:
告诉 AI:"make a command called /model that allows me to switch between the opus 4.6 and codex 5.2" AI 自动创建命令 测试命令是否生效
添加 OpenAI Codex 模型
视频展示了 OAuth 连接流程:
请求 AI 提供 OAuth 链接 点击链接登录 OpenAI 复制重定向 URL 粘贴回 OpenClaw 完成配置
"OpenAI has made that available to do and not against their terms of service"(09:51-09:55)
使用现有 ChatGPT 订阅的额度是合规的。
📱 Telegram 集成
创建 Bot
视频演示了完整的 Telegram Bot 创建流程:
在 Telegram 搜索 @BotFather(认准蓝色认证标记)发送 /newbot输入 Bot 名称(如 "Tim AI") 输入 Bot 用户名(必须以 _bot结尾,如 "TimA123456_bot")复制生成的 Token
配置 Bot
配对流程
点击 AI 提供的配对链接 在 Telegram 中启动 Bot(发送 /start)复制配对码 粘贴回 OpenClaw 完成配对
在 Telegram 发送 "hi",Bot 回复 "Hey, Telegram is connected. What do you want me to do next?"(19:59-20:03)
创建主题分组
视频演示了如何创建不同主题的分组来组织对话:
在 Telegram 创建新群组(如 "startup ideas") 添加 Bot 到群组 将 Bot 提升为管理员(赋予消息访问权限) 在群组中 @Bot 名称进行测试
"The name of the group chat or the name of the group channel is the topic that I want to discuss in that channel. Don't talk about anything else and only reply or send me messages in the appropriate channels based on the name of them"(24:49-25:02)
这样 Bot 会根据群组名称理解对话主题,保持上下文专注。
🎙️ 语音模式配置
启用语音转录
视频演示了语音功能的配置过程:
"enable speech to text so you can transcribe my audio messages"(20:13-20:17)
"install whisper locally to convert speech to text"(22:21-22:24)
本地 Whisper 配置
选择准确性优先还是速度优先 作者选择 "balanced"(平衡模式)
从手机发送语音消息(电脑麦克风可能被 OBS 占用) Bot 自动转录并回复 验证转录准确性
"Awesome. And finally, it looks like it's working. We have voice mode enabled. I can now send audio messages for it to transcribe"(22:58-23:05)
🛠️ 技能系统详解
什么是 Skill?
视频作者解释了技能的本质:
"a skill is effectively just a markdown file... it's just a bunch of formatted text that explains what the bot should be able to do"(27:35-27:42)
创建自定义技能
视频演示了创建 "hello world" 技能:
"Make a simple skill that says hello world in five languages. And let's just go five random languages"(30:15-30:20)
内置技能
视频提到了一些有用的内置技能:
- GitHub
:代码版本控制 - Weather
:天气查询 - Spotify
:音乐播放 - Voice calling
:语音通话 - Create skill
:创建新技能
安装技能
打开 Gateway Dashboard 进入 Skills 页面 点击安装所需技能
"enable this skill" + 复制技能配置
技能市场:Clawhub
视频提到了 Clawhub 技能市场:
"Claw Hub has a list of pre-built skills that you can use and just build into your bot"(27:07-27:12)
"before you start just going and adding all of these random skills, I would suggest that you understand what a skill is"(27:14-27:20)
先理解技能原理,再有选择地安装。
🧠 记忆系统配置
记忆文件类型
视频介绍了两种记忆文件:
"this is persistent long-term memory that it will always read before it's doing some kind of action"(34:56-35:00)
"it has memories for each day... Open Claw is only going to read two days of previous memory"(35:13-35:27)
增强记忆的配置
视频演示了两个关键配置:
"when the conversation gets too long, OpenClaw will trigger a memory flush prompt. So important context gets written to memory files before compaction drops history"(36:14-36:22)
"lets memory search include recent session transcripts, not just files in memory, improving recall of what just happened"(36:23-36:29)
向量记忆搜索(高级)
视频展示了使用 QMD 后端的向量搜索配置:
"enable vector memory search using a QMD backend, which is significantly better at searching through the memory than the default backend service"(37:09-37:16)
复制官方文档中的配置内容 告诉 AI:"enable this" AI 自动安装依赖并配置
📁 核心配置文件
USER.md(用户信息)
"give me an interview and ask me questions on what you want"(38:43-38:46)
你的名字是什么? 怎么称呼你? 你的时区? 工作时间? 你的目标?
"My name is Tim. You can call me Master Tim. My pronouns are the normal ones, he, him. My time zone is Asia, Dubai. I usually work from 10:00 a.m. to 1:00 in the morning. My goal is to grow my YouTube channel"(39:40-39:55)
IDENTITY.md(AI 身份)
Core Truths(核心原则) Boundaries(边界) Vibe(风格) Continuity(连续性说明)
SOUL.md(灵魂文件)
"each session, you wake up fresh. These files are your memory. Read them. Update them."(40:48-40:51)
TOOLS.md(工具配置)
SSH 主机和别名 首选语音(TTS) 扬声器/房间名称 设备昵称
💓 心跳机制(Heartbeat)
什么是 Heartbeat?
"you can have the Claudebot triggered to wake up effectively every set number of minutes"(41:28-41:32)
配置 Heartbeat
"update your heartbeat file such that anytime you wake up you review any of the mistakes that you've made previously and start making improvements and fixing those mistakes"(41:51-41:58)
启用 Heartbeat
"turn on the heartbeat and enable it every 30 minutes"(43:58-44:02)
检查邮件 查看日历 自我改进审查 定期检查通知
长时间运行任务 精确时间要求(用 Cron)
⏰ Cron 定时任务
Cron vs Heartbeat
"a cron is a task that can run at a set time at a set frequency"(44:34-44:37)
每天早上 9:00 提醒 每天备份数据库 特定时间发送消息
创建 Cron
"in five minutes remind me that I need to finish recording this video"(44:58-45:03)
自动创建一次性 Cron 4 分钟后执行 可在 Gateway 查看历史
个人 Cron 示例
视频作者分享了自己的 Cron 配置:
每天早上 9:00 回顾昨天工作 每天 3 次定期更新 各种提醒任务
🔧 Docker 容器访问
为什么需要 Docker 命令?
"if you just type openclaw nothing's going to happen because this is running inside of a docker container"(09:46-09:50)
访问 Docker 容器的命令
VS Code 远程连接
视频演示了使用 VS Code 远程连接服务器:
Ctrl+Shift+P→ "Add New SSH Host" 输入 SSH 命令(如 ssh root@IP)Ctrl+Shift+P→ "Connect to Host" 选择刚添加的主机 输入密码 打开文件夹: /docker/openclaw-data/openclaw
⚠️ 注意事项
成本控制
"one of my friends was spending about $200 per day running this purely with Opus"(10:38-10:41)
设置月度预算限制(如 $100) 配置消费通知邮件 使用多模型策略
API 额度
"my credit balance is too low to access the anthropic API"(07:58-08:02)
在对应平台购买额度 先购买 $10 测试
语音转录问题
电脑麦克风被 OBS 占用 语音消息空白
从手机发送语音消息 确保麦克风可用
Bot 群组权限
将 Bot 提升为管理员 赋予消息访问权限 在群组中需要 @Bot 才能触发回复
可复现的工作流
完整配置清单
关键设置说明
- 多模型策略
:节省成本的核心 - 记忆优化
:提升长期表现 - 心跳机制
:实现自动化改进 - 主题分组
:保持对话专注
总结
这期 46 分钟的视频是 OpenClaw 最全面的配置教程之一。视频作者基于 60-70 小时的实际配置经验,系统地讲解了从安全部署到高级功能的全流程。
- 安全优先
:始终将 OpenClaw 视为不受信任的助手 - 成本意识
:多模型策略可节省数百美元/天 - 实用导向
:每个配置都有实际应用场景 - 可扩展性
:理解原理后可自行定制
刚安装 OpenClaw 需要完整配置指南的用户 想优化现有配置提升效率的用户 关心成本控制和安全的用户
只需要简单 10 分钟快速上手的用户(视频较详细) 不打算长期使用 OpenClaw 的用户
夜雨聆风