Update start-openclaw.sh
Browse files- start-openclaw.sh +30 -35
start-openclaw.sh
CHANGED
|
@@ -101,54 +101,49 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 101 |
"apiKey": "$OPENAI_API_KEY",
|
| 102 |
"api": "openai-completions",
|
| 103 |
"models": [
|
| 104 |
-
{
|
| 105 |
-
"id": "$MODEL",
|
| 106 |
-
"name": "$MODEL",
|
| 107 |
-
"contextWindow": 128000
|
| 108 |
-
}
|
| 109 |
]
|
| 110 |
}
|
| 111 |
}
|
| 112 |
},
|
| 113 |
-
"agents": {
|
| 114 |
-
"defaults": {
|
| 115 |
-
"model": {
|
| 116 |
-
|
| 117 |
-
}
|
| 118 |
-
}
|
| 119 |
},
|
| 120 |
-
"commands": {
|
| 121 |
-
"restart": true
|
| 122 |
},
|
| 123 |
"gateway": {
|
| 124 |
-
"mode": "local",
|
| 125 |
"bind": "lan",
|
| 126 |
"port": $PORT,
|
| 127 |
-
"trustedProxies": [
|
| 128 |
-
|
| 129 |
-
"
|
| 130 |
-
"
|
| 131 |
-
"192.168.0.0/16"
|
| 132 |
-
],
|
| 133 |
-
"auth": {
|
| 134 |
-
"mode": "token",
|
| 135 |
-
"token": "$OPENCLAW_GATEWAY_PASSWORD"
|
| 136 |
},
|
| 137 |
-
"controlUi": {
|
| 138 |
-
"allowedOrigins": [
|
|
|
|
|
|
|
| 139 |
"dangerouslyAllowHostHeaderOriginFallback": true,
|
| 140 |
"allowInsecureAuth": true,
|
| 141 |
"dangerouslyDisableDeviceAuth": true
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
}
|
| 153 |
}
|
| 154 |
EOF
|
|
|
|
| 101 |
"apiKey": "$OPENAI_API_KEY",
|
| 102 |
"api": "openai-completions",
|
| 103 |
"models": [
|
| 104 |
+
{ "id": "$MODEL", "name": "$MODEL", "contextWindow": 128000 }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
]
|
| 106 |
}
|
| 107 |
}
|
| 108 |
},
|
| 109 |
+
"agents": {
|
| 110 |
+
"defaults": {
|
| 111 |
+
"model": { "primary": "nvidia/$MODEL" }
|
| 112 |
+
}
|
|
|
|
|
|
|
| 113 |
},
|
| 114 |
+
"commands": {
|
| 115 |
+
"restart": true
|
| 116 |
},
|
| 117 |
"gateway": {
|
| 118 |
+
"mode": "local",
|
| 119 |
"bind": "lan",
|
| 120 |
"port": $PORT,
|
| 121 |
+
"trustedProxies": ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"],
|
| 122 |
+
"auth": {
|
| 123 |
+
"mode": "token",
|
| 124 |
+
"token": "$OPENCLAW_GATEWAY_PASSWORD"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
},
|
| 126 |
+
"controlUi": {
|
| 127 |
+
"allowedOrigins": [
|
| 128 |
+
"*",
|
| 129 |
+
],
|
| 130 |
"dangerouslyAllowHostHeaderOriginFallback": true,
|
| 131 |
"allowInsecureAuth": true,
|
| 132 |
"dangerouslyDisableDeviceAuth": true
|
| 133 |
+
}
|
| 134 |
+
},
|
| 135 |
+
"plugins": {
|
| 136 |
+
"allow": ["openclaw-weixin"],
|
| 137 |
+
"entries": {
|
| 138 |
+
"openclaw-weixin": {
|
| 139 |
+
"enabled": true
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
},
|
| 143 |
+
"channels": {
|
| 144 |
+
"openclaw-weixin": {
|
| 145 |
+
"baseUrl": "https://ilinkai.weixin.qq.com"
|
| 146 |
+
}
|
| 147 |
}
|
| 148 |
}
|
| 149 |
EOF
|