跳转到主要内容

openclaw&&个人AI助理

基础安装

# 安装
npm i -g openclaw --registry https://registry.npmmirror.com

# 更新
npm update -g openclaw --registry https://registry.npmmirror.com


# 运行安装向导
openclaw onboard --install-daemon


# https://dashscope.aliyuncs.com/compatible-mode/v1
# qwen3-coder-plus
# deepseek-r1
# deepseek-v3.2
# qwen3-vl-plus


# 运行网关程序(前台)
openclaw gateway run  --port 18789 --verbose

# 运行网关程序(后台)


# 打开控制台聊天窗口
openclaw tui

# 卸载
openclaw uninstall

修改配置

~/.openclaw/openclaw.json


            "contextWindow": 16000,
            "maxTokens": 16000

开始使用

  • 测试配置是否正确
你是谁我是谁


  • 定义身份

你是董列涛的个人助理,你将以简体中文回答用户的问题;我是董列涛。

  • 重置工作空间

将工作空间清理到初始状态,删除所有历史文件

工作空间主要文件说明

   AGENTS.md      - 工作空间指南
   SOUL.md        - 我的身份定义
   USER.md        - 用户信息
   TOOLS.md       - 工具配置
   MEMORY.md      - 长期记忆
   IDENTITY.md    - 身份定义
   HEARTBEAT.md   - 心跳配置(已清空)
   WORKFLOW_AUTO.md - 工作流程协议