nixos-vps/modules/openclaw-config.json
ashisgreat22 262887e5ea fix(openclaw): bypass device pairing requirement
- Change gateway auth mode from "none" to "token", as "none" is no longer supported and enforces device pairing.
- Provide a static OPENCLAW_GATEWAY_TOKEN in the environment to allow local subagents to bypass pairing automatically.
2026-03-20 21:49:17 +01:00

57 lines
1.5 KiB
JSON

{
"gateway": {
"port": 18789,
"bind": "loopback",
"trustedProxies": ["::1", "127.0.0.1", "10.88.0.0/16", "10.89.0.0/16"],
"auth": {
"mode": "token"
},
"controlUi": {
"dangerouslyAllowHostHeaderOriginFallback": true,
"allowedOrigins": ["*"]
}
},
"channels": {
"discord": {
"enabled": true,
"token": "${DISCORD_TOKEN}",
"groupPolicy": "open",
"dmPolicy": "open",
"allowFrom": ["*"]
}
},
"agents": {
"defaults": {
"model": {
"primary": "zai/glm-5"
}
}
},
"tools": {
"elevated": { "enabled": true },
"exec": { "security": "full", "ask": "off" },
"web": {
"search": {
"enabled": true,
"provider": "brave",
"apiKey": "${BRAVE_API_KEY}"
}
}
},
"models": {
"providers": {
"zai": {
"baseUrl": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "${ZAI_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "glm-4.7", "name": "GLM 4.7", "contextWindow": 128000, "maxTokens": 131072 },
{ "id": "glm-5", "name": "GLM 5", "contextWindow": 128000, "maxTokens": 131072 },
{ "id": "glm-5-turbo", "name": "GLM 5 Turbo", "contextWindow": 128000, "maxTokens": 131072 },
{ "id": "glm-4.5-air", "name": "GLM 4.5 Air", "contextWindow": 128000, "maxTokens": 131072 },
{ "id": "glm-4.7-flash", "name": "GLM 4.7 Flash", "contextWindow": 128000, "maxTokens": 131072 }
]
}
}
}
}