gateway configs

This commit is contained in:
2026-02-23 11:06:40 -05:00
parent 52d2555cca
commit 88d4505d2f
6 changed files with 158 additions and 28 deletions

View File

@@ -5,7 +5,8 @@
},
"env": {
"MOONSHOT_API_KEY": "${MOONSHOT_API_KEY}",
"OPENCLAW_GATEWAY_TOKEN": "${OPENCLAW_GATEWAY_TOKEN}"
"OPENCLAW_GATEWAY_TOKEN": "${OPENCLAW_GATEWAY_TOKEN}",
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
},
"wizard": {
"lastRunAt": "2026-02-19T04:49:36.701Z",
@@ -23,11 +24,47 @@
},
"models": {
"providers": {
"openai": {
"baseUrl": "https://api.openai.com/v1",
"apiKey": "${OPENAI_API_KEY}",
"auth": "api-key",
"api": "openai-completions",
"models": [
{
"id": "gpt-4.1-mini",
"name": "GPT-4.1 mini",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1047576,
"maxTokens": 32768
},
{
"id": "gpt-image-1",
"name": "GPT Image 1",
"reasoning": false,
"input": ["text", "image"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 4096
}
]
},
"moonshot": {
"baseUrl": "https://api.moonshot.ai/v1",
"apiKey": "${MOONSHOT_API_KEY}",
"auth": "api-key",
"api": "openai-responses",
"api": "openai-completions",
"models": [
{
"id": "kimi-k2.5",
@@ -51,13 +88,16 @@
"defaults": {
"model": {
"primary": "kimi-coding/k2p5",
"fallbacks": ["moonshot/kimi-k2.5"]
"fallbacks": ["moonshot/kimi-k2.5", "openai/gpt-4.1-mini"]
},
"models": {
"moonshot/kimi-k2.5": {
"kimi-coding/k2p5": {
"alias": "Kimi K2.5"
},
"kimi-coding/k2p5": {
"openai/gpt-4.1-mini": {
"alias": "OpenAI GPT-4.1 mini"
},
"moonshot/kimi-k2.5": {
"alias": "Kimi K2.5"
}
},
@@ -97,9 +137,16 @@
}
},
"gateway": {
"bind": "loopback",
"bind": "lan",
"auth": {
"mode": "token",
"token": "${OPENCLAW_GATEWAY_TOKEN}"
},
"controlUi": {
"allowInsecureAuth": true
},
"tailscale": {
"mode": "serve",
"mode": "off",
"resetOnExit": false
}
},