mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-13 06:03:39 -06:00
c7cf69a110
* fix(opencode): refresh hosted model catalogs Align Zen and Go availability, pricing, limits, transports, lifecycle metadata, and model-specific reasoning controls with current provider contracts. Co-authored-by: samson1357924 <samson1357924@gmail.com> Co-authored-by: xialonglee <li.xialong@xydigit.com> * fix(opencode): align catalog metadata with runtime contracts --------- Co-authored-by: xialonglee <li.xialong@xydigit.com>
183 lines
5.4 KiB
JSON
183 lines
5.4 KiB
JSON
{
|
|
"id": "opencode-go",
|
|
"icon": "https://cdn.simpleicons.org/opencode",
|
|
"activation": {
|
|
"onStartup": false
|
|
},
|
|
"providerCatalogEntry": "./provider-discovery.ts",
|
|
"enabledByDefault": true,
|
|
"providers": ["opencode-go"],
|
|
"providerEndpoints": [
|
|
{
|
|
"endpointClass": "opencode-native",
|
|
"hostSuffixes": ["opencode.ai"]
|
|
}
|
|
],
|
|
"providerRequest": {
|
|
"providers": {
|
|
"opencode-go": {
|
|
"family": "opencode"
|
|
}
|
|
}
|
|
},
|
|
"modelCatalog": {
|
|
"providers": {
|
|
"opencode-go": {
|
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
"api": "openai-completions",
|
|
"models": [
|
|
{
|
|
"id": "deepseek-v4-pro",
|
|
"name": "DeepSeek V4 Pro",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 384000,
|
|
"cost": {
|
|
"input": 0.435,
|
|
"output": 0.87,
|
|
"cacheRead": 0.003625,
|
|
"cacheWrite": 0
|
|
},
|
|
"compat": {
|
|
"supportsUsageInStreaming": true,
|
|
"supportsReasoningEffort": true,
|
|
"supportedReasoningEfforts": ["high", "max"],
|
|
"maxTokensField": "max_tokens",
|
|
"supportsDeveloperRole": false,
|
|
"supportsStrictMode": false,
|
|
"codeMode": "capable"
|
|
}
|
|
},
|
|
{
|
|
"id": "deepseek-v4-flash",
|
|
"name": "DeepSeek V4 Flash",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 384000,
|
|
"cost": {
|
|
"input": 0.14,
|
|
"output": 0.28,
|
|
"cacheRead": 0.0028,
|
|
"cacheWrite": 0
|
|
},
|
|
"compat": {
|
|
"supportsUsageInStreaming": true,
|
|
"supportsReasoningEffort": true,
|
|
"supportedReasoningEfforts": ["low", "high", "max"],
|
|
"maxTokensField": "max_tokens",
|
|
"supportsDeveloperRole": false,
|
|
"supportsStrictMode": false,
|
|
"codeMode": "capable"
|
|
}
|
|
},
|
|
{
|
|
"id": "kimi-k3",
|
|
"name": "Kimi K3",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"contextWindow": 1048576,
|
|
"maxTokens": 131072,
|
|
"cost": { "input": 3, "output": 15, "cacheRead": 0.3, "cacheWrite": 0 },
|
|
"compat": {
|
|
"supportsUsageInStreaming": true,
|
|
"supportsReasoningEffort": true,
|
|
"supportedReasoningEfforts": ["max"],
|
|
"maxTokensField": "max_tokens",
|
|
"supportsDeveloperRole": false,
|
|
"supportsStrictMode": false,
|
|
"codeMode": "capable"
|
|
}
|
|
},
|
|
{
|
|
"id": "gpt-5.6-luna",
|
|
"name": "GPT-5.6 Luna",
|
|
"api": "openai-responses",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"contextWindow": 1050000,
|
|
"contextTokens": 922000,
|
|
"maxTokens": 128000,
|
|
"cost": {
|
|
"input": 0.2,
|
|
"output": 1.2,
|
|
"cacheRead": 0.02,
|
|
"cacheWrite": 0.25,
|
|
"tieredPricing": [
|
|
{ "input": 0.2, "output": 1.2, "cacheRead": 0.02, "cacheWrite": 0.25, "range": [0, 272000] },
|
|
{ "input": 0.4, "output": 1.8, "cacheRead": 0.04, "cacheWrite": 0.5, "range": [272000] }
|
|
]
|
|
},
|
|
"compat": {
|
|
"supportsUsageInStreaming": true,
|
|
"supportsReasoningEffort": true,
|
|
"supportedReasoningEfforts": ["none", "low", "medium", "high", "xhigh", "max"],
|
|
"maxTokensField": "max_tokens",
|
|
"codeMode": "capable"
|
|
}
|
|
},
|
|
{
|
|
"id": "qwen3.8-max",
|
|
"name": "Qwen3.8 Max",
|
|
"api": "anthropic-messages",
|
|
"baseUrl": "https://opencode.ai/zen/go",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 131072,
|
|
"cost": { "input": 2, "output": 6, "cacheRead": 0.25, "cacheWrite": 2.5 },
|
|
"compat": {
|
|
"thinkingFormat": "qwen",
|
|
"codeMode": "capable"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"discovery": {
|
|
"opencode-go": "runtime"
|
|
}
|
|
},
|
|
"setup": {
|
|
"providers": [
|
|
{
|
|
"id": "opencode-go",
|
|
"envVars": ["OPENCODE_API_KEY", "OPENCODE_ZEN_API_KEY"]
|
|
}
|
|
]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "opencode-go",
|
|
"method": "api-key",
|
|
"choiceId": "opencode-go",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "OpenCode Go catalog",
|
|
"groupId": "opencode",
|
|
"groupLabel": "OpenCode",
|
|
"groupHint": "Shared API key infrastructure for Zen + Go",
|
|
"optionKey": "opencodeGoApiKey",
|
|
"cliFlag": "--opencode-go-api-key",
|
|
"cliOption": "--opencode-go-api-key <key>",
|
|
"cliDescription": "OpenCode API key (Go catalog)"
|
|
}
|
|
],
|
|
"contracts": {
|
|
"mediaUnderstandingProviders": ["opencode-go"]
|
|
},
|
|
"mediaUnderstandingProviderMetadata": {
|
|
"opencode-go": {
|
|
"capabilities": ["image"],
|
|
"defaultModels": {
|
|
"image": "kimi-k2.6"
|
|
}
|
|
}
|
|
},
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {}
|
|
}
|
|
}
|