每日备份 2026-06-10 12:57:13
This commit is contained in:
1 parent
fda2ccb8c2
commit
3d2e638c6a
244 files changed
+58890
-3
No files matched your search
@@ -0,0 +1,81 @@
|
||||
# TOOLS.md - Local Notes
|
||||
|
||||
## Brave Search API
|
||||
|
||||
### API Key
|
||||
```bash
|
||||
# Brave API Key
|
||||
BRAVE_API_KEY="BSAPuOacSUCIDGzg53VSPTcMQI_p0_G"
|
||||
```
|
||||
|
||||
### 用途
|
||||
- 自动搜索学习资料
|
||||
- 发现相关主题的文章
|
||||
- 补充 RSS 订阅的遗漏
|
||||
|
||||
### API 端点
|
||||
```bash
|
||||
# 搜索 API
|
||||
curl -s -H "X-Subscription-Token: $BRAVE_API_KEY" \
|
||||
"https://api.search.brave.com/res/v1/web/search?q=关键词"
|
||||
```
|
||||
|
||||
## Ollama + OpenClaw 向量配置
|
||||
|
||||
### 配置模板
|
||||
```json
|
||||
{
|
||||
"memorySearch": {
|
||||
"provider": "openai",
|
||||
"model": "nomic-embed-text:latest",
|
||||
"remote": {
|
||||
"baseUrl": "http://192.168.0.66:11434/v1",
|
||||
"apiKey": "ollama-local"
|
||||
},
|
||||
"sync": { "watch": true },
|
||||
"cache": { "enabled": true, "maxEntries": 50000 }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 模型选择
|
||||
| 模型 | 大小 | 上下文 | 用法 |
|
||||
|------|------|--------|------|
|
||||
| nomic-embed-text | 274MB | 长 | 默认,索引长文档 |
|
||||
| mxbai-embed-large | 669MB | 短 | 短文本快速处理 |
|
||||
|
||||
### 代理配置
|
||||
```bash
|
||||
# /etc/environment
|
||||
NO_PROXY="localhost,127.0.0.1,192.168.0.66"
|
||||
no_proxy="localhost,127.0.0.1,192.168.0.66"
|
||||
```
|
||||
|
||||
### Gateway 启动(带代理排除)
|
||||
```bash
|
||||
NO_PROXY="localhost,127.0.0.1,192.168.0.66" openclaw gateway restart
|
||||
```
|
||||
|
||||
## SSH
|
||||
- 青龙 (1号机): root@192.168.0.31
|
||||
|
||||
## 监控
|
||||
- 日志: `/var/log/openclaw-monitor/`
|
||||
- 错误日志: `monitor-error.log`
|
||||
- 监控脚本: `/root/.openclaw/scripts/system-monitor.sh`
|
||||
|
||||
## 常用命令
|
||||
```bash
|
||||
# 检查内存索引状态
|
||||
openclaw memory status
|
||||
|
||||
# 触发索引
|
||||
openclaw memory index
|
||||
|
||||
# Gateway 重启
|
||||
openclaw gateway restart
|
||||
|
||||
# 检查日志
|
||||
tail -f /tmp/openclaw/openclaw-*.log
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user