Spaces:
Sleeping
Sleeping
Update start-openclaw.sh
Browse files- start-openclaw.sh +7 -9
start-openclaw.sh
CHANGED
|
@@ -55,14 +55,12 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 55 |
{
|
| 56 |
"models": {
|
| 57 |
"providers": {
|
| 58 |
-
"
|
| 59 |
"baseUrl": "https://api.kilo.ai/api/gateway",
|
| 60 |
"apiKey": "anonymous",
|
| 61 |
"api": "openai-completions",
|
| 62 |
"models": [
|
| 63 |
-
{ "id": "
|
| 64 |
-
{ "id": "z-ai/glm-5:free", "name": "Z.AI GLM-5 Free", "contextWindow": 128000 },
|
| 65 |
-
{ "id": "moonshotai/kimi-k2.5:free", "name": "Kimi K2.5 Free", "contextWindow": 128000 }
|
| 66 |
]
|
| 67 |
},
|
| 68 |
"nvidia": {
|
|
@@ -78,8 +76,8 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 78 |
"agents": {
|
| 79 |
"defaults": {
|
| 80 |
"model": {
|
| 81 |
-
"primary": "
|
| 82 |
-
"
|
| 83 |
}
|
| 84 |
}
|
| 85 |
},
|
|
@@ -108,7 +106,7 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 108 |
"webhookPath": "/telegram/webhook",
|
| 109 |
"webhookHost": "0.0.0.0",
|
| 110 |
"webhookPort": $PORT,
|
| 111 |
-
"streaming": "
|
| 112 |
}
|
| 113 |
},
|
| 114 |
"gateway": {
|
|
@@ -131,7 +129,7 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 131 |
}
|
| 132 |
}
|
| 133 |
EOF
|
| 134 |
-
echo ">>> openclaw.json generated."
|
| 135 |
|
| 136 |
# ββ 7. Backup otomatis setiap 1 jam ββββββββββββββββββββββββββ
|
| 137 |
(while true; do
|
|
@@ -145,4 +143,4 @@ echo ">>> Running openclaw doctor --fix..."
|
|
| 145 |
openclaw doctor --fix
|
| 146 |
|
| 147 |
echo ">>> Starting OpenClaw on port $PORT..."
|
| 148 |
-
exec openclaw gateway run --port $PORT
|
|
|
|
| 55 |
{
|
| 56 |
"models": {
|
| 57 |
"providers": {
|
| 58 |
+
"kilo_gateway": {
|
| 59 |
"baseUrl": "https://api.kilo.ai/api/gateway",
|
| 60 |
"apiKey": "anonymous",
|
| 61 |
"api": "openai-completions",
|
| 62 |
"models": [
|
| 63 |
+
{ "id": "kilo-auto/free", "name": "Kilo Auto Free", "contextWindow": 128000, "maxTokens": 16000 }
|
|
|
|
|
|
|
| 64 |
]
|
| 65 |
},
|
| 66 |
"nvidia": {
|
|
|
|
| 76 |
"agents": {
|
| 77 |
"defaults": {
|
| 78 |
"model": {
|
| 79 |
+
"primary": "kilo_gateway/kilo-auto/free",
|
| 80 |
+
"fallbacks": ["nvidia/$MODEL"]
|
| 81 |
}
|
| 82 |
}
|
| 83 |
},
|
|
|
|
| 106 |
"webhookPath": "/telegram/webhook",
|
| 107 |
"webhookHost": "0.0.0.0",
|
| 108 |
"webhookPort": $PORT,
|
| 109 |
+
"streaming": "off"
|
| 110 |
}
|
| 111 |
},
|
| 112 |
"gateway": {
|
|
|
|
| 129 |
}
|
| 130 |
}
|
| 131 |
EOF
|
| 132 |
+
echo ">>> openclaw.json generated with Primary and Fallback setup."
|
| 133 |
|
| 134 |
# ββ 7. Backup otomatis setiap 1 jam ββββββββββββββββββββββββββ
|
| 135 |
(while true; do
|
|
|
|
| 143 |
openclaw doctor --fix
|
| 144 |
|
| 145 |
echo ">>> Starting OpenClaw on port $PORT..."
|
| 146 |
+
exec openclaw gateway run --port $PORT
|