60 lines
2.7 KiB
Bash
Executable File
60 lines
2.7 KiB
Bash
Executable File
#!/bin/bash
|
|
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
|
|
export no_proxy="*"
|
|
|
|
# Write fixed config first
|
|
cat > /root/.openclaw/openclaw.json << 'JSON'
|
|
{
|
|
"meta": {"lastTouchedVersion": "2026.2.2-3", "lastTouchedAt": "2026-02-05T08:55:00.000Z"},
|
|
"browser": {"enabled": false},
|
|
"models": {
|
|
"providers": {
|
|
"openai": {
|
|
"baseUrl": "http://localhost:11434/v1",
|
|
"apiKey": "sk-local-ollama-fake-key",
|
|
"models": [{"id": "mxbai-embed-large:latest", "name": "MxBai Embed", "reasoning": false, "input": ["text"], "contextWindow": 8192, "maxTokens": 8192, "cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0}}]
|
|
},
|
|
"minimax": {
|
|
"baseUrl": "https://api.minimaxi.com/v1",
|
|
"apiKey": "sk-cp-bJSl7-48u8Y07PXD_x8Wp21JiBgYul7iEO6ZWNK4FBAA4DWzj-U-K8-mN-Flak-O8cOtRegt5FYviSRfBw_noa14z0FkFYzczCPUa41opZsg5AGZ4s4uqL8",
|
|
"api": "openai-completions",
|
|
"models": [{"id": "minimax-m2.1", "name": "MiniMax-m2.1", "reasoning": false, "input": ["text"], "cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0}, "contextWindow": 128000, "maxTokens": 8192}]
|
|
},
|
|
"deepseek": {
|
|
"baseUrl": "https://api.deepseek.com/v1",
|
|
"apiKey": "sk-9df28699a75146efae67c44e0a3d57a8",
|
|
"api": "openai-completions",
|
|
"models": [{"id": "deepseek-chat", "name": "DeepSeek", "reasoning": true, "input": ["text"], "cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0}, "contextWindow": 32768, "maxTokens": 8192}]
|
|
}
|
|
}
|
|
},
|
|
"agents": {
|
|
"defaults": {
|
|
"model": {"primary": "minimax/minimax-m2.1", "fallbacks": ["deepseek/deepseek-chat"]},
|
|
"models": {"minimax/minimax-m2.1": {"alias": "MiniMax"}, "deepseek/deepseek-chat": {"alias": "DeepSeek"}},
|
|
"maxConcurrent": 1,
|
|
"subagents": {"maxConcurrent": 2},
|
|
"memorySearch": {"provider": "openai", "model": "mxbai-embed-large:latest", "remote": {"baseUrl": "http://localhost:11434/v1", "apiKey": "ollama-local", "batch": {"enabled": false}}}
|
|
},
|
|
"list": [{"id": "main", "identity": {"name": "2号机"}}]
|
|
},
|
|
"tools": {"web": {"search": {"enabled": false}}},
|
|
"messages": {"ackReactionScope": "group-mentions"},
|
|
"commands": {"native": "auto", "nativeSkills": "auto"},
|
|
"channels": {
|
|
"telegram": {
|
|
"enabled": true,
|
|
"dmPolicy": "pairing",
|
|
"botToken": "8202664888:AAE0UyCFJJBLC8notdmT42XOJRBoWLJ6XOI",
|
|
"groupPolicy": "allowlist",
|
|
"streamMode": "partial",
|
|
"proxy": "http://192.168.0.66:7890"
|
|
}
|
|
},
|
|
"gateway": {"port": 18789, "mode": "local", "auth": {"token": "openclaw-guardian-token-2nd"}},
|
|
"plugins": {"entries": {"telegram": {"enabled": true}}}
|
|
}
|
|
JSON
|
|
|
|
exec /usr/bin/openclaw gateway start "$@"
|