bash
openclaw chat
Code
🦞 OpenClaw TUI - Ready to chat
Model: bailian/qwen3.5-plus
Type your message (or /help for commands)
─────────────────────────────────────
>
Code
你好,请介绍一下你自己
Code
你好
bash
/help
Code
Available commands:
/help - 显示帮助信息
/models - 查看可用模型
/switch - 切换模型
/history - 查看对话历史
/clear - 清空当前对话
/status - 查看系统状态
/memory - 查看记忆内容
/quit - 退出对话
bash
/models
Code
Available models:
✅ bailian/qwen3.5-plus (当前)
⚪ openai/gpt-4o
⚪ anthropic/claude-sonnet-4-20260514
⚪ openai/gpt-4o-mini
bash
/switch openai/gpt-4o
Code
> /switch anthropic/claude-sonnet-4-20260514
✅ 已切换到模型:anthropic/claude-sonnet-4-20260514
bash
/history
Code
Session: abc123
Messages: 15
[User] 你好,请介绍一下你自己
[Agent] 你好!我是你的 AI 助手...
[User] 能帮我写一个 Python 函数吗?
[Agent] 当然可以!请问你需要什么功能的函数?
bash
/clear
Code
> /clear
✅ 已清空当前对话历史
bash
/status
Code
🦞 OpenClaw Status
─────────────────────────────
Gateway: ✅ Running (local)
Model: ✅ bailian/qwen3.5-plus
Session: abc123 (active)
Memory: ✅ 15 entries loaded
Uptime: 2h 35m
bash
/memory
Code
Memory entries: 15
Recent:
- 用户偏好:使用中文回复
- 项目信息:OpenClaw 入门教程系列
- 技术栈:Node.js, TypeScript
bash
/quit
bash
> 我需要写一个复杂的算法
/switch anthropic/claude-sonnet-4-20260514
请帮我设计一个快速排序算法,要求支持自定义比较函数
bash
> 我要写一篇中文文章
/switch bailian/qwen3.5-plus
请帮我写一篇关于 AI 编程工具的公众号文章
bash
> 简单问题快速回答
/switch openai/gpt-4o-mini
Python 中列表和元组有什么区别?
bash
nano ~/.openclaw/openclaw.json
agents.defaults.model.primary 字段:json
{
"agents": {
"defaults": {
"model": {
"primary": "bailian/qwen3.5-plus"
}
}
}
}
bash
openclaw gateway restart
bash
/status
bash
openclaw sessions list
Code
Active sessions:
abc123 - TUI (active) - 15 messages
def456 - Feishu - 8 messages
ghi789 - Telegram - 23 messages
bash
openclaw sessions resume abc123
bash
openclaw sessions delete def456
bash
# 删除超过 7 天的会话
openclaw sessions cleanup --older-than 7d
bash
# 导出会话历史
openclaw sessions export abc123 --output project-a-chat.md
bash
openclaw gateway status
bash
openclaw gateway start
bash
cat ~/.openclaw/openclaw.json | grep -A 5 "apiKey"
bash
/history
bash
cat ~/.openclaw/logs/gateway.log
bash
openclaw sessions export abc123
bash
openclaw sessions list
bash
openclaw sessions resume abc123
Code
请记住:我偏好使用中文回复,代码注释用英文
~/.openclaw/workspace/MEMORY.md,添加你的偏好。bash
/memory add 用户偏好:使用中文回复,代码注释用英文
Code
/switch anthropic/claude-sonnet-4-20260514
我正在开发一个 OpenClaw 入门教程系列,目前已经完成了第 1 期(安装配置),现在在写第 2 期(对话基础)。请帮我继续创作。
openclaw chat你好,请介绍一下你自己你能帮我做什么?/models 查看可用模型/switch openai/gpt-4o 切换模型你能帮我做什么?/status 查看当前会话/history 查看对话历史/clear 清空对话/quit 退出 TUI
夜雨聆风